Building requests for the Restriction Zone API
Before you can start using the API, you will need to obtain the authentication token.
The following headers will be required, where the word token must be replaced by the token obtained in the authentication process:
--header 'Content-Type: application/json' \ --header 'Authorization: Bearer token'
The body will send all the parameters for managing the restriction zone.
The Restriction Zone API has the following endpoints:
- https://api.maplink.global/restriction/v1/restrictionZones – POST
Used to create a restriction zone. - https://api.maplink.global/restriction/v1/restrictionZones – GET
Used to consult all the restriction zones created. - https://api.maplink.global/restriction/v1/restrictionZones/{{restrictionZone}} – GET
Used to consult a specific restriction zone. The term{{restrictionZone}}
must be replaced by the name of the desired restriction zone. - https://api.maplink.global/restriction/v1/restrictionZones/{{restrictionZone}} – DELETE
Used to exclude a specific restriction zone. The term{{restrictionZone}}
must be replaced by the name of the desired restriction zone.