hpi-schul-cloud / schulcloud-content

GNU Affero General Public License v3.0
0 stars 0 forks source link

switch between jsonapi and feathers #38

Open niccokunzmann opened 6 years ago

niccokunzmann commented 6 years ago

The endpoints

speak jsonapi no matter what.

Please implement a switch between feather and jsonapi based on the Accept header:

Ideas:

  1. merge /v1/search and /search into /v1/search
    • make a switch based on content type
    • set the hook.params.isJsonapi = true
    • place an after hook which converts the result
  2. OR let the endpoints as they are but
    • use the same hooks on all endpoints
    • remove the jsonapi conversion from the endpoints with feathers

Please create a pull-request to the development branch

niccokunzmann commented 6 years ago

fcee4bd should resolve this in case the tests run.