Application
Definition
Application Type
- JSON
- Typescript
- Kotlin
application.json
{
"id": 0,
"applicationKey": "",
"applicationName": "",
"applicationDescription": "",
"status": 0,
"createdAt": "",
"updatedAt": "",
}
Get Applications
- Curl
- Typescript
- Kotlin
curl -X GET "https://${baseUrl}/application/?\$filter=&\$orderBy=&\$page=1&\$pageSize=10" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Get Application
- Curl
- Typescript
- Kotlin
curl -X GET "https://${baseUrl}/application/${id}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Apply Application.ID
- Curl
- Typescript
- Kotlin
curl -X POST "https://${baseUrl}/apply/application/id/" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Create Application
- Curl
- Typescript
- Kotlin
curl -X POST "https://${baseUrl}/application/" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d @application.json
info
application.json
{
"applicationKey": "",
"applicationName": "",
"applicationDescription": "",
"status": 0,
}
tip
success status: 201
Update Application
- Curl
- Typescript
- Kotlin
curl -X PUT "https://${baseUrl}/application/${id}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d @application.json
info
application.json
{
"applicationKey": "",
"applicationName": "",
"applicationDescription": "",
"status": 0,
}
Update Application Partial
- Curl
- Typescript
- Kotlin
curl -X PATCH "https://${baseUrl}/application/${id}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Attrs: applicationKey,applicationName,applicationDescription,status" \
-d @application.json
info
application.json
{
"applicationKey": "",
"applicationName": "",
"applicationDescription": "",
"status": 0,
}
Update Application Status
- Curl
- Typescript
- Kotlin
curl -X PATCH "https://${baseUrl}/application/${id}/status/" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d @application.json
info
application.json
{
"status": 0
}
Destroy Application
- Curl
- Typescript
- Kotlin
curl -X DELETE "https://${baseUrl}/application/${id}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Get Roles
- Curl
- Typescript
- Kotlin
curl -X GET "https://${baseUrl}/application/${id}/role/" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Link Roles
- Curl
- Typescript
- Kotlin
curl -X POST "https://${baseUrl}/application/${id}/role/" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d "[1,2,3,4]"
UnLink Roles
- Curl
- Typescript
- Kotlin
curl -X DELETE "https://${baseUrl}/application/${id}/role/" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d "[1,2,3,4]"
Get ApplicationRole
- Curl
- Typescript
- Kotlin
curl -X GET "https://${baseUrl}/application/${id}/role/${roleID}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Update ApplicationRole
- Curl
- Typescript
- Kotlin
curl -X PUT "https://${baseUrl}/application/${id}/role/${roleID}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d @applicationRole.json
info
applicationRole.json
{
"right": 0,
}
Get Users
- Curl
- Typescript
- Kotlin
curl -X GET "https://${baseUrl}/application/${id}/user/" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Link Users
- Curl
- Typescript
- Kotlin
curl -X POST "https://${baseUrl}/application/${id}/user/" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d "[1,2,3,4]"
UnLink Users
- Curl
- Typescript
- Kotlin
curl -X DELETE "https://${baseUrl}/application/${id}/user/" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d "[1,2,3,4]"
Get ApplicationUser
- Curl
- Typescript
- Kotlin
curl -X GET "https://${baseUrl}/application/${id}/user/${userID}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Update ApplicationUser
- Curl
- Typescript
- Kotlin
curl -X PUT "https://${baseUrl}/application/${id}/user/${userID}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d @applicationUser.json
info
applicationUser.json
{
"right": 0,
}