Commit a3f6d93478da815ea911c7ea195fa17c31b8cb73

Authored by Alex Savenko
1 parent 668b3e5b

docs

Showing 1 changed file with 11 additions and 0 deletions   Show diff stats
app/library/App/Resources/ProjectResource.php
@@ -31,6 +31,17 @@ class ProjectResource extends ApiResource { @@ -31,6 +31,17 @@ class ProjectResource extends ApiResource {
31 31
32 ->endpoint(ApiEndpoint::all()) 32 ->endpoint(ApiEndpoint::all())
33 ->endpoint(ApiEndpoint::create()) 33 ->endpoint(ApiEndpoint::create())
  34 + ->description('Create new project')
  35 + ->exampleRequest([
  36 + 'JSON data' => [
  37 + 'required' => [
  38 + "\"name\" : \"123\"",
  39 + "\"ga_view_id\" : \"123\"",
  40 + "\"user_id\" : \"1\""
  41 + ],
  42 + 'optional' => []
  43 + ],
  44 + ])
34 ->endpoint(ApiEndpoint::find()) 45 ->endpoint(ApiEndpoint::find())
35 ->endpoint(ApiEndpoint::update()) 46 ->endpoint(ApiEndpoint::update())
36 ->endpoint(ApiEndpoint::remove()); 47 ->endpoint(ApiEndpoint::remove());