get_permissions()

The User API

The get_permissions() function returns a list of API’s where a user has access to.

Production URL

https://api.nextpertise.nl/user/v1

Method

get_permissions

Input

Get user permissions request

https://api.nextpertise.nl/schemas/user/get_user_permission_request_v1.json

Get all allowed API services

type

object

properties

additionalProperties

False

Output

Get user permissions reply

https://api.nextpertise.nl/schemas/user/get_user_permission_reply_v1.json

Get all allowed API services

type

object

properties

  • api

type

array

items

type

object

properties

  • url

type

string

additionalItems

False

additionalProperties

False

Example

Request

curl -s -u <credential> https://api.nextpertise.nl/user/v1 -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "get_permissions",
    "params":{}
}' | jq .

Reply

{
    "jsonrpc": "2.0",
    "id": "1",
    "result": {
        "api": [
            {
                "url:": "/broadband/basic/v1"
            },
            {
                "url:": "/broadband/v1"
            },
            {
                "url:": "/broadband/diagnostics/v1"
            },
            {
                "url:": "/postcodes/v1"
            },
            {
                "url:": "/email/v1"
            }
        ]
    }
}