App Info API
The App Info API provides the endpoints to provide the general app information that may affect the app's in-app navigation.
Endpoints
# Endpoints
Get app versions
Request (AppVersionReqDTO)
POST /app/info/versions
{
"deviceType": 2,
"deviceToken": "",
"deviceBrand": ""
}
Response (AppVersionResDTO)
{
"success": true,
"message": "",
"data": {
"versions": [
"1.0.0"
],
"link": "https://www.yahoo.com"
}
}
Get initial information
Request
GET /app/info/init
Response (AppInitInfoDTO)
{
"success": true,
"message": "",
"data": {
"setPassword": true,
"setMascot": false,
"setDistrict": false
}
}
Get default map district
Request
GET /app/info/default-map-district
Response (AppMapDistrictDTO)
{
"success": true,
"message": "",
"data": {
"code": 5
}
}
Get default activity district
Request
GET /app/info/default-activity-district
Response (AppActivityDistrictDTO)
{
"success": true,
"message": "",
"data": {
"type": 5
}
}
Resources
AppVersionReqDTO
properties
The device type
deviceToken
stringThe app device token.
deviceBrand
stringrequiredThe app device brand.
AppVersionResDTO
properties
versions
listA list of current available versions.
link
stringThe link to download the app.
AppInitInfoDTO
properties
setPassword
booleanIt indicates if the user has set password or not.
setMascot
booleanIt indicates if the user has set mascot or not.
setDistrict
booleanIt indicates if the user has set district or not.
AppMapDistrictDTO
properties
code
The enum of the community.
AppActivityDistrictDTO
properties
The district for article's activity.