pwrd by

Meeting locations

Information on locations for meetings

Accept header for requests to Meeting locations

application/vnd.procurios.meeting2+json; version=1

Locations

GET /l/meeting2_api/location

Get a list of locations

Parameters

Parameter Type Description
locationIds int[] Limit the results to the given location ID's, as a single integer, comma-separated list of integers, or array of integers
meetingIds int[] Limit the results to the given meeting ID's, as a single integer, comma-separated list of integers, or array of integers

Examples

[]
200
{
    "locations": [
        {
            "id": 42,
            "title": "Some location",
            "description": "Some description",
            "address": {
                "street": "Street",
                "number": "42",
                "postcode": "1111 ZZ",
                "town": "Town",
                "state": "",
                "country": "NL"
            },
            "capacity": 0,
            "images": [
                {
                    "url": "http:\\\/\\\/www.example.com\\\/image.jpg"
                },
                {
                    "url": "http:\\\/\\\/www.example.com\\\/photo.png"
                }
            ]
        }
    ]
}

Schema

GET /l/meeting2_api/location/schema

Get JSON schema for locations

Examples

[]
200
{
    "$schema": "http:\/\/json-schema.org\/draft-07\/schema#",
    "title": "Locations schema",
    "type": "object",
    "properties": {
        "locations": {
            "title": "List of locations",
            "type": "array",
            "items": {
                "$ref": "#\/$defs\/location"
            }
        }
    },
    "$defs": {
        "location": {
            "type": "object",
            "properties": {
                "id": {
                    "title": "Location ID",
                    "description": "The unique ID for the location",
                    "type": "integer"
                },
                "title": {
                    "title": "Title (or name) of the location",
                    "type": "string"
                },
                "description": {
                    "title": "Short description",
                    "type": "string"
                },
                "address": {
                    "type": [
                        "object",
                        "null"
                    ],
                    "properties": {
                        "street": {
                            "title": "Street",
                            "type": "string"
                        },
                        "number": {
                            "title": "Number",
                            "type": "string"
                        },
                        "postcode": {
                            "title": "Postcode",
                            "type": "string"
                        },
                        "town": {
                            "title": "Town",
                            "type": "string"
                        },
                        "state": {
                            "title": "State",
                            "type": "string"
                        },
                        "country": {
                            "title": "Country code",
                            "type": "string",
                            "minimum": 2,
                            "maximum": 2,
                            "enum": [
                                "AN",
                                "AT",
                                "AU",
                                "AW",
                                "BE",
                                "CA",
                                "CH",
                                "CY",
                                "CZ",
                                "DE",
                                "DK",
                                "DO",
                                "ES",
                                "FI",
                                "FR",
                                "GB",
                                "GR",
                                "HR",
                                "HU",
                                "IE",
                                "IL",
                                "IT",
                                "JP",
                                "KP",
                                "KR",
                                "LU",
                                "NL",
                                "NO",
                                "NP",
                                "NZ",
                                "PL",
                                "PT",
                                "SE",
                                "TR",
                                "TW",
                                "US",
                                "ZA"
                            ]
                        }
                    },
                    "required": [
                        "street",
                        "number",
                        "postcode",
                        "town",
                        "state",
                        "country"
                    ]
                },
                "capacity": {
                    "title": "Location capacity",
                    "type": "integer"
                },
                "images": {
                    "title": "Location images",
                    "type": "array",
                    "items": {
                        "type": "object",
                        "properties": {
                            "url": {
                                "type": "string",
                                "format": "uri"
                            }
                        }
                    }
                }
            },
            "required": [
                "id",
                "title",
                "description",
                "address",
                "capacity",
                "images"
            ]
        }
    }
}