RtuType
Definition
RtuType Type
- JSON
- Typescript
- Kotlin
rtuType.json
{
"id": 0,
"typeName": "",
"typeCode": "",
"switchNum": 0,
"createdAt": "",
"updatedAt": "",
}
Get RtuTypes
- Curl
- Typescript
- Kotlin
curl -X GET "https://${baseUrl}/rtu-type/?\$filter=&\$orderBy=&\$page=1&\$pageSize=10" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Get RtuType
- Curl
- Typescript
- Kotlin
curl -X GET "https://${baseUrl}/rtu-type/${id}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Apply RtuType.ID
- Curl
- Typescript
- Kotlin
curl -X POST "https://${baseUrl}/apply/rtu-type/id/" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Create RtuType
- Curl
- Typescript
- Kotlin
curl -X POST "https://${baseUrl}/rtu-type/" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d @rtuType.json
info
rtuType.json
{
"typeName": "",
"typeCode": "",
"switchNum": 0,
}
tip
success status: 201
Update RtuType
- Curl
- Typescript
- Kotlin
curl -X PUT "https://${baseUrl}/rtu-type/${id}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d @rtuType.json
info
rtuType.json
{
"typeName": "",
"typeCode": "",
"switchNum": 0,
}
Update RtuType Partial
- Curl
- Typescript
- Kotlin
curl -X PATCH "https://${baseUrl}/rtu-type/${id}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Attrs: typeName,typeCode,switchNum" \
-d @rtuType.json
info
rtuType.json
{
"typeName": "",
"typeCode": "",
"switchNum": 0,
}
Destroy RtuType
- Curl
- Typescript
- Kotlin
curl -X DELETE "https://${baseUrl}/rtu-type/${id}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"