swisnl / json-api-server

Set up a JSON API in Laravel in just a few minutes.
MIT License
105 stars 19 forks source link

Server content type response and escaping slashes #19

Closed bbrala closed 6 years ago

bbrala commented 6 years ago

Description

Server did not repsond with correct header, and slashes inside links were escaped by json encode.

Motivation and context

Comply with spec, and remove escaping.

How has this been tested?

Tests for headers are added, response tested in test project.

Types of changes

What types of changes does your code introduce? Put an x in all the boxes that apply:

Checklist:

Go over all the following points, and put an x in all the boxes that apply.

Please, please, please, don't send your pull request until all of the boxes are ticked. Once your pull request is created, it will trigger a build on our continuous integration server to make sure your tests and code style pass.