Skip to content

Commit 3d3a824

Browse files
Miguel TavaresMiguel Tavares
authored andcommitted
Add default support for PATCH and DELETE.
1 parent 6ffb8cb commit 3d3a824

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/grape_swagger_rails/application/index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
dom_id:"swagger-ui-container",
1414
supportHeaderParams: true,
1515
headers: "<%= GrapeSwaggerRails.headers.to_json %>",
16-
supportedSubmitMethods: ['get', 'post', 'put'],
16+
supportedSubmitMethods: ['get', 'post', 'put', 'patch', 'delete'],
1717
onComplete: function(swaggerApi, swaggerUi){
1818
if(console) {
1919
console.log("Loaded SwaggerUI")

0 commit comments

Comments
 (0)