Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/llamalad7/kotlin-web-test


https://github.com/llamalad7/kotlin-web-test

Last synced: 4 days ago
JSON representation

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"
}
```