My first React App to compose mech squads

DricomDragon 8bedd6a1c6 :memo: Etude des routes possibles 1 месяц назад
dev-back a201580e9e :wrench: Premiere route post 1 месяц назад
dev-front 8018360c44 :paint: Keep pixel art aspect 2 месяцев назад
doc 0f45a80b3c :fire: Remove mech table 2 месяцев назад
sample-data 81b68357b3 :truck: Make images local 2 месяцев назад
tools a201580e9e :wrench: Premiere route post 1 месяц назад
README.md 8bedd6a1c6 :memo: Etude des routes possibles 1 месяц назад

README.md

Squad Composer

SpringBoot project to make squads.

Back

Endpoints

Full CRUD version

  • Benefits
    • Simple
    • Everything doable via REST
  • Bad
    • Mix player and squad in a route
    • Many routes
    • Should be modified a lot to take JWT into account

GET /players : list all players.

PUT /players : create a player.

DELETE

GET /players/{p_id} : get a specific player

GET /players/{p_id}/squads : get squads of this player.

POST /players/{p_id}/squads : create a new squad ; return created s_id.

PUT /players/{p_id}/squads/{s_id} : update a squad.

GET /players/{p_id}/squads/{s_id} : get a specific squad.

GET /squads : get all squads.

Separated version

GET /players : list all players.

GET /players/{p_id} : get a specific player

GET /players/{p_id}/squads : get squads of this player.

GET /squads : get all squads.

GET /squads/{s_id} : get a specific squad.

POST /squads : create a new squad attached to the connected player; return created s_id.

PUT /squads/{s_id} : update a squad.