Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Anchor
authenticateToken
authenticateToken

Authorizes a user and returns a token for further API calls
Deck of Cards
idbimAuthenticateToken
 
Card
 
Card
labelHTTP Method
 

POST

 POST
Card
defaulttrue
labelURL / Resource / JSON Structure
 
Resource: authorize 

URLhttps://api.bimplus.net/v2/authorize

JSON Structure

Name

Mandatory / Optional

Type

Description

user_id

mandatory

string

The email address of the user

password

mandatory

string

The user's password

client_id

optional

string

The identifier of the used client

application_id

optional

string

The id of the application

...

Card
 

Card
labelDescription
 
Authorizes a user and returns a token for further API calls.

Please, use the client_id from the request and regenerate the token (using the same API call with client_id as the additional parameter) for having the possibility to login multiple times at the same time. For more information,

...

see here

...

Card
 

Card
labelRequest
 
Code Block
borderColorGreen
titleHeaders
langxml
Content-Type: application/json
Code Block
borderColorRed
titleJSON
langxml
{
 "user_id" : "test@bimplus.net",
 "password" : "test"
}
Card
 
Card
labelResponse
 
Code Block
borderColorGreen
titleStatus
langxml
Status: 200 OK
Code Block
borderColorRed
titleJSON
langxml
{
"access_token": "9c1874a62c974dcfa75e0132c423a088",
"expires_in": 2591999,
"client_id": "9fd0bb9d-570b-4719-bfae-93e2f879c19a",
"token_type": "BimPlus"
}
Card
 
Deck of Cards

 

Anchor
getTokenInfo
getTokenInfo

Get token information
Deck of Cards
idbimGetTokenInfo
 
Card
labelHTTP Method
 
 GET

GET

Card
Card
 
Card
defaulttrue
labelURL / Resource / JSON Structure
 

Resource: tokeninfo?access_token=<token>

URLhttps://api.bimplus.net/v2/tokeninfo?access_token=<token>

Example

Card
 
labelDescription
 

...

 Get information about a specified token(if the specified token exists and not expired).

...

Card
 
Card
labelRequest
 
Code Block
borderColorGreen
titleHeaders
langxml
Content-Type: application/json
Card
 
Card
labelResponse
 
Code Block
borderColorGreen
titleStatus
langxml
Status: 200 OK
Code Block
borderColorRed
titleJSON
langxml
{
    "user_id": "b37b60d4-0f1b-4158-99c4-847254786517",
    "audience": "00000000-0000-0000-0000-000000000000",
    "expires_in": 2271650

}
 

where,

Name

Type

Description

user_id

The unique user id to be used for any further API calls.

expires_in

The remaining lifetime on the access token in seconds

audience

In our case the id of the client (Mobile app, Browser …)

...

Card
 
Deck of Cards
 

 

Anchor
getCrossToken
getCrossToken

Request a cross token
 
Deck of Cards
idbimGetCrossToken
Card
labelHTTP Method
 
 POST

POST

Card
Card
 
defaulttrue
labelURL / Resource / JSON Structure
 
Resource: cross-token

URLhttps://api.bimplus.net/v2/cross-token

Card
 
Card
labelDescription
 

...

 This service is basically used for requesting a disposable temporary token which will be used for authenticating against different clients. Based on the given authentication token the user is identified and a one time token is generated and returned.

...

Card
 
Card
labelRequest
 
Code Block
borderColorGreen
titleHeaders
langxml
Authorization: BimPlus 9c1874a62c974dcfa75e0132c423a088
Content-Type: application/json
Card
 
Card
labelResponse
 
Code Block
borderColorGreen
titleStatus
langxml
Status: 200 OK
Code Block
borderColorRed
titleJSON
langxml
{
cross_token: "b392cee4d0044ef681fa911772668cf9"
expires_in: 299
token_type: "BimPlus"
}

where,

Name

Type

Description

cross_token

string

