-
Notifications
You must be signed in to change notification settings - Fork 1
user management API TAP 2016 APR 1
mlaboszc edited this page Apr 21, 2016
·
2 revisions
Api endpoints for managing users, organizations and spaces in TAP
License: Apache License Version 2.0 License URL: https://github.com/trustedanalytics/user-management/blob/master/LICENSE.txt
Host: user-management.domain BasePath: /
- authorization-controller: Authorization Controller
- current-user-controller: Current User Controller
- users-controller: Users Controller
- spaces-controller: Spaces Controller
- orgs-controller: Orgs Controller
- registrations-controller: Registrations Controller
- invitations-controller: Invitations Controller
GET /rest/invitations
HTTP Code | Description | Schema |
---|---|---|
200 | OK | string array |
500 | Internal server error, e.g. error connecting to CloudController | No Content |
- application/json
- /
- invitations-controller
POST /rest/invitations
Type | Name | Description | Required | Schema | Default |
---|---|---|---|---|---|
BodyParameter | invitation | invitation | true | InvitationModel |
HTTP Code | Description | Schema |
---|---|---|
200 | OK | ErrorDescriptionModel |
409 | Invalid email format. | No Content |
500 | Internal server error, e.g. error connecting to CloudController | No Content |
- application/json
- /
- invitations-controller
DELETE /rest/invitations/{email}
Type | Name | Description | Required | Schema | Default |
---|---|---|---|---|---|
PathParameter | true | string |
HTTP Code | Description | Schema |
---|---|---|
200 | OK | No Content |
404 | Invitation not found. | No Content |
500 | Internal server error, e.g. error connecting to CloudController | No Content |
- application/json
- /
- invitations-controller
POST /rest/invitations/{email}/resend
Type | Name | Description | Required | Schema | Default |
---|---|---|---|---|---|
PathParameter | true | string |
HTTP Code | Description | Schema |
---|---|---|
200 | OK | No Content |
404 | Invitation not found. | No Content |
500 | Internal server error, e.g. error connecting to CloudController | No Content |
- application/json
- /
- invitations-controller
GET /rest/orgs
HTTP Code | Description | Schema |
---|---|---|
200 | OK | Organization array |
500 | Internal server error, e.g. error connecting to CloudController | No Content |
- application/json
- application/json
- orgs-controller
POST /rest/orgs
Type | Name | Description | Required | Schema | Default |
---|---|---|---|---|---|
BodyParameter | request | request | true | OrgNameRequest |
HTTP Code | Description | Schema |
---|---|---|
200 | OK | string |
500 | Internal server error, e.g. error connecting to CloudController | No Content |
- application/json
- /
- orgs-controller
GET /rest/orgs/permissions
Type | Name | Description | Required | Schema | Default |
---|---|---|---|---|---|
QueryParameter | orgs | orgs | false | string |
HTTP Code | Description | Schema |
---|---|---|
200 | OK | CcOrgPermission array |
500 | Internal server error, e.g. error connecting to CloudController | No Content |
- application/json
- /
- authorization-controller
DELETE /rest/orgs/{org}
Type | Name | Description | Required | Schema | Default |
---|---|---|---|---|---|
PathParameter | org | org | true | string |
HTTP Code | Description | Schema |
---|---|---|
200 | OK | No Content |
404 | Organization not found. | No Content |
500 | Internal server error, e.g. error connecting to CloudController | No Content |
- application/json
- /
- orgs-controller
PUT /rest/orgs/{org}/name
Type | Name | Description | Required | Schema | Default |
---|---|---|---|---|---|
BodyParameter | request | request | true | OrgNameRequest | |
PathParameter | org | org | true | string |
HTTP Code | Description | Schema |
---|---|---|
200 | OK | No Content |
400 | The organization name is already taken | No Content |
500 | Internal server error, e.g. error connecting to CloudController | No Content |
- application/json
- /
- orgs-controller
GET /rest/orgs/{org}/spaces
Type | Name | Description | Required | Schema | Default |
---|---|---|---|---|---|
PathParameter | org | org | true | string |
HTTP Code | Description | Schema |
---|---|---|
200 | OK | CcSpace array |
500 | Internal server error, e.g. error connecting to CloudController | No Content |
- application/json
- application/json
- spaces-controller
Returns list of users which has at least one role in the organization. NOTE: The CF role 'Users' is not included
GET /rest/orgs/{org}/users
Type | Name | Description | Required | Schema | Default |
---|---|---|---|---|---|
PathParameter | org | org | true | string |
HTTP Code | Description | Schema |
---|---|---|
200 | OK | User array |
400 | Request was malformed. eg. 'org' is not a valid UUID or organization withID 'org' doesn't exist | No Content |
500 | Internal server error, e.g. error connecting to CloudController | No Content |
- application/json
- application/json
- users-controller
POST /rest/orgs/{org}/users
Type | Name | Description | Required | Schema | Default |
---|---|---|---|---|---|
BodyParameter | userRequest | userRequest | true | UserRequest | |
PathParameter | org | org | true | string |
HTTP Code | Description | Schema |
---|---|---|
200 | OK | User |
400 | Request was malformed. eg. 'org' is not a valid UUID or organization withID 'org' doesn't exist | No Content |
409 | Email is not valid or it belongs to forbidden domains. | No Content |
500 | Internal server error, e.g. error connecting to CloudController | No Content |
- application/json
- application/json
- users-controller
DELETE /rest/orgs/{org}/users/{user}
Type | Name | Description | Required | Schema | Default |
---|---|---|---|---|---|
PathParameter | org | org | true | string | |
PathParameter | user | user | true | string |
HTTP Code | Description | Schema |
---|---|---|
200 | OK | No Content |
400 | Request was malformed. eg. 'org' is not a valid UUID or organization withID 'org' doesn't exist | No Content |
404 | User 'user' not found in organization. | No Content |
500 | Internal server error, e.g. error connecting to CloudController | No Content |
- application/json
- /
- users-controller
POST /rest/orgs/{org}/users/{user}
Type | Name | Description | Required | Schema | Default |
---|---|---|---|---|---|
BodyParameter | userRolesRequest | userRolesRequest | true | UserRolesRequest | |
PathParameter | org | org | true | string | |
PathParameter | user | user | true | string |
HTTP Code | Description | Schema |
---|---|---|
200 | OK | enum (managers, billing_managers, auditors, developers, users) array |
400 | Request was malformed. eg. 'org' is not a valid UUID or organization withID 'org' doesn't exist | No Content |
404 | User not found in organization. | No Content |
409 | Roles should be specified. | No Content |
500 | Internal server error, e.g. error connecting to CloudController | No Content |
- application/json
- application/json
- users-controller
POST /rest/registrations
Type | Name | Description | Required | Schema | Default |
---|---|---|---|---|---|
BodyParameter | newUser | newUser | true | RegistrationModel | |
QueryParameter | code | code | false | string |
HTTP Code | Description | Schema |
---|---|---|
200 | OK | RegistrationModel |
400 | Invalid organization name. | No Content |
403 | Security code 'code' empty or null | No Content |
409 | Invalid password (empty or too short). | No Content |
500 | Internal server error, e.g. error connecting to CloudController | No Content |
- application/json
- /
- registrations-controller
GET /rest/registrations/{code}
Type | Name | Description | Required | Schema | Default |
---|---|---|---|---|---|
PathParameter | code | code | true | string |
HTTP Code | Description | Schema |
---|---|---|
200 | OK | InvitationModel |
403 | Security code 'code' empty or null | No Content |
500 | Internal server error, e.g. error connecting to CloudController | No Content |
- application/json
- /
- registrations-controller
GET /rest/spaces
HTTP Code | Description | Schema |
---|---|---|
200 | OK | CcSpace array |
500 | Internal server error, e.g. error connecting to CloudController | No Content |
- application/json
- application/json
- spaces-controller
POST /rest/spaces
Type | Name | Description | Required | Schema | Default |
---|---|---|---|---|---|
BodyParameter | request | request | true | NewSpaceRequest |
HTTP Code | Description | Schema |
---|---|---|
200 | OK | string |
400 | Bad request | No Content |
500 | Internal server error, e.g. error connecting to CloudController | No Content |
- application/json
- /
- spaces-controller
DELETE /rest/spaces/{space}
Type | Name | Description | Required | Schema | Default |
---|---|---|---|---|---|
PathParameter | space | space | true | string |
HTTP Code | Description | Schema |
---|---|---|
200 | OK | No Content |
404 | Space not found. | No Content |
500 | Internal server error, e.g. error connecting to CloudController | No Content |
- application/json
- /
- spaces-controller
GET /rest/spaces/{space}/users
Type | Name | Description | Required | Schema | Default |
---|---|---|---|---|---|
PathParameter | space | space | true | string | |
QueryParameter | username | username | false | ref |
HTTP Code | Description | Schema |
---|---|---|
200 | OK | User array |
400 | Request was malformed. eg. 'space' is not a valid UUID or space withID 'space' doesn't exist | No Content |
500 | Internal server error, e.g. error connecting to CloudController | No Content |
- application/json
- application/json
- users-controller
POST /rest/spaces/{space}/users
Type | Name | Description | Required | Schema | Default |
---|---|---|---|---|---|
BodyParameter | userRequest | userRequest | true | UserRequest | |
PathParameter | space | space | true | string |
HTTP Code | Description | Schema |
---|---|---|
200 | OK | User |
400 | Request was malformed. eg. 'space' is not a valid UUID or space withID 'space' doesn't exist | No Content |
409 | Email is not valid or it belongs to forbidden domains. | No Content |
500 | Internal server error, e.g. error connecting to CloudController | No Content |
- application/json
- application/json
- users-controller
DELETE /rest/spaces/{space}/users/{user}
Type | Name | Description | Required | Schema | Default |
---|---|---|---|---|---|
PathParameter | space | space | true | string | |
PathParameter | user | user | true | string |
HTTP Code | Description | Schema |
---|---|---|
200 | OK | No Content |
400 | Request was malformed. eg. 'space' is not a valid UUID or space withID 'space' doesn't exist | No Content |
404 | User 'user' not found in space. | No Content |
500 | Internal server error, e.g. error connecting to CloudController | No Content |
- application/json
- /
- users-controller
POST /rest/spaces/{space}/users/{user}
Type | Name | Description | Required | Schema | Default |
---|---|---|---|---|---|
BodyParameter | userRolesRequest | userRolesRequest | true | UserRolesRequest | |
PathParameter | space | space | true | string | |
PathParameter | user | user | true | string |
HTTP Code | Description | Schema |
---|---|---|
200 | OK | enum (managers, billing_managers, auditors, developers, users) array |
400 | Request was malformed. eg. 'space' is not a valid UUID or space withID 'space' doesn't exist | No Content |
404 | User not found in space. | No Content |
409 | User must have at least one role. | No Content |
500 | Internal server error, e.g. error connecting to CloudController | No Content |
- application/json
- application/json
- users-controller
GET /rest/users/current
HTTP Code | Description | Schema |
---|---|---|
200 | OK | UserModel |
500 | Internal server error, e.g. error connecting to CloudController | No Content |
- application/json
- /
- current-user-controller
PUT /rest/users/current/password
Type | Name | Description | Required | Schema | Default |
---|---|---|---|---|---|
BodyParameter | request | request | true | ChangePasswordRequest |
HTTP Code | Description | Schema |
---|---|---|
200 | OK | UserModel |
400 | Password cannot be empty | No Content |
409 | Password too short | No Content |
500 | Internal server error, e.g. error connecting to CloudController | No Content |
- application/json
- application/json
- current-user-controller
Name | Description | Required | Schema | Default |
---|---|---|---|---|
guid | false | string |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
entity | false | CcOrgEntity | ||
metadata | false | CcMetadata |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
name | false | string | ||
status | false | string |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
auditor | false | boolean | ||
billingManager | false | boolean | ||
manager | false | boolean | ||
organization | false | CcOrg |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
entity | false | CcSpaceEntity | ||
metadata | false | CcMetadata |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
name | false | string | ||
organization_guid | false | string |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
oldPassword | false | string | ||
password | false | string |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
empty | false | boolean |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
empty | false | boolean |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
empty | false | boolean |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
empty | false | boolean |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
empty | false | boolean |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
details | false | string | ||
state | false | enum (NEW, UPDATED, ERROR) |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
eligibleToCreateOrg | false | boolean | ||
false | string |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
name | false | string | ||
org_guid | false | string |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
name | false | string |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
guid | false | string | ||
manager | false | boolean | ||
name | false | string | ||
spaces | false | Collection??Space?? |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
org | false | string | ||
password | false | string |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
guid | false | string | ||
name | false | string |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
guid | false | string | ||
org_guid | false | string | ||
roles | false | enum (managers, billing_managers, auditors, developers, users) array | ||
username | false | string |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
false | string | |||
org | false | string | ||
role | false | enum (ADMIN, USER) |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
org_guid | false | string | ||
roles | false | enum (managers, billing_managers, auditors, developers, users) array | ||
username | false | string |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
roles | false | enum (managers, billing_managers, auditors, developers, users) array |
- [Overview of Trusted Analytics Platform](Overview of Trusted Analytics Platform)
- [Getting Started Guide](Getting Started Guide)
- Space Shuttle Demo Application
- Trusted Analytics JIRA Project
- [Building TAP from sources] (Building-TAP-from-sources)
- PaaS Architecture
- Use-cases
- [High Level Use Case](High Level Use Case)
- [Model Development for Data Scientists](Model Development for Data Scientists)
- Platform Tips and Tricks
- Platform Security Features
- Platform Configurations
- Release Notes
- Additional Deployment Information