API scope is a microservice responsible for storing and retrieving user-readable scopes (permissions) for the API Platform.
sbt test
sbt it:test
API Publisher use this endpoint to notify of a list of new or updated scopes request:
POST /scope
Payload:
[
{
"key": "read:employment",
"name":"Read Employment Data",
"description":"Ability to read employment data"
}
]
response:
200 OK
request:
GET /scope/{key}
response:
{
"key": "read:employment",
"name":"Read Employment Data",
"description":"Ability to read employment data"
}
request:
GET /scope
response:
[
{
"key": "read:employment",
"name":"Read Employment Data",
"description":"Ability to read employment data"
}
]
request:
GET /scope?keys=read:employment read:paye
response:
[
{
"key": "read:employment",
"name":"Read Employment Data",
"description":"Ability to read employment data"
},
{
"key": "read:paye",
"name":"Read Paye Data",
"description":"Ability to read paye data"
}
]
This code is open source software licensed under the Apache 2.0 License