Skip to content

Instantly share code, notes, and snippets.

@KalpaD
Created February 6, 2021 03:52
Show Gist options
  • Select an option

  • Save KalpaD/315826dd252e8b777f3168b3ee4caf29 to your computer and use it in GitHub Desktop.

Select an option

Save KalpaD/315826dd252e8b777f3168b3ee4caf29 to your computer and use it in GitHub Desktop.
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