Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/llamalad7/kotlin-web-test
https://github.com/llamalad7/kotlin-web-test
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/llamalad7/kotlin-web-test
- Owner: LlamaLad7
- Created: 2020-04-28T14:31:07.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-04-29T07:01:31.000Z (over 4 years ago)
- Last Synced: 2024-11-08T04:23:46.626Z (about 2 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"
}
```