Introduction

Geoplanning Webservices is a RESTful service for interacting with Goeplanning entities. It allows to create, read, update and delete entities and other specific actions such as start, stop, reject, …​ an activity.

Overview

HTTP verbs

Geoplanning Webservices tries to adhere as closely as possible to standard HTTP and REST conventions in its use of HTTP verbs.

Verb Usage

GET

Used to retrieve a resource

POST

Used to create a new resource

PATCH

Used to update an existing resource, including partial updates

PUT

Used to update an existing resource, full updates only

DELETE

Used to delete an existing resource

HTTP status codes

Geoplanning Webservices tries to adhere as closely as possible to standard HTTP and REST conventions in its use of HTTP status codes.

Status code Usage

200 OK

Standard response for successful HTTP requests. The actual response will depend on the request method used. In a GET request, the response will contain an entity corresponding to the requested resource. In a POST request, the response will contain an entity describing or containing the result of the action.

201 Created

The request has been fulfilled and resulted in a new resource being created.

204 No Content

The server successfully processed the request, but is not returning any content.

400 Bad Request

The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).

404 Not Found

The requested resource could not be found but may be available again in the future. Subsequent requests by the client are permissible.

Authentication

Every request must be authenticated with Geoplanning allowed credentials. Currently, only Basic Authentication is supported. Basic authentication is performed through an Authorization header with a base64 encoded value.

Example for login "test" and password 123 :

Header Value

Authorization

Basic dGVzdDoxMjM=

To be allowed to use the Web Services, the user must be granted with at least the "webservices user" right.

Special headers

Every request sent to the API must come with the proper headers. The API requires two mandatory headers which are Accept and Content-Type as follow :

Header Value

Accept

application/vnd.geoplanning-v3.0+json

Content-Type

application/vnd.geoplanning-v3.0+json

Sending an address to Geoplanning

Submitting an address to Geoplanning can be tedious unless you know how it works.

Geoplanning needs 2 information about an address : it’s "administrative data" (country, post code, locality, street, number) and "geographic coordinates" (longitude, latitude). Providing only one, Geoplanning is able to compute the other but this comes with an accuracy issue.

If only the administrative data is provided, then Geoplanning will compute the coordinates of the closest address it finds with the provided data. This is called "geocoding". But, if either the input data is inaccurate/erroneous or our address database is incomplete the computed address might be different from the input address. In case of incomplete/erroneous input, this change is suitable and will correct the address, but in rare case it creates mistakes (when our database is incomplete). Therefore the geocoded address may be different from the input address and the created/updated entity at Geoplanning side may be different from what you submitted too.

If only the coordinates are provided, then Geoplanning will compute the administrative data of the closest address it finds to the provided coordinates. This is called "reverse geocoding". This process is efficient to get an approximative location of and address but not to get the exact administrative address of a location.

Long story short, if you can provide both administrative data and coordinates, do it. It will ensure that the imported data are exactly as provided, that is why the address structure is as follow :

Address structure

Field Type Description

longitude

Numeric

Longitude coordinate of the address as decimal degree

latitude

Numeric

Latitude coordinate of the address as decimal degree

country

String

Country code according the ISO-2 standard for country names

postcode

String

Postal code of the address

locality

String

Locality name of the address

street

String

Street name of the address

number

String

House number in the street of the address

You can provide only the first two (longitude and latitude) but if you provide one, you must provide the other.

You can provide only the last four (country, postcode, locality, number) but if you provide one, you must provide the others.

Resources

Activity

Getting an activity

A GET request will retrieve an activity

Request structure

By Geoplanning ID

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/get/path-parameters.adoc[]

By reference

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/get/param/request-parameters.adoc[]

Example request

By Geoplanning ID

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/get/curl-request.adoc[]

By reference

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/get/param/curl-request.adoc[]

Response structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/get/response-fields.adoc[]

Example response

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/get/http-response.adoc[]

Add activity

A POST request will create a new activity

Request structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/add/request-fields.adoc[]

Example request

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/add/curl-request.adoc[]

