Skip to content

Handle response content type #1206

@DarkoKukovec

Description

@DarkoKukovec

Relevant version

  • 0.x
  • 1.x
  • 2.x

Relevant libraries

  • utils
  • core
  • network
  • jsonapi
  • jsonapi-angular

Breaking change

No

Description

Sometimes, the server doesn't implement the response as expected, so we should hand e this.

We should add a browserParsingMethod property into the network config:

  • all - the current implementation, default in order to not break backwards compatibility
  • json - parse only application/vnd.api+json and application/json responses, ignore the rest
  • strict - parse only application/vnd.api+json responses, ignore the rest

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions