Comments (1)
Thanks for reporting this! I think I remember the intention here - in a GET request we return directly the object being fetched in the data key (or array of objects) but for POST requests we try to return all of the objects that were mutated as a result of that action. For example, a purchase request will return your agent + ship cargo since credits and cargo changed.
So for a rule of thumb, POST requests will contain a key of each object that changed, and in this case its only the nav that was altered (later you might also take some damage to your ship docking on a planet).
Let me know if that helps at all, or if you think even with that info its still confusing / annoying, and we can think more about it.
from api-docs.
Related Issues (20)
- ShipRefineResponse - tradeSymbol vs Symbol Mismatch HOT 1
- Status API resetDate description HOT 2
- 500 response on survey at X1-DN76-32104E HOT 5
- /game/loans missing from SpaceTraders.json HOT 2
- 500 from negotiateContract HOT 1
- ShipyardTransaction.shipSymbol is confusing HOT 4
- Fails to build with openapi-core
- 500 from /extract HOT 1
- Error when generating client library HOT 2
- Stoplight mock server returns data out of schema
- Why API blocks requests from Iran?
- Waypoint filter incorrect spec HOT 1
- "Getting Started" kinda unclear about how to buy ship HOT 1
- validation error for Faction headquarters
- shipMissingMountsError is defined 2 times
- Crew Quarters module comes twice HOT 1
- Refinement of raw materials
- Removal of jump drives
- Too many required attributes in json.schema
- https://api.spacetraders.io/v2/my/agent not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from api-docs.