The temporary token which will be used for cross-authenticate

expires_in

string

The remaining lifetime on the access token in seconds

token_type

string

Type of the token which will be used as part of the header

...

Card
 
Deck of Cards
 

 

Anchor
crossAuthenticate
crossAuthenticate

Cross Authenticate by using cross token
Deck of Cards
idbimCrossAuthenticate
 
Card
 
Card
labelHTTP Method
 

POST

 POST
Card
defaulttrue
labelURL / Resource / JSON Structure
 

Resource: cross-authorize

URLhttps://api.bimplus.net/v2/cross-authorize

JSON Structure:

Name

Mandatory / Optional

Type

Description

cross_token

mandatory

string

The temporary token which will be used for cross-authenticate

client_id

optional

string

The identifier of the used client

team_id

optional

string

The id of the team

project_id

optional

string

The id of the project

application_id

optional

string

The id of the application

...

card

 
Card
labelDescription
 
Based on the one time cross token, the user will be identified and logged in to the given device/client. The one time cross token will be removed but the new token which will be generated as a result of this call be used in the header for the subsequent API calls.

The team_id and project_id information can be provided as part of the call, if the user wants to work on or display(viewer) a particular team or an project.

...

deck
Card
 

Card
labelRequest
 
Code Block
borderColorGreen
titleHeaders
langxml
Content-Type: application/json
Code Block
borderColorRed
titleJSON
langxml
{
"cross_token": "b392cee4d0044ef681fa911772668cf9"
}

Card
 
Card
labelResponse
 
Code Block
borderColorGreen
titleStatus
langxml
Status: 200 OK
Code Block
borderColorRed
titleJSON
langxml
{
"access_token": "43796fab76d54d2c9cb9120fd7d79c9e",
"expires_in": 2591999,
"client_id": "9fd0bb9d-570b-4719-bfae-93e2f879c19a",
"token_type": "BimPlus"
}
Card
 

 

Anchor
expireToken
expireToken

Revoke / Expire the token
 
Deck of Cards
idbimExpireToken
Card
labelHTTP Method
 

GET

Card
 
 GET
Card
defaulttrue
labelURL / Resource / JSON Structure
 
Resource: revoke?token=<token>

URLhttps://api.bimplus.net/v2/revoke?token=<token>

Example:

...

Card

 

Card
labelDescription
 

...

 The specified token will expire immediately.

...

Card
 
Card
labelRequest
 
Code Block
borderColorGreen
titleHeaders
langxml
Content-Type: application/json
Card
 
Card
labelResponse
 
Code Block
borderColorGreen
titleStatus
langxml
Status: 200 OK
Card

 

Deck of Cards
 

Anchor
userService
userService

...

Anchor
createUser
createUser

Create a new user
Deck of Cards
idbimCreateUser
 
Card
 
Card
labelHTTP Method
 

POST

 POST
Card
defaulttrue
labelURL / Resource / JSON Structure
 
Resource: users 

URLhttps://api.bimplus.net/v2/users

Examplehttps://api.bimplus.net/v2/users

JSON Structure:

Name

Mandatory / Optional

Type

Description

email

mandatory

string

Email of the user

status

optional

will be ignored

The status of the account (Active / Inactive)

password

mandatory

string

Password of the user

...

Card
 

Card
labelDescription
 

...

 Creates a new user account.

...

Card
 
Card
labelRequest
 
Code Block
borderColorGreen
titleHeaders
langxml
Authorization: BimPlus 9c1874a62c974dcfa75e0132c423a088
Content-Type: application/json
Code Block
borderColorRed
titleJSON
langxml
{
 "email" : "test@bimplus.net",
 "password" : "test"
}
Card
 
Card
labelResponse
 
Code Block
borderColorGreen
titleStatus
langxml
Status: 201 Created
Code Block
borderColorRed
titleJSON
langxml
{
    "id": "b8615afc-99cc-4bcd-b0ca-ff0593ce15c6",
    "email": "test@bimplus.net",
    "status": "Active"
}
Card
 
