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

Weapons Repository #23

Open
Jagerente opened this issue Apr 2, 2023 · 0 comments
Open

Weapons Repository #23

Jagerente opened this issue Apr 2, 2023 · 0 comments
Assignees
Labels
api API related database Database related

Comments

@Jagerente
Copy link
Member

Jagerente commented Apr 2, 2023

Цель:

  • Добавить возможность добавлять, изменять и получать список оружия из DB.

Ожидаемый результат:

  • Есть репозиторий для управления оружием в DB.
  • С помощью API можно получать, удалять, изменять оружия.
  • GET api/weapons:
    Request headers
"Accepted-Language":"en,ru"

Response 200
Пример - https://github.com/theBowja/genshin-db/blob/main/src/data/English/weapons/akuoumaru.json

Request headers

"Authorization":"token"


Response 200
```json
{
  "id":"akuoumaru"
}
  • PATCH api/weapons/:id
    Request headers
"Authorization":"token"

Request body
Пример - https://github.com/theBowja/genshin-db/blob/main/src/data/English/weapons/akuoumaru.json

  • Обязательно наличие хотя бы одного поля.
  • Для каждых строк локализации массив "lang": "value"

Response 200

{
  "id":"akuoumaru"
}
@Jagerente Jagerente added api API related database Database related labels Apr 2, 2023
@Jagerente Jagerente changed the title Weapon Repository Weapons Repository Apr 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api API related database Database related
Projects
None yet
Development

No branches or pull requests

2 participants