Create Country
To create the data in the specified collection with the specified parameters. When a JSON object is saved, the object properties are automatically added to the collection you specified.
Method : POST
URL : /api/country
Body : JSON
{
"name": "New Country"
}
nameRequired
string
Name of country.
Response : 200 - OK
{
"message": "Success add country"
}
Response : 422 - Unprocessable Content
{
"error": "Name required"
}
Response : 500 - Server Error
Internal Server Error