KollerSystems / Koller-Server

Szerver a Koller-hez.
Other
3 stars 0 forks source link

No content on request #8

Closed TheBlueLines closed 1 year ago

TheBlueLines commented 1 year ago

/api/crossings/me

Request gives back a 204 No Content error

*   Trying 127.0.0.1:80...
* Connected to 127.0.0.1 (127.0.0.1) port 80 (#0)
> GET /api/crossings/me HTTP/1.1
> Host: 127.0.0.1
> User-Agent: curl/8.0.1
> Accept: */*
> Authorization: Bearer 6RRE75uX7JHQyVSY_JvLcu~3Pjx_dH19
>
< HTTP/1.1 204 No Content
< X-Powered-By: Express
< Cache-Control: no-store
< Date: Sun, 21 May 2023 11:31:33 GMT
< Connection: keep-alive
< Keep-Alive: timeout=5
<
* Connection #0 to host 127.0.0.1 left intact
TheBlueLines commented 1 year ago

Same for /api/crossings/{id}

lolfail commented 1 year ago

Intentional, ha nincs adat az adatbázisban erre vonatkozóan akkor 204-es kódot küld, jelezvén, hogy jó a kérés, nincs probléma, de nem tud mit visszaküldeni.

TheBlueLines commented 1 year ago

Oh értem. Azt hittem simán egy []-t kellene visszaadnia, de akkor rendben!

lolfail commented 1 year ago

Viszont a következő commitba lehet belerakom, mert végülis nem árt.