-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add coffeescript support (#52)
It's now possible to include your `.coffee` files into the result swagger specification. Example: ```sh swagger-jsdoc.js -d example/v2/swaggerDef.js example/v2/route.coffee ```
- Loading branch information
Showing
4 changed files
with
178 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Coffeescript Example | ||
|
||
### | ||
* @swagger | ||
* /login: | ||
* post: | ||
* description: Login to the application | ||
* produces: | ||
* - application/json | ||
* parameters: | ||
* - name: username | ||
* description: Username to use for login. | ||
* in: formData | ||
* required: true | ||
* type: string | ||
* - name: password | ||
* description: User's password. | ||
* in: formData | ||
* required: true | ||
* type: string | ||
* responses: | ||
* 200: | ||
* description: login | ||
### | ||
app.post '/login', (req, res) -> | ||
res.json req.body |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters