Skip to content

jmorata/test2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Development Test

  • We would like to receive an implementation of a REST Api with the following methods:

Login

  • 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

Add Level Scores

  • 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

High score list for a level

  • 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

Note

  • For loading dummy data
  • Creates 5 dummy users with username and password equals
  • GET /login/test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages