Skip to main content

Application

Definition​

Application Type
application.json
{
"id": 0,
"applicationKey": "",
"applicationName": "",
"applicationDescription": "",
"status": 0,
"createdAt": "",
"updatedAt": "",
}

Get Applications​

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 -X GET "https://${baseUrl}/application/${id}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"

Apply Application.ID​

curl -X POST "https://${baseUrl}/apply/application/id/" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"

Create Application​

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 -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 -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 -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 -X DELETE "https://${baseUrl}/application/${id}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"

Get Roles​

curl -X GET "https://${baseUrl}/application/${id}/role/" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
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]"
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 -X GET "https://${baseUrl}/application/${id}/role/${roleID}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"

Update ApplicationRole​

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 -X GET "https://${baseUrl}/application/${id}/user/" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
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]"
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 -X GET "https://${baseUrl}/application/${id}/user/${userID}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"

Update ApplicationUser​

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,
}