-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix mistake in API spec and content-type issue
In the Swagger spec (.yaml), it is possible to define the supported media types (e.g. application/json) at the API level, and then to override them for every endpoint method. The problem is that if we define 'consumes' at the API level, then when the code is generated, the server expects to receive a 'Content-type' header for every endpoint method. For GET methods, this does not make sense. The .yaml file has been modified because of this. The Postman example has also been adapted.
- Loading branch information
Showing
2 changed files
with
3 additions
and
18 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
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