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

153 lines
3.6 KiB
Markdown

# PlaceApi
All URIs are relative to *http://localhost/api*
Method | HTTP request | Description
------------- | ------------- | -------------
[**getPlace**](PlaceApi.md#getPlace) | **GET** /places/{id} | Returns the place with the specified id.
[**getPlaceVisits**](PlaceApi.md#getPlaceVisits) | **GET** /places/{id}/visits | Returns the visits for a particular place.
[**setPlace**](PlaceApi.md#setPlace) | **PUT** /places/{id} | Updates the place with the specified id.
<a name="getPlace"></a>
# **getPlace**
> Place getPlace(id)
Returns the place with the specified id.
### Example
```java
// 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**](Place.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
<a name="getPlaceVisits"></a>
# **getPlaceVisits**
> VisitPage getPlaceVisits(id, pageOffset, pageSize)
Returns the visits for a particular place.
### Example
```java
// 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**](VisitPage.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
<a name="setPlace"></a>
# **setPlace**
> Place setPlace(id, body)
Updates the place with the specified id.
### Example
```java
// 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**](Place.md)| The place to set. |
### Return type
[**Place**](Place.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml