**DESCRIPTION:** Used for testing access token validity. Type A access token required via Authorization header
**BODY:** N/A
**OUTPUT:**
```json
{
"code": 200,
"message": "OK",
"data": "Access token valid for user gargamel"
}
```
## /planets/getPlanet
**URL: GET** /planets/getPlanet/*:planetId*
**DESCRIPTION:** Used to get data about specific planet with ID provided in URL. Type A access token required via Authorization header
**BODY:** N/A
**OUTPUT:**
```json
{
"code": 200,
"message": "OK",
"data": {
"id": "661d1163567111a5b4be8829",
"owner": "653e9677e5c3d36b15ba74eb",
"name": "Lyoko",
"fields": 20,
"resources": [],
"buildings": [],
"fleet": [],
}
}
```
## /planets/getAllPlanets
**URL: GET** /planets/getAllPlanets/
**DESCRIPTION:** Limited view of all planets of all players
**BODY:** N/A
**OUTPUT:**
```json
{
"code": 200,
"message": "OK",
"data": [
{
"planetId": "661d1163567111a5b4be8829",
"ownerId": "653e9677e5c3d36b15ba74eb",
"name": "Lyoko"
},
{
"planetId": "666af607f0ae1e11d2d03544",
"ownerId": "653e9677e5c3d36b15ba74eb",
"name": "Cortex"
}
]
}
```
## /research/getResearch
**URL: GET** /research/getResearch
**DESCRIPTION:** Used to get data about user research (which technologies are unlocked and on which level). Type A access token required via Authorization header
**BODY:** N/A
**OUTPUT:**
```json
{
"code": 200,
"message": "OK",
"data": [
{
"id": "basic-engine",
"level": 7
},
{
"id": "advanced-engine",
"level": 1
}
]
}
```
## /research/performResearch
**URL: POST** /research/performResearch
**DESCRIPTION:** Used to send request to start researching. Required buildings and resources are checked on planet provided in body. Type A access token required via Authorization header
**BODY:**
```json
{
"research": "string",
"planetId": "string"
}
```
**OUTPUT:**
```json
{
"code": 200,
"message": "OK"
}
```
## /build/createBuilding
**URL: POST** /build/createBuilding
**DESCRIPTION:** Used to send request to build or upgrade building on planet. Required buildings and resources are checked on planet provided in body. Type A access token required via Authorization header
**DESCRIPTION:** Used to change user username, email or password. Type A access token required via Authorization header in addition to current password in body
Type can be one of (anything other will throw ***400 Bad Request***):