API Documentation
Backend Server API
Download OpenAPI specification:Download
Update User
Authorizations:
None
Request Body schema: application/json
User ID is provided in the request headers.
username | string User Name |
password | string Password |
Responses
Request samples
- Payload
Content type
application/json
{- "username": "string",
- "password": "string"
}
Response samples
- 200
- 400
Content type
application/json
{- "message": "string"
}
Update Step Count
Authorizations:
None
Request Body schema: application/json
User ID is provided in the request headers.
userId | number User ID |
steps | number Step Count |
Responses
Request samples
- Payload
Content type
application/json
{- "userId": 0,
- "steps": 0
}
Response samples
- 200
- 400
Content type
application/json
{- "message": "string"
}
Update User's Step Goal
Authorizations:
None
Request Body schema: application/json
User ID is provided in the request headers.
dailyStepGoal | number Daily Step Goal |
Responses
Request samples
- Payload
Content type
application/json
{- "dailyStepGoal": 0
}
Response samples
- 200
- 404
- 500
Content type
application/json
{- "message": "string"
}
Check User's Step Goal
Authorizations:
None
Request Body schema: application/json
User ID is provided in the request headers.
userId | number User ID |
steps | number User's Steps |
Responses
Request samples
- Payload
Content type
application/json
{- "userId": 0,
- "steps": 0
}
Response samples
- 200
- 400
Content type
application/json
true
Set User's Birthday
Authorizations:
None
Request Body schema: application/json
username | string |
birthday | string |
Responses
Request samples
- Payload
Content type
application/json
{- "username": "string",
- "birthday": "string"
}
Response samples
- 200
- 400
Content type
application/json
{- "message": "string",
- "userInfo": {
- "name": "string",
- "birthday": "string"
}
}
Update Pet Status
Authorizations:
None
Request Body schema: application/json
User ID is provided in the request headers.
health | number |
mood | number |
Responses
Request samples
- Payload
Content type
application/json
{- "health": 0,
- "mood": 0
}
Response samples
- 200
- 400
Content type
application/json
{- "message": "string",
- "health": 0,
- "mood": 0
}
Reset the Pet's Status
Authorizations:
None
Request Body schema: application/json
User ID is provided in the request headers.
reset_type | number ENUM - 0: ALL, 1: HEALTH, 2: MOOD |
Responses
Request samples
- Payload
Content type
application/json
{- "reset_type": 0
}
Response samples
- 200
- 400
Content type
application/json
{- "message": "string"
}
Increase the Pet's Mood
Authorizations:
None
Request Body schema: application/json
User ID is provided in the request headers.
type | string Activity Type |
Responses
Request samples
- Payload
Content type
application/json
{- "type": "string"
}
Response samples
- 200
- 400
Content type
application/json
{- "message": "string",
- "mood": 0,
- "activities": [ ]
}