Skip to content

Commit

Permalink
Corrected descriptions
Browse files Browse the repository at this point in the history
- Updated item summary descriptions, all referred to TCO which is only accurate for one item-type
  • Loading branch information
deanblackborough committed Jun 19, 2022
1 parent 6df7b9b commit 615b3ec
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion app/HttpOptionResponse/Item/Summary/AllocatedExpense.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function create()
->setSearchableParameters(LaravelConfig::get($base_path . '.summary-searchable', []))
->setFilterableParameters(LaravelConfig::get($base_path . '.summary-filterable', []))
->setDynamicParameters($this->allowed_parameters)
->setDescription('route-descriptions.summary_GET_resource-type_resource_items')
->setDescription('route-descriptions.summary_items_GET_index')
->setAuthenticationStatus($this->permissions['view'])
->option();

Expand Down
2 changes: 1 addition & 1 deletion app/HttpOptionResponse/Item/Summary/Game.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function create()
->setSearchableParameters(LaravelConfig::get($base_path . '.summary-searchable', []))
->setFilterableParameters(LaravelConfig::get($base_path . '.summary-filterable', []))
->setDynamicParameters($this->allowed_parameters)
->setDescription('route-descriptions.summary_GET_resource-type_resource_items')
->setDescription('route-descriptions.summary_items_GET_index')
->setAuthenticationStatus($this->permissions['view'])
->option();

Expand Down
2 changes: 1 addition & 1 deletion app/HttpOptionResponse/Item/Summary/SimpleExpense.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function create()
->setSearchableParameters(LaravelConfig::get($base_path . '.summary-searchable', []))
->setFilterableParameters(LaravelConfig::get($base_path . '.summary-filterable', []))
->setDynamicParameters($this->allowed_parameters)
->setDescription('route-descriptions.summary_GET_resource-type_resource_items')
->setDescription('route-descriptions.summary_items_GET_index')
->setAuthenticationStatus($this->permissions['view'])
->option();

Expand Down
2 changes: 1 addition & 1 deletion app/HttpOptionResponse/Item/Summary/SimpleItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function create()
->setSearchableParameters(LaravelConfig::get($base_path . '.summary-searchable', []))
->setFilterableParameters(LaravelConfig::get($base_path . '.summary-filterable', []))
->setDynamicParameters($this->allowed_parameters)
->setDescription('route-descriptions.summary_GET_resource-type_resource_items')
->setDescription('route-descriptions.summary_items_GET_index')
->setAuthenticationStatus($this->permissions['view'])
->option();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function create()
->setParameters(LaravelConfig::get($base_path . '.summary-parameters', []))
->setFilterableParameters(LaravelConfig::get($base_path . '.summary-filterable', []))
->setDynamicParameters($this->allowed_parameters)
->setDescription('route-descriptions.summary-resource-type-item-GET-index')
->setDescription('route-descriptions.summary_resource_type_items_GET_index')
->setAuthenticationStatus($this->permissions['view'])
->option();

Expand Down
2 changes: 1 addition & 1 deletion app/HttpOptionResponse/ResourceTypeItem/Summary/Game.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function create()
->setParameters(LaravelConfig::get($base_path . '.summary-parameters', []))
->setFilterableParameters(LaravelConfig::get($base_path . '.summary-filterable', []))
->setDynamicParameters($this->allowed_parameters)
->setDescription('route-descriptions.summary-resource-type-item-GET-index')
->setDescription('route-descriptions.summary_resource_type_items_GET_index')
->setAuthenticationStatus($this->permissions['view'])
->option();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function create()
->setParameters(LaravelConfig::get($base_path . '.summary-parameters', []))
->setFilterableParameters(LaravelConfig::get($base_path . '.summary-filterable', []))
->setDynamicParameters($this->allowed_parameters)
->setDescription('route-descriptions.summary-resource-type-item-GET-index')
->setDescription('route-descriptions.summary_resource_type_items_GET_index')
->setAuthenticationStatus($this->permissions['view'])
->option();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function create()
->setParameters(LaravelConfig::get($base_path . '.summary-parameters', []))
->setFilterableParameters(LaravelConfig::get($base_path . '.summary-filterable', []))
->setDynamicParameters($this->allowed_parameters)
->setDescription('route-descriptions.summary-resource-type-item-GET-index')
->setDescription('route-descriptions.summary_resource_type_items_GET_index')
->setAuthenticationStatus($this->permissions['view'])
->option();

Expand Down
5 changes: 2 additions & 3 deletions resources/lang/en/route-descriptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@
'summary-resource-type-GET-index' => 'Return a summary of the resource types',
'summary-resource-GET-index' => 'Return a summary of the resources',

'summary_GET_resource-type_resource_items' => 'Return the TCO (Total cost of ownership, sum of items) for the selected resource',

'summary-resource-type-item-GET-index' => 'Return a summary of the items for all the resources matching this resource type',
'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',
];

0 comments on commit 615b3ec

Please sign in to comment.