diff options
-rw-r--r-- | Gemfile.lock | 2 | ||||
-rw-r--r-- | doc/development/rake_tasks.md | 17 |
2 files changed, 18 insertions, 1 deletions
diff --git a/Gemfile.lock b/Gemfile.lock index 2daaa3b516e..4b57857bde7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -359,7 +359,7 @@ GEM grape-entity (0.7.1) activesupport (>= 4.0) multi_json (>= 1.3.2) - grape-path-helpers (1.0.1) + grape-path-helpers (1.0.2) activesupport (~> 4) grape (~> 1.0) rake (~> 12) diff --git a/doc/development/rake_tasks.md b/doc/development/rake_tasks.md index 31addcaf675..fc51b74da1d 100644 --- a/doc/development/rake_tasks.md +++ b/doc/development/rake_tasks.md @@ -176,3 +176,20 @@ git push -u origin update-project-templates ``` Now create a merge request and merge that to master. + +## Generate route lists + +To see the full list of API routes, you can run: + +```shell +bundle exec rake grape:path_helpers +``` + +For the Rails controllers, run: + +```shell +bundle exec rake routes +``` + +Since these take some time to create, it's often helpful to save the output to +a file for quick reference. |