XPEHO / YAKI

Working localization declaration app
BSD 3-Clause "New" or "Revised" License
13 stars 1 forks source link

fix(iOSNotifWhenDeclared): Add endpoint providing user's declared days #1511

Closed lcubeddu closed 3 months ago

lcubeddu commented 3 months ago

Description

Add a endpoint listing days for which user {userId} has made a declaration. It is a prerequisite of #1508

Endpoint: /declarations/declaredDays
Verb: GET
Parameters:
  - userId: Id of the user that made the declarations
Responses:
  - 200: OK. List of declared days for the user. [] if the user doesn't exist.
  - 400: Bad Request. Missing required query parameter 'userId'.
  - 400: Bad Request. Invalid userId

Linked Issues

Closes #1507

Tests

How has it been tested ?

github-actions[bot] commented 3 months ago

Label bug :bug: has been added to this pull request