Skip to content

permissions

luishens01 edited this page Jan 6, 2019 · 2 revisions

This wiki page is part of the usage documentation of the tng-gtk-usr repository.

Context

These are the operations for the Endpoints of the tng-gtk-usr

tng-gtk-usr/endpoints

  • GET

This gives the list of all endpoints

  • POST

Register a new endpoint

    {
        "role":"customer",
        "endpoint":"services",
        "verbs":"get,post"
    }
  • DELETE

Delete from the permissions table. You need to pass all the info, like this:

    {
        "role":"customer",
        "endpoint":"services",
        "verbs":"get,post"
    }

tng-gtk-usr/endpoints/:username

  • GET

This gives the endpoints for that user's role

Clone this wiki locally