Response structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/add/response-fields.adoc[]

Example response

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/add/http-response.adoc[]

Update activity

A PUT request will fully update the activity.

General rule : This is a full update, so any field that is not provided will bet set to blank except for arrays. Passing a null array will usually leave the property untouched, however providing an empty array will clear the field. There are 3 kinds of activity, only 2 currently support the update: "Tasks" and "Simple Activities". It’s the combination of the provided ID and body that determines the updated entity

Request structure

By Geoplanning ID

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/update/task/path-parameters.adoc[]

By reference

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/update/task/request-parameters.adoc[]

Request payload structure

Task structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/update/task/request-fields.adoc[]

Simple activity structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/update/simp_acti/request-fields.adoc[]

Example request

Task example

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/update/task/curl-request.adoc[]

Simple activity example

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/update/simp_acti/curl-request.adoc[]

Response structure

Task response

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/update/task/response-fields.adoc[]

Simple activity response

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/update/simp_acti/response-fields.adoc[]

Example response

Task response

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/update/task/http-response.adoc[]

Simple activity response

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/update/simp_acti/http-response.adoc[]

Delete activity

A DELETE request will delete the activity

Request structure

By Geoplanning ID

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/delete/path-parameters.adoc[]

By reference

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/delete/param/request-parameters.adoc[]

Example request

By Geoplanning ID

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/delete/curl-request.adoc[]

By reference

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/delete/param/curl-request.adoc[]

Response structure

The server will respond with an HTTP status 204 : NO-CONTENT

Example response

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/delete/http-response.adoc[]

Assign activity

A PATCH request that will assign an activity to a resource without scheduling it in a round

Request parameter structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/assign/path-parameters.adoc[]

Request payload structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/assign/request-fields.adoc[]

Example request

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/assign/curl-request.adoc[]

Response structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/assign/response-fields.adoc[]

Response example

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/assign/http-response.adoc[]

Plan activity

A PATCH request that will plan an activity, scheduling it inside the round of a resource.

Request parameter structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/plan/path-parameters.adoc[]

Request payload structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/plan/request-fields.adoc[]

Example request

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/plan/curl-request.adoc[]

Response structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/plan/response-fields.adoc[]

Response example

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/plan/http-response.adoc[]

Unassign activity

A PATCH request that will unassign an activity, removing it from it’s assigned resource and updating it’s activity status

Request parameters structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/unassign/path-parameters.adoc[]

Request payload structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/unassign/request-fields.adoc[]

Example request

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/unassign/curl-request.adoc[]

Response structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/unassign/response-fields.adoc[]

Example response

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/unassign/http-response.adoc[]

Start activity

A PATCH request will update the status of an activity

Request parameters structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/start/path-parameters.adoc[]

Request payload structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/start/request-fields.adoc[]

Example request

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/start/curl-request.adoc[]

Response structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/start/response-fields.adoc[]

Example response

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/start/http-response.adoc[]

Complete activity

A PATCH request will update the status of an activity

Request parameters structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/finish/path-parameters.adoc[]

Request payload structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/finish/request-fields.adoc[]

Example request

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/finish/curl-request.adoc[]

Response structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/finish/response-fields.adoc[]

Example response

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/finish/http-response.adoc[]

Reject activity

A PATCH request will update the status of an activity

Request parameters structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/rejectnowork/path-parameters.adoc[]

Request payload structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/rejectnowork/request-fields.adoc[]

Example request

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/rejectnowork/curl-request.adoc[]

Response structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/rejectnowork/response-fields.adoc[]

Example response

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/rejectnowork/http-response.adoc[]

Reject a working activity

A PATCH request will update the status of an activity

Request parameters structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/rejectwork/path-parameters.adoc[]

Request structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/rejectwork/request-fields.adoc[]

Example request

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/rejectwork/curl-request.adoc[]

Response structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/rejectwork/response-fields.adoc[]

Example response

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/rejectwork/http-response.adoc[]

Cancel activity

A PATCH request that will cancel an activity removing it form it’s round and from any inbox.

Request parameter structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/cancel/path-parameters.adoc[]

Request payload structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/cancel/request-fields.adoc[]

Example request

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/cancel/curl-request.adoc[]

Response structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/cancel/response-fields.adoc[]

Response example

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/cancel/http-response.adoc[]

Getting the activity’s history

A GET request will retrieve the customer activity history

Request structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/history/path-parameters.adoc[]

Example request

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/history/curl-request.adoc[]

Response structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/history/response-fields.adoc[]

Example response

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/history/http-response.adoc[]

Getting the activity’s attachments

A GET request that will retrieve the attachments for an activity

Request structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/attachments/path-parameters.adoc[]

Example request

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/attachments/curl-request.adoc[]

Response structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/attachments/response-fields.adoc[]

Example response

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activity/attachments/http-response.adoc[]

Events

Start activity by event

A PATCH request will update the status of an activity

Request structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/events/start/request-fields.adoc[]

Example request

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/events/start/curl-request.adoc[]

Response structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/events/start/response-fields.adoc[]

Example response

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/events/start/http-response.adoc[]

Activity Status

Listing activity status

A GET request will list all available activity status.

Example request

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activitystatus/curl-request.adoc[]

Response structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activitystatus/response-fields.adoc[]

Example response

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activitystatus/http-response.adoc[]

Activity Types

Listing activity types

A GET request will list all available activity types.

Example request

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activitytype/curl-request.adoc[]

Response structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activitytype/response-fields.adoc[]

Example response

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/activitytype/http-response.adoc[]

Login

Check login

A GET request will check the username and password

Example request

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/login/curl-request.adoc[]

Response structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/login/response-fields.adoc[]

Example response

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/login/http-response.adoc[]

Pois

Listing closest pois by address

A GET request will list 10 closest point of interest from an address.

Request structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/closestPoisAddress/request-parameters.adoc[]

Example request

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/closestPoisAddress/curl-request.adoc[]

Response structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/closestPoisAddress/response-fields.adoc[]

Example response

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/closestPoisAddress/http-response.adoc[]

Listing closest pois by coordinate

A GET request will list 10 closest point of interest from a coordinate.

Request structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/closestPoisCoordinate/request-parameters.adoc[]

Example request

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/closestPoisCoordinate/curl-request.adoc[]

Response structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/closestPoisCoordinate/response-fields.adoc[]

Example response

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/closestPoisCoordinate/http-response.adoc[]

Resources

Getting a resource

A GET request will retrieve a resource

By Geoplanning ID

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/resource/getbyid/path-parameters.adoc[]

By Reference

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/resource/getbyfid/request-parameters.adoc[]

Example request

By Geoplanning ID

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/resource/getbyid/curl-request.adoc[]

By reference

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/resource/getbyfid/curl-request.adoc[]

Response structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/resource/getbyid/response-fields.adoc[]

Example response

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/resource/getbyid/http-response.adoc[]

Adding a resource

A POST request will create a new resource

Request structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/resource/add/request-fields.adoc[]

Example request

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/resource/add/curl-request.adoc[]

Response structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/resource/add/response-fields.adoc[]

Example response

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/resource/add/http-response.adoc[]

Deleting a resource

A DELETE request will delete the resource.

A resource can only be deleted if all of it’s activities bave been completed.

Request structure

By Geoplanning ID

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/resource/delete/path-parameters.adoc[]

By reference ID

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/resource/delete/param/request-parameters.adoc[]

Example request

By Geoplanning ID

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/resource/delete/curl-request.adoc[]

By Reference ID

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/resource/delete/param/curl-request.adoc[]

Response structure

The server will respond with an HTTP status 204 : NO-CONTENT

Example response

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/resource/delete/http-response.adoc[]

Updating a resource

A PUT request will update the resource.

Request structure

By Geoplanning ID

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/resource/update/path-parameters.adoc[]

By reference ID

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/resource/update/param/request-parameters.adoc[]

Example request

