Skip to content

Add `resource_types` endpoint

Daniel Khaapamyaki requested to merge resourcetypes-endpoint into main

Closes #23 (closed)

GET /resource_types

[
  {
    "id": "8896ff8a-093c-41ba-a84d-84bea8577ae3",
    "difficulty": 0,
    "name": "iron",
    "created_at": "2021-10-26T20:46:09.380Z",
    "updated_at": "2021-10-26T20:46:09.380Z"
  },
  {
    "id": "1676be06-3fdf-4a73-ab00-378af53e516d",
    "difficulty": 1,
    "name": "iron",
    "created_at": "2021-10-26T20:46:09.387Z",
    "updated_at": "2021-10-26T20:46:09.387Z"
  },
  {
    "id": "637b6e30-6767-408d-b73b-a27ebf220803",
    "difficulty": 2,
    "name": "gem",
    "created_at": "2021-10-26T20:46:09.393Z",
    "updated_at": "2021-10-26T20:46:09.393Z"
  },
  {
    "id": "ae9d1855-b4b8-4732-9515-d1c4e4ba06a3",
    "difficulty": 3,
    "name": "gold",
    "created_at": "2021-10-26T20:46:09.405Z",
    "updated_at": "2021-10-26T20:46:09.405Z"
  },
  {
    "id": "89dc7bfd-7eda-4d16-9864-c5a889cd1c47",
    "difficulty": 4,
    "name": "platin",
    "created_at": "2021-10-26T20:46:09.413Z",
    "updated_at": "2021-10-26T20:46:09.413Z"
  }
]

Merge request reports

Loading