Files
maptology/testing/api-client/docs/PlaceApi.md
T
Ole e3935842c7
lbs-gitea/maptology/master There was a failure building this commit
move generated client code in the projects source folder & successfully create devices
2018-01-25 01:33:33 +01:00

3.6 KiB

PlaceApi

All URIs are relative to http://localhost/api

Method HTTP request Description
getPlace GET /places/{id} Returns the place with the specified id.
getPlaceVisits GET /places/{id}/visits Returns the visits for a particular place.
setPlace PUT /places/{id} Updates the place with the specified id.

getPlace

Place getPlace(id)

Returns the place with the specified id.

Example

// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.PlaceApi;


PlaceApi apiInstance = new PlaceApi();
Long id = 789L; // Long | The place id.
try {
    Place result = apiInstance.getPlace(id);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling PlaceApi#getPlace");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id Long The place id.

Return type

Place

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

getPlaceVisits

VisitPage getPlaceVisits(id, pageOffset, pageSize)

Returns the visits for a particular place.

Example

// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.PlaceApi;


PlaceApi apiInstance = new PlaceApi();
Long id = 789L; // Long | The place id.
Integer pageOffset = 0; // Integer | The offset in terms of elements.
Integer pageSize = 20; // Integer | The maximum number of elements on the page.
try {
    VisitPage result = apiInstance.getPlaceVisits(id, pageOffset, pageSize);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling PlaceApi#getPlaceVisits");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id Long The place id.
pageOffset Integer The offset in terms of elements. [optional] [default to 0]
pageSize Integer The maximum number of elements on the page. [optional] [default to 20]

Return type

VisitPage

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

setPlace

Place setPlace(id, body)

Updates the place with the specified id.

Example

// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.PlaceApi;


PlaceApi apiInstance = new PlaceApi();
Long id = 789L; // Long | The place id.
Place body = new Place(); // Place | The place to set.
try {
    Place result = apiInstance.setPlace(id, body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling PlaceApi#setPlace");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id Long The place id.
body Place The place to set.

Return type

Place

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml