findAll
Finds all Apartment
/api/v1/apartments
Usage and SDK Samples
curl -X GET\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/apartments?page=&size=&direction=&ap_status="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ApartmentApi;
import java.io.File;
import java.util.*;
public class ApartmentApiExample {
public static void main(String[] args) {
ApartmentApi apiInstance = new ApartmentApi();
Integer page = 56; // Integer |
Integer size = 56; // Integer |
String direction = direction_example; // String |
String apStatus = apStatus_example; // String |
try {
array[Apartment] result = apiInstance.findAll(page, size, direction, apStatus);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ApartmentApi#findAll");
e.printStackTrace();
}
}
}
import io.swagger.client.api.ApartmentApi;
public class ApartmentApiExample {
public static void main(String[] args) {
ApartmentApi apiInstance = new ApartmentApi();
Integer page = 56; // Integer |
Integer size = 56; // Integer |
String direction = direction_example; // String |
String apStatus = apStatus_example; // String |
try {
array[Apartment] result = apiInstance.findAll(page, size, direction, apStatus);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ApartmentApi#findAll");
e.printStackTrace();
}
}
}
Integer *page = 56; // (optional) (default to 0)
Integer *size = 56; // (optional) (default to 12)
String *direction = direction_example; // (optional) (default to asc)
String *apStatus = apStatus_example; // (optional)
ApartmentApi *apiInstance = [[ApartmentApi alloc] init];
// Finds all Apartment
[apiInstance findAllWith:page
size:size
direction:direction
apStatus:apStatus
completionHandler: ^(array[Apartment] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var ViverBemApiDocumentation = require('viver_bem_api_documentation');
var api = new ViverBemApiDocumentation.ApartmentApi()
var opts = {
'page': 56, // {{Integer}}
'size': 56, // {{Integer}}
'direction': direction_example, // {{String}}
'apStatus': apStatus_example // {{String}}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.findAll(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class findAllExample
{
public void main()
{
var apiInstance = new ApartmentApi();
var page = 56; // Integer | (optional) (default to 0)
var size = 56; // Integer | (optional) (default to 12)
var direction = direction_example; // String | (optional) (default to asc)
var apStatus = apStatus_example; // String | (optional)
try
{
// Finds all Apartment
array[Apartment] result = apiInstance.findAll(page, size, direction, apStatus);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ApartmentApi.findAll: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiApartmentApi();
$page = 56; // Integer |
$size = 56; // Integer |
$direction = direction_example; // String |
$apStatus = apStatus_example; // String |
try {
$result = $api_instance->findAll($page, $size, $direction, $apStatus);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ApartmentApi->findAll: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ApartmentApi;
my $api_instance = WWW::SwaggerClient::ApartmentApi->new();
my $page = 56; # Integer |
my $size = 56; # Integer |
my $direction = direction_example; # String |
my $apStatus = apStatus_example; # String |
eval {
my $result = $api_instance->findAll(page => $page, size => $size, direction => $direction, apStatus => $apStatus);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ApartmentApi->findAll: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.ApartmentApi()
page = 56 # Integer | (optional) (default to 0)
size = 56 # Integer | (optional) (default to 12)
direction = direction_example # String | (optional) (default to asc)
apStatus = apStatus_example # String | (optional)
try:
# Finds all Apartment
api_response = api_instance.find_all3(page=page, size=size, direction=direction, apStatus=apStatus)
pprint(api_response)
except ApiException as e:
print("Exception when calling ApartmentApi->findAll: %s\n" % e)
Parameters
| Name | Description |
|---|---|
| page |
Integer
(int32)
|
| size |
Integer
(int32)
|
| direction |
String
|
| ap_status |
String
|