grape
Here are 76 public repositories matching this topic...
-
Updated
Jun 26, 2020 - Ruby
I am trying to create documentation for this
desc 'Returns your public timeline.' do
summary 'summary'
detail 'more details'
named 'My named route'
headers XAuthToken: {
description: 'Validates your identity',
required: true
},
XOptionalHeader: {
description: 'Not really needed',
with_options documentation: {required: true, type: 'integer'} do
expose :posts_count, as: :posts, documentation: {example: 7}
expose :followers_count, as: :followers, documentation: {example: 105}
expose :following_count, as: :following, documentation: {example: 52}
expose :bookmarks_count, as: :bookmarks, documentation: {example: 22}
endmy app's page params are in the url
things_path(page: 2) # => "/things/page/2"
not
things_path(page: 2) # => "/things?page=2"
however, the generated links use this second form, which appears to be hardcoded in Pagination#_paginate_collection
-
Updated
Sep 6, 2018 - Ruby
We're using Grape with Grape::OAuth2 for a Rails project which provides an API that needs to be secured by the Client Credentials flow of OAuth2.
We've been following the configuration guidelines and the 'lazy' usage example stated in the README, but we have a question regarding the resource_owner_class_name. As we are using Client Credentials we don't need a resource owner, but the documenta
-
Updated
Jul 4, 2020 - Ruby
-
Updated
Jun 20, 2020 - Ruby
-
Updated
Feb 4, 2020 - Ruby
-
Updated
May 19, 2017 - JavaScript
-
Updated
Mar 16, 2019 - Ruby
-
Updated
Jun 26, 2018 - JavaScript
-
Updated
Jun 15, 2020 - Ruby
-
Updated
Oct 7, 2019 - Ruby
-
Updated
May 11, 2018 - Ruby
-
Updated
Mar 2, 2018 - Ruby
-
Updated
Jun 24, 2020 - Ruby
Improve this page
Add a description, image, and links to the grape topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the grape topic, visit your repo's landing page and select "manage topics."
Custom error formatter must have now 5 arguments instead of the old 4. These changes were introduced here on #1652
When migrating from 0.19 to 1.1.0 I had issues on a custom error formatter because the original_exception argument was introduced but that change was not documented on the upgrading guide.