REST API with Roles and Permissions
POST /api/posts
{
"title":"This is a new post title",
"content":"This is an new body
}
PUT /api/posts/1
{
"title":"This is a new post title",
"content":"This is an new body
}
GET /api/posts/1
GET /api/posts
POST /api/users/writter
{
"name": "First One",
"email":"[email protected]",
"password":"password1",
"password_confirmation":"password1"
}
POST /api/users/subscriber
{
"name": "User Subscriber",
"email":"[email protected]",
"password":"password2",
"password_confirmation":"password2"
}