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 31  
32 32 ->endpoint(ApiEndpoint::all())
33 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 45 ->endpoint(ApiEndpoint::find())
35 46 ->endpoint(ApiEndpoint::update())
36 47 ->endpoint(ApiEndpoint::remove());
... ...