Closed prekel closed 3 years ago
For ok
we should probably use 204 status code without data (https://restfulapi.net/http-status-codes/).
Don't see much difference, but second is more neat to me.
Done.
https://github.com/vndbre/vndbre-proxy/blob/master/VndbReProxy.Api/Requests/api.http
Where host
is https://vndbre-proxy.azurewebsites.net/
Ok, second
Vndb query can return different responses:
results {...json...}
(https://vndb.org/d11#5)error {...json...}
(https://vndb.org/d11#7)ok
(https://vndb.org/d11#3) (will not be used by frontend in normal use)This kinds of responses must be mapped to one API response. But, there 2 another cases:
This 5 cases can be mapped with 2 ways.
First:
Second:
Which is better: first or second? @Moltenship @NightOfNights @choi-moeta