update production
This commit is contained in:
@@ -23,7 +23,8 @@ class APIgoatFetchAPI
|
||||
$this->clientOptions = [
|
||||
'verify' => false,
|
||||
'content-Type' => 'application/json',
|
||||
'accept' => 'application/json'
|
||||
'accept' => 'application/json',
|
||||
'debug' => false
|
||||
];
|
||||
|
||||
if (!$this->authenticationValid()) {
|
||||
@@ -40,7 +41,7 @@ class APIgoatFetchAPI
|
||||
{
|
||||
$clientOptions = $this->clientOptions;
|
||||
$clientOptions['query'] = [
|
||||
"Query" => [
|
||||
"query" => [
|
||||
"select" => [
|
||||
["behavior.name", "name"], ["code", "title"], ["description", "text"], "value", "example", "type", ["behavior_category.name", "category_name"]
|
||||
],
|
||||
@@ -51,7 +52,8 @@ class APIgoatFetchAPI
|
||||
]
|
||||
],
|
||||
"join" => ["behavior_category"],
|
||||
"limit" => 20
|
||||
"limit" => 20,
|
||||
"recurse" => "behavior_file"
|
||||
],
|
||||
"debug" => true
|
||||
];
|
||||
@@ -59,6 +61,7 @@ class APIgoatFetchAPI
|
||||
|
||||
$response = $this->client->get('Behavior', $clientOptions);
|
||||
|
||||
|
||||
$body = json_decode($response->getBody()->getContents(), true);
|
||||
if ($response->getStatusCode() == 200) {
|
||||
return $body;
|
||||
|
||||
Reference in New Issue
Block a user