Trails-Through-Shadows / TTS-API

A communication interface between database and applications, including validation and game logic.
https://api.tts-game.fun/swagger-ui/index.html
0 stars 0 forks source link

[BUG] POST method for parts #33

Closed Firestone82 closed 8 months ago

Firestone82 commented 8 months ago

When creating new parts, those parts that have already ID specified should be created as that specific ID. But currently that ID is ignored and new parts are always put at the end of table

POST /parts

{
  "id": 1,
  "tag": "Square",
  "hexes": [
    {
      "key": {
        "idPart": 1,
        "id": 1
      },
      "q": 0,
      "r": 0,
      "s": 0
    }
  ]
}

Should create new part with ID 1, but creates part with ID of last autoincrement

Firestone82 commented 8 months ago

Currently found out, that method is not even working. @rcMarty Try creating part using API.