update to v2 api endpoint

This commit is contained in:
Space Admiral 2023-01-25 09:03:57 -08:00
parent 8877039b7c
commit 06b500b760
2 changed files with 7 additions and 7 deletions

View File

@ -40,7 +40,7 @@ brew install httpie
You can then hit any API endpoint by simplying typing `https` along with the http method and the url. You can test this by hitting the game status endpoint which will tell us if the game is currently available to play:
```bash
https GET v2-0-0.rc-2.spacetraders.io
https GET v2.api.spacetraders.io
```
```json
@ -80,7 +80,7 @@ Every agent is identified by a unique call sign (such as `ZER0` or `SP4CE_TR4DER
- [x] `CORSAIRS` - The Seventh Space Corsairs are a feared group of pirates and raiders who operate throughout the galaxy, preying on merchant ships and plundering valuable cargo.
```bash
https POST v2-0-0.rc-2.spacetraders.io/register \
https POST v2.api.spacetraders.io/register \
symbol=ZER0 \
faction=COSMIC
```
@ -113,7 +113,7 @@ Copy your token somewhere safe and set it as a variable in your command prompt.
apiToken=<your-token-here>
shipSymbol=<your-ship-symbol-here>
contractId=<your-contract-id>
apiUrl=v2-0-0.rc-2.spacetraders.io
apiUrl=v2.api.spacetraders.io
```
<!-- theme: warning -->

View File

@ -5,13 +5,13 @@
"email": "joel@spacetraders.io",
"name": "Joel Brubaker"
},
"description": "SpaceTraders is a multiplayer sci-fi strategy game where you acquire and manage a fleet of ships across a growing and dynamic universe.\n\nSimilar to games such as Eve Online, you work with or against other players to establish trade routes, chart new systems, mine precious ores, patrol for pirates, spy on factions, and discover hidden treasures.\n\nSpaceTraders as a game is unique in that it is entirely accessible through open and well-documented API endpoints.\n\nIf this sounds fun and interesting to you, please drop into our Discord and get to know the community. We are actively working on new clients, new ideas and sharing tips for how to play the game.\n\n\n```json http\n{\n \"method\": \"GET\",\n \"url\": \"https://api-server-2-0-0-rc-2-vxxwq5xqdq-uc.a.run.app\",\n}\n```",
"description": "SpaceTraders is a multiplayer sci-fi strategy game where you acquire and manage a fleet of ships across a growing and dynamic universe.\n\nSimilar to games such as Eve Online, you work with or against other players to establish trade routes, chart new systems, mine precious ores, patrol for pirates, spy on factions, and discover hidden treasures.\n\nSpaceTraders as a game is unique in that it is entirely accessible through open and well-documented API endpoints.\n\nIf this sounds fun and interesting to you, please drop into our Discord and get to know the community. We are actively working on new clients, new ideas and sharing tips for how to play the game.\n\n\n```json http\n{\n \"method\": \"GET\",\n \"url\": \"https://v2.api.spacetraders.io\",\n}\n```",
"license": {
"name": "No Permission",
"url": "https://choosealicense.com/no-permission/"
},
"title": "SpaceTraders API",
"version": "2.0.0-rc.2"
"version": "2.0.0"
},
"security": [
{
@ -20,8 +20,8 @@
],
"servers": [
{
"description": "v2.0.0-rc.2",
"url": "https://v2-0-0.rc-2.spacetraders.io"
"description": "v2",
"url": "https://v2.api.spacetraders.io"
}
],
"tags": [