| Property | Details |
|---|---|
| URL: | https://www2.swcombine.com/ws/v2.0/galaxy/sectors/{uid}[/] |
| Method: | GET |
| Description: | Gets the representation of a sector |
| Pattern Description: |
uid (Mandatory): name or UID of sector |
| 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 sector 400 Bad Request: One or more of the provided parameters was invalid 404 Not Found: Specified sector does not exist |
| Examples: |
GET /ws/v2.0/galaxy/sectors/25:484/
JSON{
"version": "2.0",
"timestamp": 1767225600,
"resource": "galaxy_sector",
"request": "/ws/v2.0/galaxy/sectors/25:484/",
"swcapi": {
"sector": {
"uid": "25:484",
"name": "Corellian",
"controlledby": {},
"population": 0,
"colour": {
"r": 255,
"g": 0,
"b": 0
},
"systems": {
"system": [
{
"attributes": {
"uid": "9:1001",
"name": "Corellia",
"href": "https://www.swcombine.com/ws/v2.0/galaxy/systems/corellia/"
}
}
]
},
"coordinates": {
"point": [
{
"attributes": {
"x": 120,
"y": -3
}
},
{
"attributes": {
"x": 128,
"y": -6
}
},
{
"attributes": {
"x": 130,
"y": -10
}
}
]
}
}
}
}
XML<?xml version="1.0" encoding="UTF-8"?>
<swcapi xmlns="https://www.swcombine.com/ws/swcapi-ns/" version="2.0" timestamp="1767225600" resource="galaxy_sector" request="/ws/v2.0/galaxy/sectors/25:484/">
<sector>
<uid>25:484</uid>
<name>Corellian</name>
<controlledby/>
<population>0</population>
<colour>
<r>255</r>
<g>0</g>
<b>0</b>
</colour>
<systems count="1">
<system uid="9:1001" name="Corellia" href="https://www.swcombine.com/ws/v2.0/galaxy/systems/corellia/"/>
</systems>
<coordinates count="3">
<point x="120" y="-3"/>
<point x="128" y="-6"/>
<point x="130" y="-10"/>
</coordinates>
</sector>
</swcapi>
|