| Property | Details |
|---|---|
| URL: | https://www2.swcombine.com/ws/v2.0/galaxy/systems/{uid}[/] |
| Method: | GET |
| Description: | Gets the representation of a system |
| Pattern Description: |
uid (Mandatory): name or UID of system |
| Rate Limited: | No |
| Query String: | N/A |
| Parameters: | N/A |
| Requires Authentication: | No |
| Permissions: | N/A |
| Returns: |
200 OK: Returns the representation for the specified system 400 Bad Request: One or more of the provided parameters was invalid 404 Not Found: Specified system does not exist |
| Examples: |
GET /ws/v2.0/galaxy/systems/9:1001/
JSON{
"version": "2.0",
"timestamp": 1767225600,
"resource": "galaxy_system",
"request": "/ws/v2.0/galaxy/systems/9:1001/",
"swcapi": {
"system": {
"uid": "9:1001",
"name": "Corellia",
"description": "",
"controlledby": {},
"combat": {
"spacepvp": false,
"spacepve": true,
"groundpvp": false,
"groundpve": true,
"showdown": false,
"pvpsafezone": false
},
"planets": {
"planet": [
{
"attributes": {
"uid": "8:1001",
"name": "Corellia",
"href": "https://www.swcombine.com/ws/v2.0/galaxy/planets/corellia/"
}
}
]
},
"stations": {
"station": [
{
"attributes": {
"uid": "5:72",
"name": "Should show up 1",
"href": "https://www.swcombine.com/ws/v2.0/galaxy/stations/5%3A72/"
}
},
{
"attributes": {
"uid": "5:73",
"name": "Should show up 2",
"href": "https://www.swcombine.com/ws/v2.0/galaxy/stations/5%3A73/"
}
}
]
},
"location": {
"container": {
"value": "Corellian",
"attributes": {
"uid": "25:484",
"type": "sector",
"href": "https://www.swcombine.com/ws/v2.0/galaxy/sectors/corellian/"
}
},
"sector": {
"value": "Corellian",
"attributes": {
"uid": "25:484",
"type": "sector",
"href": "https://www.swcombine.com/ws/v2.0/galaxy/sectors/corellian/"
}
},
"system": {
"value": "Corellia",
"attributes": {
"uid": "9:1001",
"type": "deep space",
"href": "https://www.swcombine.com/ws/v2.0/galaxy/systems/corellia/"
}
},
"planet": {},
"city": {},
"coordinates": {
"galaxy": {
"attributes": {
"x": 70,
"y": -32
}
},
"system": {
"attributes": null
},
"surface": {
"attributes": null
},
"ground": {
"attributes": null
}
}
},
"population": 0,
"hyperlanes": {}
}
}
}
XML<?xml version="1.0" encoding="UTF-8"?>
<swcapi xmlns="https://www.swcombine.com/ws/swcapi-ns/" version="2.0" timestamp="1767225600" resource="galaxy_system" request="/ws/v2.0/galaxy/systems/9:1001/">
<system>
<uid>9:1001</uid>
<name>Corellia</name>
<description/>
<controlledby/>
<combat>
<spacepvp>false</spacepvp>
<spacepve>true</spacepve>
<groundpvp>false</groundpvp>
<groundpve>true</groundpve>
<showdown>false</showdown>
<pvpsafezone>false</pvpsafezone>
</combat>
<planets count="1">
<planet uid="8:1001" name="Corellia" href="https://www.swcombine.com/ws/v2.0/galaxy/planets/corellia/"/>
</planets>
<stations count="2">
<station uid="5:72" name="Should show up 1" href="https://www.swcombine.com/ws/v2.0/galaxy/stations/5%3A72/"/>
<station uid="5:73" name="Should show up 2" href="https://www.swcombine.com/ws/v2.0/galaxy/stations/5%3A73/"/>
</stations>
<location>
<container uid="25:484" type="sector" href="https://www.swcombine.com/ws/v2.0/galaxy/sectors/corellian/">Corellian</container>
<sector uid="25:484" type="sector" href="https://www.swcombine.com/ws/v2.0/galaxy/sectors/corellian/">Corellian</sector>
<system uid="9:1001" type="deep space" href="https://www.swcombine.com/ws/v2.0/galaxy/systems/corellia/">Corellia</system>
<planet/>
<city/>
<coordinates>
<galaxy x="70" y="-32"/>
<system/>
<surface/>
<ground/>
</coordinates>
</location>
<population>0</population>
<hyperlanes/>
</system>
</swcapi>
|