Deck of Cards

 

Anchor
getUserInfo
getUserInfo

Get information about the user
Deck of Cards
idbimGetUserInfo
Card
labelDescription
 Get information about a specified user.
 
Card
 
Card
labelHTTP Method
 

GET

 GET
Card
defaulttrue
labelURL / Resource / JSON Structure
 
Resource: users/<user_id> 

URLhttps://api.bimplus.net/v2/users/<user_id>

Examplehttps://api.bimplus.net/v2/users/b8615afc-99cc-4bcd-b0ca-ff0593ce15c6

...

Card
 
Card
labelDescription
 

...

Card
 
Card
labelRequest
 
Code Block
borderColorGreen
titleHeaders
langxml
Authorization: BimPlus 9c1874a62c974dcfa75e0132c423a088
Content-Type: application/json
Card
 
Card
labelResponse
 
Code Block
borderColorGreen
titleStatus
langxml
Status: 200 OK
Code Block
borderColorRed
titleJSON
langxml
{
    "id": "b8615afc-99cc-4bcd-b0ca-ff0593ce15c6",
    "email": "test@bimplus.net",
    "status": "Active"
}
Card

 

Deck of Cards
 

Anchor
updateUser
updateUser

Update information about the user
 
Deck of Cards
idbimUpdateUserInfo
Card
labelHTTP Method
 

...

Card
 PUT
Card
 
defaulttrue
labelURL / Resource / JSON Structure
 
Resource: users/<user_id> 

URLhttps://api.bimplus.net/v2/users/<user_id>

Examplehttps://api.bimplus.net/v2/users/b8615afc-99cc-4bcd-b0ca-ff0593ce15c6

JSON Structure:

Name

Mandatory / Optional

Type

Description

email

mandatory

string

Email of the user

status

mandatory

string

The status of the account (Active / Inactive)

password

mandatory

string

Password of the user

Card
 
Card
labelDescription
 

...

 Update information about a specified user.

...

Card
 
Card
labelRequest
 
Code Block
borderColorGreen
titleHeaders
langxml
Authorization: BimPlus 9c1874a62c974dcfa75e0132c423a088
Content-Type: application/json
Code Block
borderColorRed
titleJSON
langxml
{
    "email": "updated_test@bimplus.net",
    "status": "Active",
    "password": "test"
}
Card
 
Card
labelResponse
 
Code Block
borderColorGreen
titleStatus
langxml
Status: 200 OK
Card
 

...

 

Anchor
getCurrentUserInfo
getCurrentUserInfo

Get information about the currently logged in user
Deck of Cards
idbimGetCurrentUserInfo
 
Card
 
Card
labelHTTP Method
 

GET

 GET
Card
defaulttrue
labelURL / Resource / JSON Structure
 
Resource: user 

URLhttps://api.bimplus.net/v2/user

...

Card
 

Card
labelDescription
 

...

 Get information about the currently logged in user.

...

cardcard
 
Card
labelRequest
 
Code Block
borderColorGreen
titleHeaders
langxml
Authorization: BimPlus 9c1874a62c974dcfa75e0132c423a088
Content-Type: application/json
Card
 
Card
labelResponse
 
Code Block
borderColorGreen
titleStatus
langxml
Status: 200 OK

 

 

 

Code Block
borderColorRed
titleJSON
langxml
{
    "id": "b8615afc-99cc-4bcd-b0ca-ff0593ce15c6",
    "email": "test@bimplus.net",
    "status": "Active"
}

 

Deck of Cards
 

Anchor
teamService
teamService

...

Anchor
createTeam
createTeam

Create a new team and its related database
 
Deck of Cards
idbimCreateNewTeam
Card
labelHTTP Method
 POST

 

POST

...

 

 

Card
defaulttrue
labelURL / Resource / JSON Structure
 

...