Note |
---|
Help us improve the Bimplus API doc by providing your valuable comments. You can find the comment section at the bottom of the page. |
Standard Procedure
Info |
---|
Developers please use Newwindowlink |
---|
title | https://api-stage.bimplus.net/v2 |
---|
url | https://api-stage.bimplus.net/v2 |
---|
| (stage version of Bimplus API) and Newwindowlink |
---|
title | http://portal-stage.bimplus.net/ |
---|
url | http://portal-stage.bimplus.net/ |
---|
| (stage version of Shop/Portal) for testing purposes. The production version of the portal is located under Newwindowlink |
---|
title | https://portal.bimplus.net/ |
---|
url | https://portal.bimplus.net/ |
---|
| and the base url of the API is different for the production version. |
Generally, the Bimplus REST API calls consist of five steps for accessing the resources.
1. Developer Registration
Generally our portal
Newwindowlink |
---|
title | https://www-stage.bimplus.net/ |
---|
url | https://www-stage.bimplus.net/ |
---|
|
is the first place of contact of the user/developer for using the Bimplus platform. Please do the developer registration here.
2. Authentication token request
The authentication request for accessing the BimPlus resource should be sent in the JSON format using the Authorization service. The registered user name and password in the
Newwindowlink |
---|
title | Bimplus portal |
---|
url | https://www-stage.bimplus.net |
---|
|
should be provided here.
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
Deck of Cards |
---|
|
Card |
---|
label | URL / Resource / Parameters |
---|
| Resource: authorize URL: https://api-stage.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 (browser, Apps etc) | application_id | optional | string | The id of the application |
|
Card |
---|
| Authenticates a user and returns a token which can be used for further API calls for accessing the desired resources. |
Card |
---|
| Code Block |
---|
borderColor | Green |
---|
title | Headers |
---|
| Content-Type: application/json
|
Code Block |
---|
| {
"user_id" : "test@bimplus.net",
"password" : "test"
} |
|
Card |
---|
| Code Block |
---|
borderColor | Green |
---|
title | Status |
---|
| Status: 200 OK
|
Code Block |
---|
| {
"access_token": "9c1874a62c974dcfa75e0132c423a088",
"expires_in": 2591999,
"client_id" : "1FD44C0E-DCB4-11E2-A114-67286288709B"
"token_type": "BimPlus"
} |
|
|
3. Receive the authentication token
The token is received in the request.
Deck of Cards |
---|
|
Card |
---|
label | URL / Resource / Parameters |
---|
| Resource: authorize URL: https://api-stage.bimplus.net/v2/authorize |
Card |
---|
| Authenticates a user and returns a token which can be used for further API calls for accessing the desired resources. |
Card |
---|
| Code Block |
---|
borderColor | Green |
---|
title | Headers |
---|
| Content-Type: application/json
|
Code Block |
---|
| {
"user_id" : "test@bimplus.net",
"password" : "test"
} |
|
Card |
---|
| Code Block |
---|
borderColor | Green |
---|
title | Status |
---|
| Status: 200 OK
|
Code Block |
---|
| {
"access_token": "9c1874a62c974dcfa75e0132c423a088",
"expires_in": 2591999,
"client_id" : "1FD44C0E-DCB4-11E2-A114-67286288709B"
"token_type": "BimPlus"
}
|
where, access_token | The token to be used in any further API calls within the HTTP headers | expires_in | The remaining lifetime on the access token in seconds | client_id | The identifier of the used client (browser, Apps etc) | token_type | The type of token – currently we use ‚bimplus‘ |
|
|
The team has to be specified and setup through the
Newwindowlink |
---|
title | bimplus |
---|
url | https://www-stage.bimplus.net |
---|
|
portal as so-called
Newwindowlink |
---|
title | slugs |
---|
url | http://en.wikipedia.org/wiki/Clean_URL#Slug/ |
---|
|
to present a
Newwindowlink |
---|
title | clean URL |
---|
url | http://en.wikipedia.org/wiki/Clean_URL |
---|
|
. Slugs are lowercase unique identifiers based on English characters and numbers. The team slug will be used to know which tenant database to work on.
Deck of Cards |
---|
|
Card |
---|
default | true |
---|
label | URL / Resource / Parameters |
---|
| Resource: teams URL: https://api-stage.bimplus.net/v2/teams |
Card |
---|
| Get all the available teams. |
Card |
---|
| Code Block |
---|
borderColor | Green |
---|
title | Headers |
---|
| Authorization: BimPlus c939ebf5b96646528e0022a35f7a2e67
Content-Type: application/json
|
|
Card |
---|
| Code Block |
---|
borderColor | Green |
---|
title | Status |
---|
| Status: 200 OK
|
Code Block |
---|
| [2]
0: {
id: "82884f54-96bf-4e9c-a2fb-44db8379378d"
slug: "nemetschek"
name: "Nemetschek"
owner: "132a78a5-b523-4bf2-8382-7098fac3f803"
totalStorage: 0
storageStats: null
status: "Active"
teamWorksConnection: "RGF0YSBTb3VyY2U9YmltcGx1cy5tYW50cm8ubmV0OyBJbml0aWFsIENhdGFsb2c9QmltUGx1cy5UZW5hbnQuRGV2OyBVc2VyIElkPWRiYmltbWFudHJvdGVzdDsgUGFzc3dvcmQ9MWprdGNudG9DcU9qeGtIMU9QOXg7IENvbm5lY3QgdGltZW91dD0xMA=="
dataStorageStatus: "Online"
}-
1: {
id: "7eab1453-a4e7-4d05-983e-031544540e6f"
slug: "bimplus-demo"
name: "BimPlus Demo"
owner: "5592c628-588e-f5c0-b08b-088d43de9209"
totalStorage: 53687091200
storageStats: null
status: "Active"
teamWorksConnection: "RGF0YSBTb3VyY2U9YmltcGx1cy5tYW50cm8ubmV0O0luaXRpYWwgQ2F0YWxvZz1CaW1QbHVzLlRlbmFudC5iaW1wbHVzLWRlbW87VXNlciBJRD1iaW1wbHVzLWRlbW87UGFzc3dvcmQ9YWI3ZDRmNDc5ZGM4YjI1Yjg2MDc0Y2ZmZTNiNDBjZmY2OWQwNzQ1YjtDb25uZWN0IFRpbWVvdXQ9MTA="
dataStorageStatus: "Online"
} |
|
|
5. Request the desired resource
Using the authentication token and the team slug, the necessary resource can be accessed and the desired action can be performed on that resource using the
Newwindowlink |
---|
title | Bimplus REST API |
---|
url | https://doc.bimplus.net/pages/viewpage.action?pageId=4459171 |
---|
|
.
...
Deck of Cards |
---|
|
Card |
---|
label | URL / Resource / Parameters |
---|
| Resource: projects URL: https://api-stage.bimplus.net/v2/<team>/projects Example: https://api-stage.bimplus.net/v2/nemetschek/projects |
Card |
---|
| Get available project list with main properties. |
Card |
---|
| Code Block |
---|
borderColor | Green |
---|
title | Headers |
---|
| Authorization: BimPlus c939ebf5b96646528e0022a35f7a2e67
Content-Type: application/json
|
|
Card |
---|
| Code Block |
---|
borderColor | Green |
---|
title | Status |
---|
| Status: 200 OK
|
Code Block |
---|
| [3]
0: {
id: "c8c8e6f2-4495-484c-929d-0049f1f9d4ff"
name: "!!!!!_VORTEILSHAUS V40 SD45 Traufeingang"
}-
1: {
id: "2d703abe-b4f9-407c-af53-a39c5b7ba872"
name: "__5 999 Parklife Salzburg Lehen"
}-
2: {
id: "c480cc54-aec4-4bef-8d35-93bb090e1aba"
name: "0811-Wohnhaus Kraus - Carport1"
} |
|
|
Plugins for doing REST based calls (REST Client)
...