miLibris / flask-rest-jsonapi

Flask extension to build REST APIs around JSONAPI 1.0 specification.
http://flask-rest-jsonapi.readthedocs.io
MIT License
597 stars 153 forks source link

Successful DELETE not returning propper response #39

Closed renefs closed 7 years ago

renefs commented 7 years ago

Hi, I think that according to the jsonapi specification (http://jsonapi.org/format/#document-meta), DELETE should return a meta object, but this library is returning a string. Incorrect:

  "meta": {
    "Object successful deleted"
  },
  "jsonapi": {
    "version": "1.0"
  }
}

Correct:

  "meta": {
    "result": "Object successful deleted"
  },
  "jsonapi": {
    "version": "1.0"
  }
}

I was having problems using this lib until I figured this out. Cheers.

akira-dev commented 7 years ago

Fixed in 50b040bb2849a78fffbf0cf17e7c5e4db21cffac