Skip to content

Latest commit

 

History

History
35 lines (31 loc) · 836 Bytes

File metadata and controls

35 lines (31 loc) · 836 Bytes

Rustodo

Installation

cargo run --release

Routes

  • GET http://localhost:3000/ pour lire tout les todos
  • POST http://localhost:3000/ avec un body
    {
      "content": "<Test to add>"
    }
  • GET http://localhost:3000/id pour avoir un todo particulier
  • PUT http://localhost:3000/id/complete pour marquer un todo comme complete
  • DELETE http://localhost:3000/id pour supprimer un todo particulier
  • GET http://localhost:3000/protected pour acceder a la page protetee par JWT
  • POST http://localhost:3000/register pour creer un compte avec un body
    {
      "username": "<username>",
      "password": "<password>"
    }
  • POST http://localhost:3000/authorize pour recevoir un JWT avec un body
    {
      "username": "<username>",
      "password": "<password>"
    }