1972 active members
  189 are Online

Year

27

Day

307

Time

19:11:46

Guest
Login
Fully Implemented

Fully Implemented

Property Details
URL: https://www2.swcombine.com/ws/v2.0/galaxy/planets/{uid}[/]
Method: GET
Description: Gets the representation of a planet
Pattern Description: uid (Mandatory): uid or name of planet
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 planet
400 Bad Request: One or more of the provided parameters was invalid
404 Not Found: Specified planet does not exist
Examples:
GET /ws/v2.0/galaxy/planets/8:1001/
JSON
{
    "version": "2.0",
    "timestamp": 1767225600,
    "resource": "galaxy_planet",
    "request": "/ws/v2.0/galaxy/planets/8:1001/",
    "swcapi": {
        "planet": {
            "uid": "8:1001",
            "name": "Corellia",
            "description": "",
            "controlledby": {},
            "combat": {
                "groundpvp": false,
                "groundpve": true,
                "showdown": false,
                "pvpsafezone": false
            },
            "governor": {},
            "magistrate": {},
            "type": {
                "attributes": {
                    "uid": "8:4",
                    "href": "https://www.swcombine.com/ws/v2.0/types/planets/temperate%252Fbreathable/"
                },
                "value": "temperate/breathable"
            },
            "size": 13,
            "cities": {
                "city": [
                    {
                        "attributes": {
                            "uid": "7:1001",
                            "name": "Coronet City",
                            "href": "https://www.swcombine.com/ws/v2.0/galaxy/cities/7%3A1001/",
                            "x": 0,
                            "y": 0
                        }
                    }
                ]
            },
            "location": {
                "container": {
                    "value": "Corellia",
                    "attributes": {
                        "uid": "9:1001",
                        "type": "system",
                        "href": "https://www.swcombine.com/ws/v2.0/galaxy/systems/corellia/"
                    }
                },
                "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": {
                    "value": "Corellia",
                    "attributes": {
                        "uid": "8:1001",
                        "type": "planet",
                        "href": "https://www.swcombine.com/ws/v2.0/galaxy/planets/corellia/"
                    }
                },
                "city": {},
                "coordinates": {
                    "galaxy": {
                        "attributes": {
                            "x": 70,
                            "y": -32
                        }
                    },
                    "system": {
                        "attributes": {
                            "x": 10,
                            "y": 10
                        }
                    },
                    "surface": {
                        "attributes": null
                    },
                    "ground": {
                        "attributes": null
                    }
                }
            },
            "population": 0,
            "hireablepopulation": 0,
            "civilisationlevel": 0,
            "taxlevel": 5,
            "terrainmap": "ggggggkkkkggglllllggkkgggglddlfgffffhggfdddffhhfhffgffdffffhhffigffggfggffffgggggggggfggggnnngggggggggfgccccgggggggggffccccggggggknffccccggggkmfffffccgggkmmmfffcccggkmmk",
            "grid": {
                "point": [
                    {
                        "attributes": {
                            "uid": "24:6",
                            "code": "g",
                            "href": "https://www.swcombine.com/ws/v2.0/types/terrain/ocean/",
                            "x": 0,
                            "y": 0
                        },
                        "value": "Ocean"
                    },
                    {
                        "attributes": {
                            "uid": "24:6",
                            "code": "g",
                            "href": "https://www.swcombine.com/ws/v2.0/types/terrain/ocean/",
                            "x": 1,
                            "y": 0
                        },
                        "value": "Ocean"
                    },
                    {
                        "attributes": {
                            "uid": "24:6",
                            "code": "g",
                            "href": "https://www.swcombine.com/ws/v2.0/types/terrain/ocean/",
                            "x": 2,
                            "y": 0
                        },
                        "value": "Ocean"
                    }
                ]
            },
            "images": {
                "small": "/images//galaxy/planets/4/mini.gif",
                "large": "/images//galaxy/planets/4/main.gif",
                "atmosphere": "/images//galaxy/planets/4/atmos.jpg",
                "stratosphere": "/images//galaxy/planets/4/stratos.jpg",
                "loworbit": "/images//galaxy/planets/4/loworbit.jpg"
            }
        }
    }
}
XML
<?xml version="1.0" encoding="UTF-8"?>
<swcapi xmlns="https://www.swcombine.com/ws/swcapi-ns/" version="2.0" timestamp="1767225600" resource="galaxy_planet" request="/ws/v2.0/galaxy/planets/8:1001/">
  <planet>
    <uid>8:1001</uid>
    <name>Corellia</name>
    <description/>
    <controlledby/>
    <combat>
      <groundpvp>false</groundpvp>
      <groundpve>true</groundpve>
      <showdown>false</showdown>
      <pvpsafezone>false</pvpsafezone>
    </combat>
    <governor/>
    <magistrate/>
    <type uid="8:4" href="https://www.swcombine.com/ws/v2.0/types/planets/temperate%252Fbreathable/">temperate/breathable</type>
    <size>13</size>
    <cities count="1">
      <city uid="7:1001" name="Coronet City" href="https://www.swcombine.com/ws/v2.0/galaxy/cities/7%3A1001/" x="0" y="0"/>
    </cities>
    <location>
      <container uid="9:1001" type="system" href="https://www.swcombine.com/ws/v2.0/galaxy/systems/corellia/">Corellia</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 uid="8:1001" type="planet" href="https://www.swcombine.com/ws/v2.0/galaxy/planets/corellia/">Corellia</planet>
      <city/>
      <coordinates>
        <galaxy x="70" y="-32"/>
        <system x="10" y="10"/>
        <surface/>
        <ground/>
      </coordinates>
    </location>
    <population>0</population>
    <hireablepopulation>0</hireablepopulation>
    <civilisationlevel>0</civilisationlevel>
    <taxlevel>5</taxlevel>
    <terrainmap>ggggggkkkkggglllllggkkgggglddlfgffffhggfdddffhhfhffgffdffffhhffigffggfggffffgggggggggfggggnnngggggggggfgccccgggggggggffccccggggggknffccccggggkmfffffccgggkmmmfffcccggkmmk</terrainmap>
    <grid count="3">
      <point uid="24:6" code="g" href="https://www.swcombine.com/ws/v2.0/types/terrain/ocean/" x="0" y="0">Ocean</point>
      <point uid="24:6" code="g" href="https://www.swcombine.com/ws/v2.0/types/terrain/ocean/" x="1" y="0">Ocean</point>
      <point uid="24:6" code="g" href="https://www.swcombine.com/ws/v2.0/types/terrain/ocean/" x="2" y="0">Ocean</point>
    </grid>
    <images>
      <small>/images//galaxy/planets/4/mini.gif</small>
      <large>/images//galaxy/planets/4/main.gif</large>
      <atmosphere>/images//galaxy/planets/4/atmos.jpg</atmosphere>
      <stratosphere>/images//galaxy/planets/4/stratos.jpg</stratosphere>
      <loworbit>/images//galaxy/planets/4/loworbit.jpg</loworbit>
    </images>
  </planet>
</swcapi>