By Geoplanning ID

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/resource/update/curl-request.adoc[]

By Reference ID

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/resource/update/param/curl-request.adoc[]

Response structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/resource/update/response-fields.adoc[]

Example response

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/resource/update/http-response.adoc[]

Rounds

Getting a round

A GET request will retrieve a round by identifier

Request structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/rounds/getbyid/path-parameters.adoc[]

Example request

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/rounds/getbyid/curl-request.adoc[]

Response structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/rounds/getbyid/response-fields.adoc[]

Example response

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/rounds/getbyid/http-response.adoc[]

Listing rounds

A GET request will retrieve all available rounds by resource identifier and date

Request structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/rounds/resource/getbyid/path-parameters.adoc[]

Example request

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/rounds/resource/getbyid/curl-request.adoc[]

Response structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/rounds/resource/getbyid/response-fields.adoc[]

Example response

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/rounds/resource/getbyid/http-response.adoc[]

Add round

A POST request will add round for a resource and for a day

Request structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/rounds/add/request-fields.adoc[]

Example request

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/rounds/add/curl-request.adoc[]

Response structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/rounds/add/response-fields.adoc[]

Example response

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/rounds/add/http-response.adoc[]

Close round

A PUT request will close round

Request structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/rounds/close/path-parameters.adoc[]

Example request

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/rounds/close/curl-request.adoc[]

Response structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/rounds/close/response-fields.adoc[]

Example response

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/rounds/close/http-response.adoc[]

Users

Getting an user

A GET request will retrieve an user

Request structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/user/getbyid/path-parameters.adoc[]

Example request

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/user/getbyid/curl-request.adoc[]

Response structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/user/getbyid/response-fields.adoc[]

Example response

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/user/getbyid/http-response.adoc[]

Listing users

A GET request will list all available users.

Request structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/user/get/request-parameters.adoc[]

Example request

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/user/get/curl-request.adoc[]

Response structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/user/get/response-fields.adoc[]

Example response

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/user/get/http-response.adoc[]

Customers

Add customer

A POST request will add a new customer

Request structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/customer/add/request-fields.adoc[]

Example request

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/customer/add/curl-request.adoc[]

Response structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/customer/add/response-fields.adoc[]

Example response

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/customer/add/http-response.adoc[]

Retrieve a customer

A GET request will retrieve an existing customer

Request structure

By Geoplanning ID

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/customer/get/path-parameters.adoc[]

By reference ID

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/customer/get/param/path-parameters.adoc[]

Example request

By Geoplanning ID

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/customer/get/curl-request.adoc[]

By Reference ID

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/customer/get/param/curl-request.adoc[]

Response structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/customer/get/response-fields.adoc[]

Example response

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/customer/get/http-response.adoc[]

Edit a customer

A PUT request will edit an existing customer

Request structure

By Geoplanning ID
Url

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/customer/edit/path-parameters.adoc[] ====== Body Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/customer/edit/request-fields.adoc[]

By reference ID
Url

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/customer/edit/param/path-parameters.adoc[] ====== Body Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/customer/edit/param/request-fields.adoc[]

Example request

By Geoplanning ID

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/customer/edit/curl-request.adoc[]

By Reference ID

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/customer/edit/param/curl-request.adoc[]

Response structure

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/customer/edit/response-fields.adoc[]

Example response

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/customer/edit/http-response.adoc[]

Delete a customer

A DELETE request will remove an existing customer

Request structure

By Geoplanning ID

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/customer/delete/path-parameters.adoc[]

By reference ID

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/customer/delete/param/path-parameters.adoc[]

Example request

By Geoplanning ID

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/customer/delete/curl-request.adoc[]

By Reference ID

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/customer/delete/param/curl-request.adoc[]

Response structure

The server will respond with an HTTP status 204 : NO-CONTENT

Example response

Unresolved directive in index.adoc - include::C:\_WORK\_JAVA\legacy\geoplanning\geoplanning-webservice\geoplanning-webservice-rest\target/generated-snippets/v3/customer/delete/http-response.adoc[]