User API¶
| Endpoint | ||
|---|---|---|
| POST | Sign in account | /api/user/signin |
| GET | Get user information | /api/user/info |
Sign in account¶
POST https://ppk.geodnet.com/api/user/signin
Request body
Content type: application/json
| Parameter | Example | Type | Required | Description |
|---|---|---|---|---|
| username | geoduser | String | Yes | Username |
| password | geodpass | String | Yes | Password |
Get user information¶
GET https://ppk.geodnet.com/api/user/info
Request headers
| Header | Example | Type | Required | Description |
|---|---|---|---|---|
| token | eyJhbGciOiJIUzI1Ni... | String | Yes | JWT from sign in |
Response fields
Content type: application/json
| Parameter | Example | Type | Description |
|---|---|---|---|
| code | 200 | Number | Status code |
| message | Success | String | Status code description |
| data.username | geoduser | String | Username |
| data.email | geoduser@gmail.com | String | |
| data.createTime | 1719388451655 | Number | Registration time ms |
| data.balance | 100 | Number | Balance |
| data.expense | 0 | Number | Expense |