cbornet acf17c85ad add joda support to retrofit clients and use it in samples
also adds back the petstore tests
2016-06-08 18:50:49 +02:00

2.6 KiB

FakeApi

All URIs are relative to http://petstore.swagger.io/v2

Method HTTP request Description
testEndpointParameters POST fake Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트

testEndpointParameters

Void testEndpointParameters(number, _double, string, _byte, integer, int32, int64, _float, binary, date, dateTime, password)

Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트

Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트

Example

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


FakeApi apiInstance = new FakeApi();
BigDecimal number = new BigDecimal(); // BigDecimal | None
Double _double = 3.4D; // Double | None
String string = "string_example"; // String | None
byte[] _byte = B; // byte[] | None
Integer integer = 56; // Integer | None
Integer int32 = 56; // Integer | None
Long int64 = 789L; // Long | None
Float _float = 3.4F; // Float | None
byte[] binary = B; // byte[] | None
LocalDate date = new LocalDate(); // LocalDate | None
DateTime dateTime = new DateTime(); // DateTime | None
String password = "password_example"; // String | None
try {
    Void result = apiInstance.testEndpointParameters(number, _double, string, _byte, integer, int32, int64, _float, binary, date, dateTime, password);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FakeApi#testEndpointParameters");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
number BigDecimal None
_double Double None
string String None
_byte byte[] None
integer Integer None [optional]
int32 Integer None [optional]
int64 Long None [optional]
_float Float None [optional]
binary byte[] None [optional]
date LocalDate None [optional]
dateTime DateTime None [optional]
password String None [optional]

Return type

Void

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/xml; charset=utf-8, application/json; charset=utf-8
  • Accept: application/xml; charset=utf-8, application/json; charset=utf-8