Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Navitabs
usewithoutbodytrue
rootDD:Mapping API Rich Example

 

Resources are the image files associated with a floor. The .svg or .pdf asset URL and the associated metadata are often referred to as a map.

Map for Level One

The example request below creates a map for the floor named Level One. The example response returns the newly created resource's ID. 

Example Request

Is any of the below different for Mapping API? 

POST /v1.01/schemasresources HTTP/1.1 
Host: cmsmap-api.phunware.com
X-Auth: see MaaS Security Protocol v1.0
Content-Type: application/json
Code Block
themeMidnight
{    
	"floorId": 17,
    "pdfUrl": "http://image.com/level1.pdf",
    "svgUrl": "http://image.com/level1.svg",
    "zoomLevel": 0
} 

Example Response

Is any of the below different for Mapping API? 

HTTP/1.1 200 OK 
Vary: Accept-Encoding
Content-Type: application/json; charset=utf-8
Content-Length: 33
Date: Tue, 20 May 20142015 16:06:54 GMT
Connection: keep-alive
Code Block
themeMidnight
{    
	"data": 
    {
        "id": 71
    }
}

ON THIS PAGE

Table of Contents