Skip to content

pylab-bd/rbac-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rbac-python

Endpoints

  • POST /v1/users
{
    username: "alamin-mahamud",
    password: "simple-password",
  }
  curl localhost:5000/v1/user -d '{"username": "hasan", "password":"1234"}' -H "Content-type: application/json"

Response - 201 Created

{
  "result": "success",
  "id": 1
}
  • POST /v1/authenticate

    {
      username: "alamin-mahamud",
      password: "simple-password",
    }
    curl localhost:5000/v1/authenticate -d '{"username": "hasan", "password":"1234"}' -H "Content-type: application/json"
    

    Response - 200

    {
      token: "aksjfkasdjfkasdfdjkajj123.B41232132
      expired_at: "2019-01-05:00:00 UTC+06"
    }
    
  • GET /v1/refresh-token Response - 200

{
    token: "aksjfkasdjfkasdfdjkajj123.B41232132
    expired_at: "2019-01-06:00:00 UTC+06"
}
curl localhost:5000/v1/refresh-token -d '{"username": "hasan", "password":"1234"}' -H "Content-type: application/json"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published