sonata-nfv / tng-api-gtw

The API Gateway for the 5GTANGO Verification&Validation and Service Platforms (built on top of SONATA).
http://5gtango.eu
Apache License 2.0
1 stars 12 forks source link

Integrate with tng-gtk-usr #145

Closed jbonnet closed 5 years ago

jbonnet commented 5 years ago

/login PAss the username and password as params. It will give you the user token, An admin token is needed for most of the operations. must be pass as a header named "token" (provisional name ;) )

/users

DELETE all GET all POST add new user { "username":"luis", "name":"luis", "password":"luis", "email":"luis@luis", "role":"developer", "status":"active" }

/users/:username GET this user

/users/:username/status GET status POST change status {"status":"cancelled"}

/users/:username/role GET role POST change role {"role":"customer"}

/users/:username/password GET password POST change password {"password":"11223344"}

ENDPOINTS

/endpoints GET get all endpoints POST add new endpoints { "role":"admin", "endpoint":"packages", "verbs":"get,post,put" }

/endpoints/:username GET get this user endpoints based on his role

jbonnet commented 5 years ago

Overlays #32, #33 and #34

jbonnet commented 5 years ago

Closed via several PRs