SpaceTradersAPI / issues-and-suggestions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typo in Find Nearby Planet

samihibrahim opened this issue · comments

A minor typo exists in the command to find nearby planets=> there is an extra equals sign.
Currently it is set to
https GET api.spacetraders.io/game/systems/OE/locations token==$token \ type==PLANET
which results in 500 server error.

Correct form is:
https GET api.spacetraders.io/game/systems/OE/locations token==$token \ type=PLANET

Good catch! Thanks for reporting 🙌

ah this is actually not a bug, type==PLANET is a query parameter as you are filtering the results. Payload for POST requests will be in the body, and GET endpoints take query params for filtering. Let me know if this isn't working as intended! I'll close but please re-open if there is another issue.

You're totally right @j-spacetrader-api, I was to quick on that response.