Commit 81164aa60d2d5c3cdea095a0a98123570ffcb5f1
1 parent
b73abff6
ga docs bug fix
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
app/library/App/Resources/GaResource.php
@@ -28,8 +28,9 @@ class GaResource extends ApiResource { | @@ -28,8 +28,9 @@ class GaResource extends ApiResource { | ||
28 | ->handler(GaController::class) | 28 | ->handler(GaController::class) |
29 | 29 | ||
30 | ->endpoint(ApiEndpoint::factory('', HttpMethods::GET, 'getAction') | 30 | ->endpoint(ApiEndpoint::factory('', HttpMethods::GET, 'getAction') |
31 | - ->allow(AclRoles::AUTHORIZED) | 31 | + ->name('Ga report') |
32 | ->description('Возвращает данные с Google Core Reporting Api. https://developers.google.com/analytics/devguides/reporting/core/dimsmets') | 32 | ->description('Возвращает данные с Google Core Reporting Api. https://developers.google.com/analytics/devguides/reporting/core/dimsmets') |
33 | + ->allow(AclRoles::AUTHORIZED) | ||
33 | ->exampleResponse([ | 34 | ->exampleResponse([ |
34 | "name" => "rukzachok.com.ua", | 35 | "name" => "rukzachok.com.ua", |
35 | "(Other)" => "646", | 36 | "(Other)" => "646", |
@@ -62,9 +63,10 @@ class GaResource extends ApiResource { | @@ -62,9 +63,10 @@ class GaResource extends ApiResource { | ||
62 | ) | 63 | ) |
63 | 64 | ||
64 | ->endpoint(ApiEndpoint::factory('/check', HttpMethods::POST, 'checkAction') | 65 | ->endpoint(ApiEndpoint::factory('/check', HttpMethods::POST, 'checkAction') |
66 | + ->name('Check') | ||
67 | + ->description('Проверяет наличие доступа к проэкту') | ||
65 | ->allow(AclRoles::AUTHORIZED) | 68 | ->allow(AclRoles::AUTHORIZED) |
66 | ->expectsJsonData() | 69 | ->expectsJsonData() |
67 | - ->description('Проверяет наличие доступа к проэкту') | ||
68 | ->exampleResponse([ | 70 | ->exampleResponse([ |
69 | 'view_id' => 'integer(id представления проэкта с гугл аналитики)', | 71 | 'view_id' => 'integer(id представления проэкта с гугл аналитики)', |
70 | 'status' => 'enum(success|error)' | 72 | 'status' => 'enum(success|error)' |