-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(example): add headers validation, minor README improvements
- Loading branch information
1 parent
456c9d5
commit f7439e9
Showing
3 changed files
with
17 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,17 @@ Content-Type: application/json | |
"gender": "male" | ||
} | ||
|
||
### POST /person with invalid Content-Type header | ||
POST http://localhost:8080/person | ||
Content-Type: application/xml | ||
|
||
{ | ||
"username": "thecodexhub", | ||
"age": 24, | ||
"email": "[email protected]", | ||
"gender": "male" | ||
} | ||
|
||
### POST /person with no username and age field | ||
POST http://localhost:8080/person | ||
Content-Type: application/json | ||
|
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