Commit 668b3e5b387347f8ae00efa331caee38dcc80987
1 parent
b5d15638
docs
Showing
2 changed files
with
10 additions
and
6 deletions
Show diff stats
app/library/App/Collections/ExportCollection.php
| @@ -10,11 +10,16 @@ class ExportCollection extends ApiCollection | @@ -10,11 +10,16 @@ class ExportCollection extends ApiCollection | ||
| 10 | { | 10 | { |
| 11 | protected function initialize() | 11 | protected function initialize() |
| 12 | { | 12 | { |
| 13 | - $this | ||
| 14 | - ->name('Export') | ||
| 15 | - ->handler(ExportController::class) | 13 | +// $this |
| 14 | +// ->name('Export') | ||
| 15 | +// ->handler(ExportController::class) | ||
| 16 | +// | ||
| 17 | +// ->endpoint(ApiEndpoint::get('/documentation.json', 'documentation')) | ||
| 18 | +// ->endpoint(ApiEndpoint::get('/postman.json', 'postman')); | ||
| 16 | 19 | ||
| 17 | - ->endpoint(ApiEndpoint::get('/documentation.json', 'documentation')) | ||
| 18 | - ->endpoint(ApiEndpoint::get('/postman.json', 'postman')); | 20 | + $this->name('Export'); |
| 21 | + $this->handler(ExportController::class); | ||
| 22 | + $this->endpoint(ApiEndpoint::get('/documentation.json', 'documentation')); | ||
| 23 | + $this->endpoint(ApiEndpoint::get('/postman.json', 'postman')); | ||
| 19 | } | 24 | } |
| 20 | } | 25 | } |
app/views/general/documentation.phtml
| @@ -59,7 +59,6 @@ | @@ -59,7 +59,6 @@ | ||
| 59 | </tr> | 59 | </tr> |
| 60 | </table> | 60 | </table> |
| 61 | <div class="panel-footer"> | 61 | <div class="panel-footer"> |
| 62 | - | ||
| 63 | <div class="panel panel-primary" ng-repeat="endpoint in collection.endpoints"> | 62 | <div class="panel panel-primary" ng-repeat="endpoint in collection.endpoints"> |
| 64 | <div class="panel-heading"> | 63 | <div class="panel-heading"> |
| 65 | <span ng-bind-html="endpoint.httpMethod | method"></span> {{ collection.prefix + endpoint.path }} | 64 | <span ng-bind-html="endpoint.httpMethod | method"></span> {{ collection.prefix + endpoint.path }} |