Created
February 6, 2021 03:52
-
-
Save KalpaD/315826dd252e8b777f3168b3ee4caf29 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| Request | |
| POST http://host:port/format | |
| Content-Type: application/json | |
| { | |
| "title":"Mr", | |
| "firstName":"Jhon", | |
| "middleName": "Martin", | |
| "lastName": "Smith" | |
| } | |
| Succesful Response | |
| 200 OK | |
| Content-Type: application/json | |
| { | |
| "formattedName": "Mr Jhon Martin Smith" | |
| } | |
| Error Response | |
| 400 Bad Request | |
| Content-Type: application/json | |
| { | |
| "errors": [ | |
| { | |
| "code": "erroCode1", | |
| "message": "errorMessage1" | |
| }, | |
| { | |
| "code": "erroCode2", | |
| "message": "errorMessage2" | |
| }, | |
| { | |
| "code": "erroCode3", | |
| "message": "errorMessage13" | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment