Skip to end of metadata
Go to start of metadata

This documentation is no longer actively supported and may be out of date. Going forward, please visit and bookmark our new site (https://docs.phunware.com/) for up-to-date documentation.

Retrieve a Collection of Resources

 

This method is used to retrieve an array of floor resources that satisfy search criteria.

Method

GET

URL

http://map-api.phunware.com/v1.1/resources

Headers

X-Auth (see Security)

Query Parameters

Required parameters are underlined.

Parameter

Value

Description

floorId

integer

The identifier of the floor.

draftStatusstringEither "LIVE" or "DRAFT". Defaults to "LIVE".

Example Query Fragment

{
	"floorId": 17
} 

URL-encoded, minified fragment:

%7B%22floorId%22%3A17%7D

Example Request 

GET
http://map-api.phunware.com/v1.1/resources?%7B%22floorId%22%3A17%7D

Response

A successful response will have a 200 status code and a body containing an array of resources that satisfy the query parameters:

{
    "data": 
	[
        {
            "id": <integer>,
            "floorId": <integer>,
            "pdfUrl": <string>,
            "svgUrl": <string>,
            "zoomLevel": <integer>,
            "createdAt": <string>,
            "updatedAt": <string>,
            "externalId": <integer>
        },
        {
            "id": <integer>,
            "floorId": <integer>,
            "pdfUrl": <string>,
            "svgUrl": <string>,
            "zoomLevel": <integer>,
            "createdAt": <string>,
            "updatedAt": <string>,
            "externalId": <integer>
        },
        ...
    ]
} 

See Mapping API Response Handling for error payloads.

Example Response

Example body of a successful response:

{
    "data": 
	[
        {
            "id": 71,
            "floorId": 17,
            "pdfUrl": "http://image.com/level1.pdf",
            "svgUrl": "http://image.com/level1.svg",
            "zoomLevel": 0,
            "createdAt": "2013-09-03T13:32:55Z",
            "updatedAt": "2013-09-03T13:32:55Z",
            "externalId": 71
        },
        {
            "id": 72,
            "floorId": 17,
            "pdfUrl": "http://image.com/resource.pdf",
            "svgUrl": "http://image.com/resource.svg",
            "zoomLevel": 1,
            "createdAt": "2013-09-03T13:32:55Z",
            "updatedAt": "2013-09-03T13:32:55Z",
            "externalId": 72
        }
    ]
}

ON THIS PAGE

 

 

  • No labels