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