Skip to content

MishaIvasyutyn/Laravel-api-roles

Repository files navigation

REST API with Roles and Permissions

CREATING A NEW MESSAGE

POST /api/posts
{
    "title":"This is a new post title",
    "content":"This is an new body
}

alt text

alt text

alt text

MESSAGE UPDATE

PUT /api/posts/1
{
    "title":"This is a new post title",
    "content":"This is an new body
}

alt text

RECEIVING A MESSAGE

GET /api/posts/1

alt text alt text

RECEIVING All MESSAGES

GET /api/posts

alt text

CREATING A NEW USER WITH WRITER PERMISSION

POST /api/users/writter
{
"name": "First One",
"email":"[email protected]",
"password":"password1",
"password_confirmation":"password1"
}

alt text

CREATING A NEW SUBSCRIBER USER

POST /api/users/subscriber
{
"name": "User Subscriber",
"email":"[email protected]",
"password":"password2",
"password_confirmation":"password2"
 } 

alt text

About

Simple laravel tocken rest-api with permissions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published