- We would like to receive an implementation of a REST Api with the following methods:
- This endpoint returns a session key in the form of a string which shall be valid for use with the other functions for 10 minutes. The session keys should be unique.
- Request: POST /login
- Request body: and
- Response:
- Code: 202
- This other endpoint can be called several times per user and level and does not return anything. Only requests with valid session keys shall be processed.
- Request: PUT /level/3/score/1500
- Set session key in header with name Session-Key
- Response: (nothing)
- Code: 204
- Retrieves the high scores for a specific level for each user.
- Request: GET /level/3/score?filter=highestscore
- Response: JSON of array and
- Code: 200
- For loading dummy data
- Creates 5 dummy users with username and password equals
- GET /login/test