Create Author
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/author
Body : JSON
{
"name": "New Author",
"link": "New Author Link",
"image": "Image Author",
"born": "Born Author",
"web": "Web Author",
"bio": "Bio Author"
}
name*Required
string
Name of actor.
link
string
Author Goodread link
image
string
Author Image URL
born
string
Author Location
web
string
Author Web URL
bio
string
Author bio
Response : 200 - OK
{
"message": "Success add author"
}
Response : 422 - Unprocessable Content
{
"error": "Name required"
}
Response : 500 - Server Error
Internal Server Error