{
"id": "string - AUTO GENERATED - UNIQUE",
"name": "string - REQUIRED",
"body": "string - REQUIRED"
}
returns array of all posts
returns single post
returns error if post not found
create new post
returns created post
expects following JSON structure
{
"name": "string - REQUIRED",
"body": "string - REQUIRED"
}
update existing post
returns updated post
expects following JSON structure
{
"name": "string - REQUIRED",
"body": "string - REQUIRED"
}
returns error false when successfully deleting post