2016-02-02 05:39:39 +05:30
|
|
|
|
|
|
|
# Dex API
|
|
|
|
|
|
|
|
The Dex REST API
|
|
|
|
|
|
|
|
__Version:__ v1
|
|
|
|
|
|
|
|
## Models
|
|
|
|
|
|
|
|
|
|
|
|
### Error
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
{
|
|
|
|
error: string,
|
|
|
|
error_description: string
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2016-04-06 23:57:41 +05:30
|
|
|
### RefreshClient
|
|
|
|
|
|
|
|
A client with associated public metadata.
|
|
|
|
|
|
|
|
```
|
|
|
|
{
|
|
|
|
clientID: string,
|
|
|
|
clientName: string,
|
|
|
|
clientURI: string,
|
|
|
|
logoURI: string
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
### RefreshClientList
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
{
|
|
|
|
clients: [
|
|
|
|
RefreshClient
|
|
|
|
]
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2016-02-23 17:10:00 +05:30
|
|
|
### ResendEmailInvitationRequest
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
{
|
|
|
|
redirectURL: string
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
### ResendEmailInvitationResponse
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
{
|
|
|
|
emailSent: boolean,
|
|
|
|
resetPasswordLink: string
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2016-02-02 05:39:39 +05:30
|
|
|
### User
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
{
|
|
|
|
admin: boolean,
|
|
|
|
createdAt: string,
|
|
|
|
disabled: boolean,
|
|
|
|
displayName: string,
|
|
|
|
email: string,
|
|
|
|
emailVerified: boolean,
|
|
|
|
id: string
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
### UserCreateRequest
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
{
|
|
|
|
redirectURL: string,
|
|
|
|
user: User
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
### UserCreateResponse
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
{
|
|
|
|
emailSent: boolean,
|
|
|
|
resetPasswordLink: string,
|
|
|
|
user: User
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
### UserDisableRequest
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
{
|
|
|
|
disable: boolean // If true, disable this user, if false, enable them. No error is signaled if the user state doesn't change.
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
### UserDisableResponse
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
{
|
|
|
|
ok: boolean
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
### UserResponse
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
{
|
|
|
|
user: User
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
### UsersResponse
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
{
|
|
|
|
nextPageToken: string,
|
|
|
|
users: [
|
|
|
|
User
|
|
|
|
]
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## Paths
|
|
|
|
|
|
|
|
|
2016-04-06 23:57:41 +05:30
|
|
|
### GET /account/{userid}/refresh
|
|
|
|
|
|
|
|
> __Summary__
|
|
|
|
|
|
|
|
> List RefreshClient
|
|
|
|
|
|
|
|
> __Description__
|
|
|
|
|
2016-04-27 00:35:41 +05:30
|
|
|
> List all clients that hold refresh tokens for the specified user.
|
2016-04-06 23:57:41 +05:30
|
|
|
|
|
|
|
|
|
|
|
> __Parameters__
|
|
|
|
|
|
|
|
> |Name|Located in|Description|Required|Type|
|
|
|
|
|:-----|:-----|:-----|:-----|:-----|
|
|
|
|
| userid | path | | Yes | string |
|
|
|
|
|
|
|
|
|
|
|
|
> __Responses__
|
|
|
|
|
|
|
|
> |Code|Description|Type|
|
|
|
|
|:-----|:-----|:-----|
|
|
|
|
| 200 | | [RefreshClientList](#refreshclientlist) |
|
|
|
|
| default | Unexpected error | |
|
|
|
|
|
|
|
|
|
|
|
|
### DELETE /account/{userid}/refresh/{clientid}
|
|
|
|
|
|
|
|
> __Summary__
|
|
|
|
|
2016-04-27 00:35:41 +05:30
|
|
|
> Revoke RefreshClient
|
2016-04-06 23:57:41 +05:30
|
|
|
|
|
|
|
> __Description__
|
|
|
|
|
2016-04-27 00:35:41 +05:30
|
|
|
> Revoke all refresh tokens issues to the client for the specified user.
|
2016-04-06 23:57:41 +05:30
|
|
|
|
|
|
|
|
|
|
|
> __Parameters__
|
|
|
|
|
|
|
|
> |Name|Located in|Description|Required|Type|
|
|
|
|
|:-----|:-----|:-----|:-----|:-----|
|
2016-05-26 23:11:33 +05:30
|
|
|
| clientid | path | | Yes | string |
|
2016-04-26 03:34:57 +05:30
|
|
|
| userid | path | | Yes | string |
|
2016-04-06 23:57:41 +05:30
|
|
|
|
|
|
|
|
|
|
|
> __Responses__
|
|
|
|
|
|
|
|
> |Code|Description|Type|
|
|
|
|
|:-----|:-----|:-----|
|
|
|
|
| default | Unexpected error | |
|
|
|
|
|
|
|
|
|
2016-02-02 05:39:39 +05:30
|
|
|
### GET /users
|
|
|
|
|
|
|
|
> __Summary__
|
|
|
|
|
|
|
|
> List Users
|
|
|
|
|
|
|
|
> __Description__
|
|
|
|
|
|
|
|
> Retrieve a page of User objects.
|
|
|
|
|
|
|
|
|
|
|
|
> __Parameters__
|
|
|
|
|
|
|
|
> |Name|Located in|Description|Required|Type|
|
|
|
|
|:-----|:-----|:-----|:-----|:-----|
|
2016-04-26 03:34:57 +05:30
|
|
|
| maxResults | query | | No | integer |
|
2016-06-15 23:18:20 +05:30
|
|
|
| nextPageToken | query | | No | string |
|
2016-02-02 05:39:39 +05:30
|
|
|
|
|
|
|
|
|
|
|
> __Responses__
|
|
|
|
|
|
|
|
> |Code|Description|Type|
|
|
|
|
|:-----|:-----|:-----|
|
|
|
|
| 200 | | [UsersResponse](#usersresponse) |
|
|
|
|
| default | Unexpected error | |
|
|
|
|
|
|
|
|
|
|
|
|
### POST /users
|
|
|
|
|
|
|
|
> __Summary__
|
|
|
|
|
|
|
|
> Create Users
|
|
|
|
|
|
|
|
> __Description__
|
|
|
|
|
|
|
|
> Create a new User.
|
|
|
|
|
|
|
|
|
|
|
|
> __Parameters__
|
|
|
|
|
|
|
|
> |Name|Located in|Description|Required|Type|
|
|
|
|
|:-----|:-----|:-----|:-----|:-----|
|
|
|
|
| | body | | Yes | [UserCreateRequest](#usercreaterequest) |
|
|
|
|
|
|
|
|
|
|
|
|
> __Responses__
|
|
|
|
|
|
|
|
> |Code|Description|Type|
|
|
|
|
|:-----|:-----|:-----|
|
|
|
|
| 200 | | [UserCreateResponse](#usercreateresponse) |
|
|
|
|
| default | Unexpected error | |
|
|
|
|
|
|
|
|
|
|
|
|
### GET /users/{id}
|
|
|
|
|
|
|
|
> __Summary__
|
|
|
|
|
|
|
|
> Get Users
|
|
|
|
|
|
|
|
> __Description__
|
|
|
|
|
|
|
|
> Get a single User object by id.
|
|
|
|
|
|
|
|
|
|
|
|
> __Parameters__
|
|
|
|
|
|
|
|
> |Name|Located in|Description|Required|Type|
|
|
|
|
|:-----|:-----|:-----|:-----|:-----|
|
|
|
|
| id | path | | Yes | string |
|
|
|
|
|
|
|
|
|
|
|
|
> __Responses__
|
|
|
|
|
|
|
|
> |Code|Description|Type|
|
|
|
|
|:-----|:-----|:-----|
|
|
|
|
| 200 | | [UserResponse](#userresponse) |
|
|
|
|
| default | Unexpected error | |
|
|
|
|
|
|
|
|
|
|
|
|
### POST /users/{id}/disable
|
|
|
|
|
|
|
|
> __Summary__
|
|
|
|
|
|
|
|
> Disable Users
|
|
|
|
|
|
|
|
> __Description__
|
|
|
|
|
|
|
|
> Enable or disable a user.
|
|
|
|
|
|
|
|
|
|
|
|
> __Parameters__
|
|
|
|
|
|
|
|
> |Name|Located in|Description|Required|Type|
|
|
|
|
|:-----|:-----|:-----|:-----|:-----|
|
|
|
|
| id | path | | Yes | string |
|
|
|
|
| | body | | Yes | [UserDisableRequest](#userdisablerequest) |
|
|
|
|
|
|
|
|
|
|
|
|
> __Responses__
|
|
|
|
|
|
|
|
> |Code|Description|Type|
|
|
|
|
|:-----|:-----|:-----|
|
|
|
|
| 200 | | [UserDisableResponse](#userdisableresponse) |
|
|
|
|
| default | Unexpected error | |
|
|
|
|
|
|
|
|
|
2016-02-23 17:10:00 +05:30
|
|
|
### POST /users/{id}/resend-invitation
|
|
|
|
|
|
|
|
> __Summary__
|
|
|
|
|
|
|
|
> ResendEmailInvitation Users
|
|
|
|
|
|
|
|
> __Description__
|
|
|
|
|
|
|
|
> Resend invitation email to an existing user with unverified email.
|
|
|
|
|
|
|
|
|
|
|
|
> __Parameters__
|
|
|
|
|
|
|
|
> |Name|Located in|Description|Required|Type|
|
|
|
|
|:-----|:-----|:-----|:-----|:-----|
|
|
|
|
| id | path | | Yes | string |
|
|
|
|
| | body | | Yes | [ResendEmailInvitationRequest](#resendemailinvitationrequest) |
|
|
|
|
|
|
|
|
|
|
|
|
> __Responses__
|
|
|
|
|
|
|
|
> |Code|Description|Type|
|
|
|
|
|:-----|:-----|:-----|
|
|
|
|
| 200 | | [ResendEmailInvitationResponse](#resendemailinvitationresponse) |
|
|
|
|
| default | Unexpected error | |
|
|
|
|
|
|
|
|
|