diff --git a/app/library/App/Resources/ProjectResource.php b/app/library/App/Resources/ProjectResource.php index 887143f..b575d46 100644 --- a/app/library/App/Resources/ProjectResource.php +++ b/app/library/App/Resources/ProjectResource.php @@ -31,6 +31,17 @@ class ProjectResource extends ApiResource { ->endpoint(ApiEndpoint::all()) ->endpoint(ApiEndpoint::create()) + ->description('Create new project') + ->exampleRequest([ + 'JSON data' => [ + 'required' => [ + "\"name\" : \"123\"", + "\"ga_view_id\" : \"123\"", + "\"user_id\" : \"1\"" + ], + 'optional' => [] + ], + ]) ->endpoint(ApiEndpoint::find()) ->endpoint(ApiEndpoint::update()) ->endpoint(ApiEndpoint::remove()); -- libgit2 0.21.4