https://github.com/llamalad7/kotlin-web-test
https://github.com/llamalad7/kotlin-web-test
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/llamalad7/kotlin-web-test
- Owner: LlamaLad7
- Created: 2020-04-28T14:31:07.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-29T07:01:31.000Z (about 5 years ago)
- Last Synced: 2024-12-30T20:20:20.294Z (7 months ago)
- Language: Java
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
When running, the server accepts 4 kinds of request:
* POST /signup
```json
{
"username": "myCoolUsername",
"password": "myCoolPassword"
}
```
* POST /login
```json
{
"username": "myCoolUsername",
"password": "myCoolPassword"
}
```
* GET /data
```json5
{
"sessionId": "the ID of your session", // Given to you by the server when you log in
"session": {
"username": "myCoolUsername",
"expiry": { // Given to you by the server when you log in
"seconds": 1588089309,
"nanos": 895000000
}
}
}
```
* POST /data
```json5
{
"sessionId": "the ID of your session", // Given to you by the server when you log in
"session": {
"username": "myCoolUsername",
"expiry": { // Given to you by the server when you log in
"seconds": 1588089309,
"nanos": 895000000
}
},
"data": "What you wish to set your data to"
}
```