Add documantation for customization of path object
See original GitHub issueCurrently, I see no way of editing the path object inside the servcie. Only the definitions get parsed.
It would be great to add some information to the path object e.g. to set possible responses.
it could look something like this:
class MessagesService {
constructor(options) {
this.options = options || {};
this.docs = {
description: 'A service to send messages',
definitions: {
messages: { (...) }
}
path: {
messages: {
create: { // Anything inside would override the default config for "/messages".post
description: 'Custom POST description',
responses: {
'201': {
description: 'New Message was created'
}
}
}
}
}
}
}
(...)
}
Issue Analytics
- State:
- Created 7 years ago
- Reactions:4
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Path Postprocessor Customization - FreeCAD Documentation
Path Postprocessor Customization · Contents · Introduction · What the postprocessor can do for you · Preparation for writing your own postprocessor.
Read more >Customize pipeline configuration - GitLab Documentation
To customize the path: On the top bar, select Main menu > Projects and find your project. On the left sidebar, select Settings...
Read more >sphinx.ext.autodoc – Include documentation from docstrings
This extension can import the modules you are documenting, and pull in documentation ... will by default only insert the docstring of the...
Read more >Get started with Swashbuckle and ASP.NET Core
Learn how to add Swashbuckle to your ASP. ... Customize and extend. Swagger provides options for documenting the object model and ...
Read more >Values that you specify when you create or update a distribution
If you want CloudFront to add custom headers whenever it sends a request to ... If the request for an object does not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is something which I also discovered recently while looking closer at the sequelize example:
As you see you can define response with
find
,get
, … I would say that there should be some more documentation to make that clearThis is all configurable by now. Documentation and examples were added with version 1.0.0.