diff --git a/app/HttpOptionResponse/ErrorLog.php b/app/HttpOptionResponse/ErrorLog.php index 01452760..1109b772 100644 --- a/app/HttpOptionResponse/ErrorLog.php +++ b/app/HttpOptionResponse/ErrorLog.php @@ -10,7 +10,7 @@ class ErrorLog extends Response public function create() { $get = new \App\HttpVerb\Get(); - $this->verbs['GET'] = $get->setDescription('route-descriptions.request_GET_error-log')-> + $this->verbs['GET'] = $get->setDescription('route-descriptions.request_GET_error_log')-> setAuthenticationStatus($this->permissions['view'])-> option(); diff --git a/app/HttpOptionResponse/ItemCategory/AllocatedExpenseCollection.php b/app/HttpOptionResponse/ItemCategory/AllocatedExpenseCollection.php index 3f9e5126..aafb3b1e 100644 --- a/app/HttpOptionResponse/ItemCategory/AllocatedExpenseCollection.php +++ b/app/HttpOptionResponse/ItemCategory/AllocatedExpenseCollection.php @@ -21,7 +21,7 @@ public function create() setDynamicFields($this->allowed_fields)-> setAuthenticationRequirement(true)-> setAuthenticationStatus($this->permissions['manage'])-> - setDescription('route-descriptions.item_category_POST_allocated-expense')-> + setDescription('route-descriptions.item_category_POST_allocated_expense')-> option(); return $this; diff --git a/app/HttpOptionResponse/ItemCategory/SimpleExpenseCollection.php b/app/HttpOptionResponse/ItemCategory/SimpleExpenseCollection.php index 3342aa92..1ca2efed 100644 --- a/app/HttpOptionResponse/ItemCategory/SimpleExpenseCollection.php +++ b/app/HttpOptionResponse/ItemCategory/SimpleExpenseCollection.php @@ -21,7 +21,7 @@ public function create() setDynamicFields($this->allowed_fields)-> setAuthenticationRequirement(true)-> setAuthenticationStatus($this->permissions['manage'])-> - setDescription('route-descriptions.item_category_POST_simple-expense')-> + setDescription('route-descriptions.item_category_POST_simple_expense')-> option(); return $this; diff --git a/app/HttpOptionResponse/ItemSubcategory/AllocatedExpenseCollection.php b/app/HttpOptionResponse/ItemSubcategory/AllocatedExpenseCollection.php index b3549e13..a179633b 100644 --- a/app/HttpOptionResponse/ItemSubcategory/AllocatedExpenseCollection.php +++ b/app/HttpOptionResponse/ItemSubcategory/AllocatedExpenseCollection.php @@ -19,7 +19,7 @@ public function create() $post = new \App\HttpVerb\Post(); $this->verbs['POST'] = $post->setFields(Config::get('api.item-subcategory.fields-post'))-> setDynamicFields($this->allowed_fields)-> - setDescription('route-descriptions.item_sub_category_POST_allocated-expense')-> + setDescription('route-descriptions.item_sub_category_POST_allocated_expense')-> setAuthenticationStatus($this->permissions['manage'])-> setAuthenticationRequirement(true)-> option(); diff --git a/app/HttpOptionResponse/ItemSubcategory/SimpleExpenseCollection.php b/app/HttpOptionResponse/ItemSubcategory/SimpleExpenseCollection.php index b52dbbce..a07eaae5 100644 --- a/app/HttpOptionResponse/ItemSubcategory/SimpleExpenseCollection.php +++ b/app/HttpOptionResponse/ItemSubcategory/SimpleExpenseCollection.php @@ -19,7 +19,7 @@ public function create() $post = new \App\HttpVerb\Post(); $this->verbs['POST'] = $post->setFields(Config::get('api.item-subcategory.fields-post'))-> setDynamicFields($this->allowed_fields)-> - setDescription('route-descriptions.item_sub_category_POST_simple-expense')-> + setDescription('route-descriptions.item_sub_category_POST_simple_expense')-> setAuthenticationStatus($this->permissions['manage'])-> setAuthenticationRequirement(true)-> option(); diff --git a/app/HttpOptionResponse/SummaryResourceCollection.php b/app/HttpOptionResponse/SummaryResourceCollection.php index 0dbf5550..3520aae7 100644 --- a/app/HttpOptionResponse/SummaryResourceCollection.php +++ b/app/HttpOptionResponse/SummaryResourceCollection.php @@ -11,7 +11,7 @@ public function create() { $get = new \App\HttpVerb\Get(); $this->verbs['GET'] = $get->setParameters(Config::get('api.resource.summary-parameters'))-> - setDescription('route-descriptions.summary-resource-GET-index')-> + setDescription('route-descriptions.summary_resource_GET_index')-> setAuthenticationStatus($this->permissions['view'])-> setSearchableParameters(Config::get('api.resource.summary-searchable'))-> option(); diff --git a/app/HttpOptionResponse/SummaryResourceTypeCollection.php b/app/HttpOptionResponse/SummaryResourceTypeCollection.php index d2c1d844..da4709cb 100644 --- a/app/HttpOptionResponse/SummaryResourceTypeCollection.php +++ b/app/HttpOptionResponse/SummaryResourceTypeCollection.php @@ -11,7 +11,7 @@ public function create() { $get = new \App\HttpVerb\Get(); $this->verbs['GET'] = $get->setParameters(Config::get('api.resource-type.summary-parameters'))-> - setDescription('route-descriptions.summary-resource-type-GET-index')-> + setDescription('route-descriptions.summary_resource_type_GET_index')-> setAuthenticationStatus($this->permissions['view'])-> setSearchableParameters(Config::get('api.resource-type.summary-searchable'))-> option(); diff --git a/resources/lang/en/route-descriptions.php b/resources/lang/en/route-descriptions.php index 25e0eaf7..27eb9055 100644 --- a/resources/lang/en/route-descriptions.php +++ b/resources/lang/en/route-descriptions.php @@ -66,8 +66,8 @@ 'item_category_GET_index' => 'Return the category assigned to the selected item', 'item_category_GET_show' => 'Return the category assigned to the selected item', - 'item_category_POST_allocated-expense' => 'Assign a maximum of one category to the selected allocated-expense', - 'item_category_POST_simple-expense' => 'Assign a maximum of one category to the selected simple-expense', + 'item_category_POST_allocated_expense' => 'Assign a maximum of one category to the selected allocated-expense', + 'item_category_POST_simple_expense' => 'Assign a maximum of one category to the selected simple-expense', 'item_category_POST_game' => 'Assign the categories (players) to the selected game', 'item_category_PATCH' => 'Update the category assigned to the selected item', @@ -76,8 +76,8 @@ 'item_sub_category_GET_index' => 'Return the subcategory assigned to the selected item', 'item_sub_category_GET_show' => 'Return the subcategory assigned to the selected item', - 'item_sub_category_POST_allocated-expense' => 'Assign a maximum of one subcategory to the selected allocated-expense', - 'item_sub_category_POST_simple-expense' => 'Assign a maximum of one subcategory to the selected simple-expense', + 'item_sub_category_POST_allocated_expense' => 'Assign a maximum of one subcategory to the selected allocated-expense', + 'item_sub_category_POST_simple_expense' => 'Assign a maximum of one subcategory to the selected simple-expense', 'item_sub_category_PATCH' => 'Update the subcategory assigned to the selected item', 'item_sub_category_DELETE' => 'Delete the subcategory assigned to the selected item', @@ -96,7 +96,7 @@ 'permitted_user_POST' => 'Assign a permitted user', 'permitted_user_DELETE' => 'Delete the selected permitted user', - 'request_GET_error-log' => 'Return the error log', + 'request_GET_error_log' => 'Return the error log', 'request_GET_cache' => 'Return the number of cached keys for the authenticated user', 'request_DELETE_cache' => 'Attempt to delete the cached keys for the authenticated user', 'request_POST' => 'Create an error log report', @@ -104,8 +104,8 @@ 'summary_category_GET_index' => 'Return a summary of the categories', 'summary_subcategory_GET_index' => 'Return a summary of the subcategories', - 'summary-resource-type-GET-index' => 'Return a summary of the resource types', - 'summary-resource-GET-index' => 'Return a summary of the resources', + 'summary_resource_type_GET_index' => 'Return a summary of the resource types', + 'summary_resource_GET_index' => 'Return a summary of the resources', 'summary_items_GET_index'=> 'Return the "item" summary for the selected resource, review summary filters for all summary options', 'summary_resource_type_items_GET_index'=> 'Return the "item" summary for the selected resource type, items for all resources are summarised, review summary filters for all summary options',