alejandroaizel / obento_api

GNU General Public License v3.0
1 stars 0 forks source link

Change GET requests with body as params to query params #26

Closed MiguelERuiz closed 2 years ago

MiguelERuiz commented 2 years ago

Description We detect that iOS client is not able to send GET requests with Body as params of the request itself. The solution is refactor this endpoints to GET requests that accept query params

Example:

Instead of make the request as below:

curl --location --request GET 'http://13.37.225.162:8000/recipes' \
--header 'Content-Type: application/json' \
--data-raw '{
    "category": 2
}'

it must be made as follows:

curl --location --request GET 'http://13.37.225.162:8000/recipes?category=2'

Expected behavior All the afected endpoints must works as now

Details

Additional context Here a list of endpoints affeceted by this change:

Progress Status