You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[#1422](https://github.com/ruby-grape/grape/pull/1422): Concat parent declared params with current one - [@plukevdh](https://github.com/plukevdh), [@rnubel](https://github.com/rnubel), [@namusyaka](https://github.com/namusyaka).
66
64
67
-
0.16.2 (4/12/2016)
68
-
==================
65
+
### 0.16.2 (4/12/2016)
69
66
70
67
#### Features
71
68
@@ -78,8 +75,7 @@ Next Release
78
75
*[#1359](https://github.com/ruby-grape/grape/pull/1359): Avoid evaluating the same route twice - [@namusyaka](https://github.com/namusyaka), [@dblock](https://github.com/dblock).
79
76
*[#1361](https://github.com/ruby-grape/grape/pull/1361): Return 405 correctly even if version is using as header and wrong request method - [@namusyaka](https://github.com/namusyaka), [@dblock](https://github.com/dblock).
80
77
81
-
0.16.1 (4/3/2016)
82
-
=================
78
+
### 0.16.1 (4/3/2016)
83
79
84
80
#### Features
85
81
@@ -94,8 +90,7 @@ Next Release
94
90
*[#1330](https://github.com/ruby-grape/grape/pull/1330): Add `register` keyword for adding customized parsers and formatters - [@namusyaka](https://github.com/namusyaka).
95
91
*[#1336](https://github.com/ruby-grape/grape/pull/1336): Do not modify Hash argument to `error!` - [@tjwp](https://github.com/tjwp).
96
92
97
-
0.15.0 (3/8/2016)
98
-
=================
93
+
### 0.15.0 (3/8/2016)
99
94
100
95
#### Features
101
96
@@ -122,8 +117,7 @@ Next Release
122
117
*[#1283](https://github.com/ruby-grape/grape/pull/1283): Fix 500 error for xml format when method is not allowed - [@304](https://github.com/304).
123
118
*[#1197](https://github.com/ruby-grape/grape/pull/1290): Fix using JSON and Array[JSON] as groups when parameter is optional - [@lukeivers](https://github.com/lukeivers).
124
119
125
-
0.14.0 (12/07/2015)
126
-
=================
120
+
### 0.14.0 (12/07/2015)
127
121
128
122
#### Features
129
123
@@ -150,8 +144,7 @@ Next Release
150
144
*[#1101](https://github.com/ruby-grape/grape/pull/1101): Fix: Incorrect media-type `Accept` header now correctly returns 406 with `strict: true` - [@elliotlarson](https://github.com/elliotlarson).
151
145
*[#1108](https://github.com/ruby-grape/grape/pull/1039): Raise a warning when `desc` is called with options hash and block - [@rngtng](https://github.com/rngtng).
152
146
153
-
0.13.0 (8/10/2015)
154
-
==================
147
+
### 0.13.0 (8/10/2015)
155
148
156
149
#### Features
157
150
@@ -172,8 +165,7 @@ Next Release
172
165
*[#1088](https://github.com/ruby-grape/grape/pull/1088): Support ActiveSupport 3.x by explicitly requiring `Hash#except` - [@wagenet](https://github.com/wagenet).
173
166
*[#1096](https://github.com/ruby-grape/grape/pull/1096): Fix coercion on booleans - [@towanda](https://github.com/towanda).
174
167
175
-
0.12.0 (6/18/2015)
176
-
==================
168
+
### 0.12.0 (6/18/2015)
177
169
178
170
#### Features
179
171
@@ -199,8 +191,7 @@ Next Release
199
191
*[#1023](https://github.com/ruby-grape/grape/issues/1023): Fixes unexpected behavior with `present` and an object that responds to `merge` but isn't a Hash - [@dblock](https://github.com/dblock).
*[#925](https://github.com/ruby-grape/grape/pull/925): Fixed `toplevel constant DateTime referenced by Virtus::Attribute::DateTime` - [@u2](https://github.com/u2).
206
197
*[#916](https://github.com/ruby-grape/grape/pull/916): Added `DateTime/Date/Numeric/Boolean` type support `allow_blank` - [@u2](https://github.com/u2).
@@ -217,14 +208,12 @@ Next Release
217
208
*[#913](https://github.com/ruby-grape/grape/pull/913): Fix: Invalid accept headers cause internal processing errors (500) when http_codes are defined - [@croeck](https://github.com/croeck).
218
209
*[#917](https://github.com/ruby-grape/grape/pull/917): Use HTTPS for rubygems.org - [@O-I](https://github.com/O-I).
219
210
220
-
0.10.1 (12/28/2014)
221
-
===================
211
+
### 0.10.1 (12/28/2014)
222
212
223
213
*[#868](https://github.com/ruby-grape/grape/pull/868), [#862](https://github.com/ruby-grape/grape/pull/862), [#861](https://github.com/ruby-grape/grape/pull/861): Fixed `version`, `prefix`, and other settings being overridden or changing scope when mounting API - [@yesmeck](https://github.com/yesmeck).
224
214
*[#864](https://github.com/ruby-grape/grape/pull/864): Fixed `declared(params, include_missing: false)` now returning attributes with `nil` and `false` values - [@ppadron](https://github.com/ppadron).
*[#774](https://github.com/ruby-grape/grape/pull/774): Extended `mutually_exclusive`, `exactly_one_of`, `at_least_one_of` to work inside any kind of group: `requires` or `optional`, `Hash` or `Array` - [@ShPakvel](https://github.com/ShPakvel).
@@ -247,8 +236,7 @@ Next Release
247
236
*[#679](https://github.com/ruby-grape/grape/issues/679): Fixed `OPTIONS` method returning 404 when combined with `prefix` - [@dblock](https://github.com/dblock).
248
237
*[#679](https://github.com/ruby-grape/grape/issues/679): Fixed unsupported methods returning 404 instead of 405 when combined with `prefix` - [@dblock](https://github.com/dblock).
249
238
250
-
0.9.0 (8/27/2014)
251
-
=================
239
+
### 0.9.0 (8/27/2014)
252
240
253
241
#### Features
254
242
@@ -266,8 +254,7 @@ Next Release
266
254
267
255
*[#687](https://github.com/ruby-grape/grape/pull/687): Fix: `mutually_exclusive` and `exactly_one_of` validation error messages now label parameters as strings, consistently with `requires` and `optional` - [@dblock](https://github.com/dblock).
268
256
269
-
0.8.0 (7/10/2014)
270
-
=================
257
+
### 0.8.0 (7/10/2014)
271
258
272
259
#### Features
273
260
@@ -287,8 +274,7 @@ Next Release
287
274
*[#619](https://github.com/ruby-grape/grape/pull/619): Convert specs to RSpec 3 syntax with Transpec - [@danielspector](https://github.com/danielspector).
288
275
*[#632](https://github.com/ruby-grape/grape/pull/632): `Grape::Endpoint#present` causes ActiveRecord to make an extra query during entity's detection - [@fixme](https://github.com/fixme).
289
276
290
-
0.7.0 (4/2/2014)
291
-
=================
277
+
### 0.7.0 (4/2/2014)
292
278
293
279
#### Features
294
280
@@ -322,13 +308,12 @@ Next Release
322
308
*[#512](https://github.com/ruby-grape/grape/pull/512): Don't create `Grape::Request` multiple times - [@dblock](https://github.com/dblock).
323
309
*[#538](https://github.com/ruby-grape/grape/pull/538): Fixed default values for grouped params - [@dm1try](https://github.com/dm1try).
324
310
*[#549](https://github.com/ruby-grape/grape/pull/549): Fixed handling of invalid version headers to return 406 if a header cannot be parsed - [@bwalex](https://github.com/bwalex).
325
-
*[#557](https://github.com/ruby-grape/grape/pull/557): Pass `content_types` option to `Grape::Middleware::Error` to fix the content-type header for custom formats. - [@bernd](https://github.com/bernd).
311
+
*[#557](https://github.com/ruby-grape/grape/pull/557): Pass `content_types` option to `Grape::Middleware::Error` to fix the content-type header for custom formats - [@bernd](https://github.com/bernd).
326
312
*[#585](https://github.com/ruby-grape/grape/pull/585): Fix after boot thread-safety issue - [@etehtsea](https://github.com/etehtsea).
327
313
*[#587](https://github.com/ruby-grape/grape/pull/587): Fix oauth2 middleware compatibility with [draft-ietf-oauth-v2-31](http://tools.ietf.org/html/draft-ietf-oauth-v2-31) spec - [@etehtsea](https://github.com/etehtsea).
328
314
*[#610](https://github.com/ruby-grape/grape/pull/610): Fixed group keyword was not working with type parameter - [@klausmeyer](https://github.com/klausmeyer).
*[#428](https://github.com/ruby-grape/grape/issues/428): Removes memoization from `Grape::Request` params to prevent middleware from freezing parameter values before `Formatter` can get them - [@mbleigh](https://github.com/mbleigh).
365
349
366
-
0.5.0 (6/14/2013)
367
-
=================
350
+
### 0.5.0 (6/14/2013)
368
351
369
352
#### Features
370
353
@@ -390,13 +373,11 @@ Next Release
390
373
*[#423](https://github.com/ruby-grape/grape/pull/423): Fix: `Grape::Endpoint#declared` now correctly handles nested params (ie. declared with `group`) - [@jbarreneche](https://github.com/jbarreneche).
391
374
*[#427](https://github.com/ruby-grape/grape/issues/427): Fix: `declared(params)` breaks when `params` contains array - [@timhabermaas](https://github.com/timhabermaas).
392
375
393
-
0.4.1 (4/1/2013)
394
-
================
376
+
### 0.4.1 (4/1/2013)
395
377
396
378
*[#375](https://github.com/ruby-grape/grape/pull/375): Fix: throwing an `:error` inside a middleware doesn't respect the `format` settings - [@dblock](https://github.com/dblock).
397
379
398
-
0.4.0 (3/17/2013)
399
-
=================
380
+
### 0.4.0 (3/17/2013)
400
381
401
382
*[#356](https://github.com/ruby-grape/grape/pull/356): Fix: presenting collections other than `Array` (eg. `ActiveRecord::Relation`) - [@zimbatm](https://github.com/zimbatm).
402
383
*[#352](https://github.com/ruby-grape/grape/pull/352): Fix: using `Rack::JSONP` with `Grape::Entity` responses - [@deckchair](https://github.com/deckchair).
@@ -410,18 +391,15 @@ Next Release
410
391
*[#353](https://github.com/ruby-grape/grape/issues/353): Revert to standard Ruby logger formatter, `require active_support/all` if you want old behavior - [@rhunter](https://github.com/rhunter), [@dblock](https://github.com/dblock).
411
392
* Fix: `undefined method 'call' for nil:NilClass` for an API method implementation without a block, now returns an empty string - [@dblock](https://github.com/dblock).
412
393
413
-
0.3.2 (2/28/2013)
414
-
=================
394
+
### 0.3.2 (2/28/2013)
415
395
416
396
*[#355](https://github.com/ruby-grape/grape/issues/355): Relax dependency constraint on Hashie - [@reset](https://github.com/reset).
417
397
418
-
0.3.1 (2/25/2013)
419
-
=================
398
+
### 0.3.1 (2/25/2013)
420
399
421
400
*[#351](https://github.com/ruby-grape/grape/issues/351): Compatibility with Ruby 2.0 - [@mbleigh](https://github.com/mbleigh).
422
401
423
-
0.3.0 (02/21/2013)
424
-
==================
402
+
### 0.3.0 (02/21/2013)
425
403
426
404
*[#294](https://github.com/ruby-grape/grape/issues/294): Extracted `Grape::Entity` into a [grape-entity](https://github.com/agileanimal/grape-entity) gem - [@agileanimal](https://github.com/agileanimal).
427
405
*[#340](https://github.com/ruby-grape/grape/pull/339), [#342](https://github.com/ruby-grape/grape/pull/342): Added `:cascade` option to `version` to allow disabling of rack/mount cascade behavior - [@dieb](https://github.com/dieb).
@@ -440,14 +418,12 @@ Next Release
440
418
*[#60](https://github.com/ruby-grape/grape/issues/60): Fix: mounting of a Grape API onto a path - [@dblock](https://github.com/dblock).
441
419
*[#335](https://github.com/ruby-grape/grape/pull/335): Fix: request body parameters from a `PATCH` request not available in `params` - [@FreakenK](https://github.com/FreakenK).
442
420
443
-
0.2.6 (01/11/2013)
444
-
==================
421
+
### 0.2.6 (01/11/2013)
445
422
446
423
* Fix: support content-type with character set when parsing POST and PUT input - [@dblock](https://github.com/dblock).
* Added support for custom parsers via `parser`, in addition to built-in multipart, JSON and XML parsers - [@dblock](https://github.com/dblock).
453
429
* Removed `body_params`, data sent via a POST or PUT with a supported content-type is merged into `params` - [@dblock](https://github.com/dblock).
@@ -456,8 +432,7 @@ Next Release
456
432
*[#305](https://github.com/ruby-grape/grape/issues/305): Fix: presenting arrays of objects via `represent` or when auto-detecting an `Entity` constant in the objects being presented - [@brandonweiss](https://github.com/brandonweiss).
457
433
*[#306](https://github.com/ruby-grape/grape/issues/306): Added i18n support for validation error messages - [@niedhui](https://github.com/niedhui).
*[#297](https://github.com/ruby-grape/grape/issues/297): Setting `format` will automatically set `default_error_formatter` - [@dblock](https://github.com/dblock).
@@ -475,8 +450,7 @@ Next Release
475
450
*[#304](https://github.com/ruby-grape/grape/issues/304): Fix: `present x, :with => Entity` returns class references with `format :json` - [@dblock](https://github.com/dblock).
476
451
*[#196](https://github.com/ruby-grape/grape/issues/196): Fix: root requests don't work with `prefix` - [@dblock](https://github.com/dblock).
477
452
478
-
0.2.3 (24/12/2012)
479
-
==================
453
+
### 0.2.3 (24/12/2012)
480
454
481
455
*[#179](https://github.com/ruby-grape/grape/issues/178): Using `content_type` will remove all default content-types - [@dblock](https://github.com/dblock).
482
456
*[#265](https://github.com/ruby-grape/grape/issues/264): Fix: Moved `ValidationError` into `Grape::Exceptions` - [@thepumpkin1979](https://github.com/thepumpkin1979).
@@ -489,8 +463,7 @@ Next Release
489
463
*[#290](https://github.com/ruby-grape/grape/pull/290): The default error format for XML is now `error/message` instead of `hash/error` - [@dpsk](https://github.com/dpsk).
490
464
*[#44](https://github.com/ruby-grape/grape/issues/44): Pass `env` into formatters to enable templating - [@dblock](https://github.com/dblock).
491
465
492
-
0.2.2
493
-
=====
466
+
### 0.2.2 (12/10/2012)
494
467
495
468
#### Features
496
469
@@ -512,8 +485,7 @@ Next Release
512
485
*[#208](https://github.com/ruby-grape/grape/pull/208): `Entity#serializable_hash` must also check if attribute is generated by a user supplied block - [@ppadron](https://github.com/ppadron).
513
486
*[#252](https://github.com/ruby-grape/grape/pull/252): Resources that don't respond to a requested HTTP method return 405 (Method Not Allowed) instead of 404 (Not Found) - [@simulacre](https://github.com/simulacre).
514
487
515
-
0.2.1 (7/11/2012)
516
-
=================
488
+
### 0.2.1 (7/11/2012)
517
489
518
490
*[#186](https://github.com/ruby-grape/grape/issues/186): Fix: helpers allow multiple calls with modules and blocks - [@ppadron](https://github.com/ppadron).
519
491
*[#188](https://github.com/ruby-grape/grape/pull/188): Fix: multi-method routes append '(.:format)' only once - [@kainosnoema](https://github.com/kainosnoema).
@@ -528,8 +500,7 @@ Next Release
528
500
*[#189](https://github.com/ruby-grape/grape/pull/189): `HEAD` requests no longer return a body - [@stephencelis](https://github.com/stephencelis).
Copy file name to clipboardExpand all lines: UPGRADING.md
+15
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,21 @@ Prior to this version the response would be `one is missing`.
41
41
42
42
See [#1510](https://github.com/ruby-grape/grape/pull/1510) for more information.
43
43
44
+
#### The default status code for DELETE is now 204 instead of 200.
45
+
46
+
Breaking change: Sets the default response status code for a delete request to 204.
47
+
A status of 204 makes the response more distinguishable and therefore easier to handle on the client side, particularly because a DELETE request typically returns an empty body as the resource was deleted or voided.
48
+
49
+
To achieve the old behavior, one has to set it explicitly:
50
+
```ruby
51
+
delete :iddo
52
+
status 200
53
+
'foo successfully deleted'
54
+
end
55
+
```
56
+
57
+
For more information see: [#1532](https://github.com/ruby-grape/grape/pull/1532).
0 commit comments