SpaceTradersAPI / issues-and-suggestions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New accounts can't buy first ship with new url routes

kurt1288 opened this issue · comments

commented

This is only regarding the new API routes. The old routes do not have this issue (as the old routes expose a systems endpoint).

For new accounts, there is no way to get systems since there is no endpoint in the new API that returns systems. Without knowing any systems, you can't find locations, and without locations you can't buy a ship (and without a ship you can't know any locations).

Possible solutions:

  • Have a /systems/ route that would only show systems/locations that are uncovered in the fog of war. Have a "starting location", that has a ship available for purchase, always visible.
  • Give new accounts a "starter ship". System and location could be parsed off that ship's location property.

I can't upvote this enough. It's a bummer that this is still a problem with the new API endpoints. I want to move my UI over to the new endpoints, but essentially can't due to this issue.

Yep, completely agree. I'm just starting out, and I was wracking my brain trying to figure out how to buy a ship in the first place without knowing any system symbols.

Possible solution: what if there was an endpoint to list all systems known to the player, and new accounts start with a small cluster of them "revealed" to them?

Sorry we haven't tackled this yet - this will be solved in the V2 API coming out soon. The first system should be hard coded in your client (OE) which we hard code in the getting started guide. In the new API you will be able to view all systems without a ship. Let me know if that helps!

In the mean time, the undocumented endpoint /game/systems gets all systems & locations.