Skip to content

How to disable IRI generation for API Resource when normalizing #5875

Answered by soyuka
andersmateusz asked this question in Q&A
Discussion options

You must be logged in to vote

How to disable IRI generation in normalization context (if possible)?

genId: false or custom normalizer

How to disable linking API docs in response header for routes that are not API platform routes?

By not using API Platform but a controller ? If you really want to you can override the AddLinkProcessor or even delete any Link header before the response but there's no configuration for that yet.

Can I define in API Platform which are and which are not API routes (for example all routes that start with prefix '/api' should return docs and rest of them not)?

By not using API Platform but a controller ?

Why API Platform interferes in Symfony serialization process?

It shouldn't.

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
3 replies
@andersmateusz
Comment options

@soyuka
Comment options

@andersmateusz
Comment options

Answer selected by andersmateusz
Comment options

You must be logged in to vote
4 replies
@andersmateusz
Comment options

@celorodovalho
Comment options

@andersmateusz
Comment options

@soyuka
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants