Super Test
  5175 active members
  5163 are Online

Year

27

Day

317

Time

22:11:38

Guest
Login

Web Services v2.0 Hub » Types Resources » Types/Entities/Class

Fully Implemented

Fully Implemented

Property Details
URL: https://dev.swcombine.com/ws/v2.0/types/{entity_type:ships|vehicles|facilities|items|npcs|droids|races|weapons|creatures}/class/{class}/
Method: GET
Description: Gets a list of all entities of a certain type and class
Pattern Description: entity_type (Mandatory): One-of: ships, vehicles, facilities, items, npcs, droids, races, weapons, or creatures
class (Mandatory): The name or UID of the desired class
Rate Limited: No
Query String: start_index (number): The first item to retrieve from the list, from 1 onwards (default 1). An invalid value is replaced by the default
item_count (number): The number of items to retrieve (1 to 50, default 50). An invalid value is replaced by the default
Parameters: N/A
Requires Authentication: No
Permissions: N/A
Returns: 200 OK: Returns a collection of all entities of a certain type and class
Examples:
GET /ws/v2.0/types/ships/class/frigates/
JSON
{
    "version": "2.0",
    "timestamp": 1767225600,
    "resource": "types_entities_class",
    "request": "/ws/v2.0/types/ships/class/frigates/",
    "swcapi": {
        "shiptypes": {
            "attributes": {
                "start": 1,
                "total": 25,
                "count": 3
            },
            "shiptype": [
                {
                    "attributes": {
                        "uid": "2:3",
                        "href": "https://www.swcombine.com/ws/v2.0/types/ships/carrack%252Fs-class%20light%20cruiser/"
                    },
                    "value": "Carrack/S-class Light Cruiser"
                },
                {
                    "attributes": {
                        "uid": "2:4",
                        "href": "https://www.swcombine.com/ws/v2.0/types/ships/lancer-class%20frigate/"
                    },
                    "value": "Lancer-class Frigate"
                },
                {
                    "attributes": {
                        "uid": "2:12",
                        "href": "https://www.swcombine.com/ws/v2.0/types/ships/neutron%20star-class%20bulk%20cruiser/"
                    },
                    "value": "Neutron Star-class Bulk Cruiser"
                }
            ]
        }
    }
}
XML
<?xml version="1.0" encoding="UTF-8"?>
<swcapi xmlns="https://www.swcombine.com/ws/swcapi-ns/" version="2.0" timestamp="1767225600" resource="types_entities_class" request="/ws/v2.0/types/ships/class/frigates/">
  <shiptypes count="3" start="1" total="25">
    <shiptype uid="2:3" href="https://www.swcombine.com/ws/v2.0/types/ships/carrack%252Fs-class%20light%20cruiser/">Carrack/S-class Light Cruiser</shiptype>
    <shiptype uid="2:4" href="https://www.swcombine.com/ws/v2.0/types/ships/lancer-class%20frigate/">Lancer-class Frigate</shiptype>
    <shiptype uid="2:12" href="https://www.swcombine.com/ws/v2.0/types/ships/neutron%20star-class%20bulk%20cruiser/">Neutron Star-class Bulk Cruiser</shiptype>
  </shiptypes>
</swcapi>