Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resources #1

Open
SabrinaBarros opened this issue Jul 8, 2021 · 0 comments
Open

Resources #1

SabrinaBarros opened this issue Jul 8, 2021 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@SabrinaBarros
Copy link
Owner

SabrinaBarros commented Jul 8, 2021

Request game list

  • Method: GET
  • Endpoint: /games

Request

EMPTY

Response

Status code: 200 (Ok)

Body:

[
  {
    "id": 123,
    "title": "",
    "plataform": "",
    "condition": "",
    "repro": false,
    "collections": [ ]
  },
  {
    "id": 123,
    "title": "",
    "plataform": "",
    "condition": "",
    "repro": false,
    "collections": [ ]
  }
]

Create new game

  • Method: POST
  • Endpoint: /games

Request

Body:

{
    "id": 123,
    "title": "",
    "plataform": "",
    "condition": "",
    "repro": false,
    "collections": [ ]
}

Response

Status code: 201 (Created)

Body:

{
  "id": 123
}

Update game

  • Method: PUT
  • Endpoint: /games?id=123

Request

Body:

{
    "id": 123,
    "title": "",
    "plataform": "",
    "condition": "",
    "repro": false,
    "collections": [ ]
}

Response

Status code: 200 (OK)

Body:

{
  "id": 123
}

Delete game

  • Method: DELETE
  • Endpoint: /games?id=123

Request

EMPTY

Response

Status code:* 200 (Deleted)

Body:

{
  "id": 123
}

Game specific search

  • Method: GET
  • Endpoint: /games

Request

EMPTY

Response

Status code: 200 (OK)

{
  "id": 123,
  "title": "",
  "plataform": "",
  "condition": "",
  "repro": false,
  "collections": [ ]
}
@SabrinaBarros SabrinaBarros added the documentation Improvements or additions to documentation label Jul 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant