Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to specify a url generation strategy #3198

Merged
merged 2 commits into from Jun 24, 2020

Conversation

antograssiot
Copy link
Contributor

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tickets #3074
License MIT
Doc PR not done yet, waiting approval

I took all the commits of the excellent work of @mab05k in #3084 (and rebasing on master) and added a commit on top of it to propose a similar approach to #2708

I'm still not sure it is better, or if we need to support this instead of the simpler boolean option but at least we can choose.

@antograssiot antograssiot force-pushed the url-generation-strategy branch 2 times, most recently from 13a87c3 to d457297 Compare October 20, 2019 20:25
.circleci/config.yml Outdated Show resolved Hide resolved
.travis.yml Outdated Show resolved Hide resolved
Copy link
Member

@soyuka soyuka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks really nice!

features/jsonld/absolute_url.feature Outdated Show resolved Hide resolved
mab05k and others added 2 commits June 24, 2020 16:28
apply absolute url to all generated URLs/IRIs

Allow passing an url generation strategy instead of a bool

Switch to a resource attribute to manage URL generation strategy
@dunglas dunglas merged commit 51573a3 into api-platform:master Jun 24, 2020
@dunglas
Copy link
Member

dunglas commented Jun 24, 2020

Thank you very much @mab05k @antograssiot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants