Hi michael,
thx for reply,
guzzle-service is interesting, but it will be better if we can combine many request per operation with conditional transition
example :
$description = new Description([
'baseUrl' => 'http://httpbin.org/',
'operations' => [
'testing' => [
'httpMethod' => 'GET',
'uri' => '/get',
'responseModel' => 'getResponse',
'parameters' => [
'foo' => [
'type' => 'string',
'location' => 'query'
]
]
]
],
'models' => [
'getResponse' => [
'type' => 'object',
'additionalProperties' => [
'location' => 'json'
]
]
]
]);
become :
$description = new Description([
'baseUrl' => 'http://httpbin.org/',
'operations' => [
'testing' => [
[
'httpMethod' => 'GET',
'uri' => '/get',
'responseModel' => 'getResponse',
'parameters' => [
'foo' => [
'type' => 'string',
'location' => 'query'
]
]
],
[
'httpMethod' => 'GET',
'uri' => '/get',
'responseModel' => 'getResponse',
'parameters' => [
'foo' => [
'type' => 'string',
'location' => 'query'
]
]
]
]
],
'models' => [
'getResponse' => [
'type' => 'object',
'additionalProperties' => [
'location' => 'json'
]
]
]
]);