Seating Maps
Seatmaps represent real world venues. Venues might have different versions or configurations for their seats. These various versions of a venue are called Revisions.
The Map within a Revisions stores the composition of objects for a Seatmap in a JSON based format.
Base URL:
https://seatmap.vivenu.com/api
or https://seatmap.vivenu.dev/api
Endpoints
post
/api/seatmap
{"title": "string"}
Response
application/json
get
/api/seatmap/{id}
Response
application/json
patch
/api/seatmap/{id}
{"title": "string"}
Response
application/json
get
/api/seatmap
Response
application/json
The Map object
The Map within a Revisions stores the composition of objects for a Seatmap in a JSON based format.
Attributes
_id
Required
string
The ID of the object
_type
Required
number float
The type of the object
Optional Attributes
Collapse allExample
{"_id": "string","_type": 10.5,"categories": [{"_id": "string","_type": 1,"name": "string","color": "string"}],"images": [{"_id": "string","x": 10.5,"y": 10.5,"_type": 2,"url": "string","scaleX": 10.5,"scaleY": 10.5,"opacity": 10.5,"rotation": 10.5,"template": true,"width": 10.5,"height": 10.5}],"layers": [{"_id": "string","groups": [{"_id": "string","x": 10.5,"y": 10.5,"categoryId": "string","_type": 3,"rows": [{"_id": "string","x": 10.5,"y": 10.5,"categoryId": "string","_type": 3,"seats": [{"_id": "string","x": 10.5,"y": 10.5,"categoryId": "string","_type": 3,"statusId": "string","originalX": 10.5,"originalY": 10.5,"seatType": "handicapped","sectionName": "string","groupName": "string","rowName": "string","seatName": "string"}],"rotation": 10.5,"originalX": 10.5,"originalY": 10.5,"name": "string"}],"rotation": 10.5,"curving": 10.5,"rowSpacing": 10.5,"seatSpacing": 10.5,"name": "string","sectionName": "string"}],"sections": [{"_id": "string","x": 10.5,"y": 10.5,"categoryId": "string","name": "string","type": "rect","coordinates": [{"x": 10.5,"y": 10.5}],"rotation": 10.5,"controlPoints": [{"x": 10.5,"y": 10.5}],"_type": 3,"groups": [{"_id": "string","x": 10.5,"y": 10.5,"categoryId": "string","_type": 3,"rows": [{"_id": "string","x": 10.5,"y": 10.5,"categoryId": "string","_type": 3,"seats": [{"_id": "string","x": 10.5,"y": 10.5,"categoryId": "string","_type": 3,"statusId": "string","originalX": 10.5,"originalY": 10.5,"seatType": "handicapped","sectionName": "string","groupName": "string","rowName": "string","seatName": "string"}],"rotation": 10.5,"originalX": 10.5,"originalY": 10.5,"name": "string"}],"rotation": 10.5,"curving": 10.5,"rowSpacing": 10.5,"seatSpacing": 10.5,"name": "string","sectionName": "string"}]}],"ga": [{"_id": "string","x": 10.5,"y": 10.5,"categoryId": "string","name": "string","type": "rect","coordinates": [{"x": 10.5,"y": 10.5}],"rotation": 10.5,"controlPoints": [{"x": 10.5,"y": 10.5}],"statusId": "string","_type": 7,"amount": 10.5,"showAvailableSeats": true}],"viewPoints": [{"_id": "string","x": 10.5,"y": 10.5,"_type": 10,"imageType": "FLAT","image": "string"}]}],"focalPoint": [{"_id": "string","x": 10.5,"y": 10.5,"_type": 9}]}
Create a Revision
Payload
seatMap
Required
object
The Map Object of the Seatmap
Optional Attributes
Collapse allResponses
200
Success
post
/api/seatmap/{id}/revision
{"comment": "string","seatMap": {}}
Response
application/json
Get a Revision
Query
includeSeatmap
Optional
boolean
Whether to include the seatmap in the response
Responses
200
Success
get
/api/seatmap/{id}/revision/{revisionId}
Response
application/json
put
/api/seatmap/{id}/revision/{revisionId}
{"seatMap": {}}
Response
application/json
patch
/api/seatmap/{id}/revision/{revisionId}
{"comment": "string"}
Response
application/json
post
/api/seatmap/{id}/revision/{revisionId}/clone
{"comment": "string"}
Response
application/json
get
/api/seatmap/{id}/revision/{revisionId}/export
Response
application/json
post
/api/seatmap/{id}/revision/import
{"comment": "string"}
Response
application/json
get
/api/seatmap/{id}/revision
Response
application/json