1
0
Fork 0
Commit Graph

42 Commits

Author SHA1 Message Date
Alan Plum 9a81d2cb63
Add support for Swagger tags 2016-12-12 02:32:50 +01:00
Alan Plum 33b6a2b8eb
Fix failing swagger test
Adds missing signature variant for endpoint.response method.
2016-10-26 21:06:19 +02:00
Alan Plum 0950520eb5
Implement inline middleware 2016-10-26 18:16:18 +02:00
Andreas Streichardt 6ee1f6d14a Reformat code 2016-06-30 16:57:17 +02:00
Alan Plum e77e18bbc9
Fix swagger a litle bit 2016-06-20 21:41:14 +02:00
Alan Plum c55f6df799
Finalize Router/Endpoints.md 2016-06-19 19:54:04 +02:00
Frank Celler 7bcc7b33f3 removed debug log messages 2016-06-17 11:42:22 +02:00
Alan Plum b289f666db
More detailed error messages in Foxx API 2016-06-16 19:52:27 +02:00
Alan Plum 8639ebb4cf
Rename 'reason' to 'description'
[skip ci]
2016-06-14 16:29:29 +02:00
Alan Plum e7e457b560
ES6ify 2016-04-20 18:34:46 +02:00
Alan Plum 7065d29975
Don't add default bodies 2016-04-20 17:18:51 +02:00
Alan Plum 50ae4804f6
Spacing 2016-04-20 15:23:00 +02:00
Alan Plum 4b509adf15
Nicer warnings/errors 2016-04-18 18:01:04 +02:00
Alan Plum 96d0f5f4ab
QueryParam and friends should allow omitting schemas 2016-04-18 18:00:59 +02:00
Alan Plum 7bef673ef8
Fix empty descriptions in swagger 2016-04-18 18:00:58 +02:00
Alan Plum 30d6200a60
Allow passing strings as status code in some cases 2016-04-18 18:00:48 +02:00
Alan Plum ab0db4e414
Actually don't add 200 response by default 2016-04-18 18:00:35 +02:00
Alan Plum 72f65bd8e3
Response description -> reason 2016-04-18 18:00:34 +02:00
Alan Plum 5b4b3852ad
Better default 200 response 2016-04-18 18:00:34 +02:00
Alan Plum dcc2101d09
Yak shave 2016-04-18 18:00:34 +02:00
Alan Plum 22a8b5ec65
Add util.inline 2016-04-18 18:00:34 +02:00
Alan Plum b01a3da328
Fix swagger responses 2016-04-18 18:00:33 +02:00
Alan Plum a31bf33892
Basic swagger tests 2016-04-18 18:00:33 +02:00
Alan Plum 248e8e747e
Response descriptions are mandatory in Swagger 2016-04-18 18:00:32 +02:00
Alan Plum 4f2dc536ee
Tightening
Convert some lets to consts and eliminate the redundancy in Router.
2016-04-18 18:00:31 +02:00
Alan Plum 1f347b3145
Update license headers 2016-04-18 18:00:30 +02:00
Alan Plum d971780ba8
Make routing actually work 2016-04-18 18:00:30 +02:00
Alan Plum d2d62a97bc
Make FOTF swagger docs visible to Foxx Swagger 2016-04-18 18:00:30 +02:00
Alan Plum 8d2cc4041d
Implement request/response body handling 2016-04-18 18:00:29 +02:00
Alan Plum d23f42fafc
No response schema if no response type 2016-04-18 18:00:28 +02:00
Alan Plum 3b3bfcbd95
If status 200 is set to no response, imply 204 2016-04-18 18:00:28 +02:00
Alan Plum 47d9ab07f4
Nevermind response headers for now 2016-04-18 18:00:27 +02:00
Alan Plum 21428c7f4b
Use joi-to-json-schema 2016-04-18 18:00:27 +02:00
Alan Plum bf253d07b3
Add operation.responses 2016-04-18 18:00:27 +02:00
Alan Plum a00ac0d96f
Swaggerify route params 2016-04-18 18:00:26 +02:00
Alan Plum d810a335ac
Better handle response/request body docs 2016-04-18 18:00:26 +02:00
Alan Plum ff0bf1a182
Add basic swagger generator stub 2016-04-18 18:00:26 +02:00
Alan Plum 91cfcb2fc9
Add SwaggerContext#_merge 2016-04-18 18:00:25 +02:00
Alan Plum bfe66a4ad0
SwaggerContext#response per status code 2016-04-18 18:00:25 +02:00
Alan Plum 27c203bbb2
SwaggerContext should treat missing path as empty 2016-04-18 18:00:25 +02:00
Alan Plum 12e27cac00
Implement queryParam & body validation 2016-04-18 18:00:22 +02:00
Alan Plum 4b0fd593ce
Implement rudimentary route handling 2016-04-18 18:00:22 +02:00