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

Unlink URI from resource type #70

Open
antonkomarev opened this issue Nov 20, 2019 · 3 comments
Open

Unlink URI from resource type #70

antonkomarev opened this issue Nov 20, 2019 · 3 comments

Comments

@antonkomarev
Copy link

antonkomarev commented Nov 20, 2019

Right now jsonApiType is using for resource type and in URI builder. But in JSON:API specification there is no rule to keep them same.

Example:
I have resource with type: "Truck", but it's listed in GET /cars endpoint.

I propose to have extra property which will be used in URI path. If it's value is undefined or null - then jsonApiType will be used as it's working now.

@DavidDuwaer
Copy link
Owner

Makes sense, good idea

@DavidDuwaer
Copy link
Owner

Would you have time to implement this?

@antonkomarev
Copy link
Author

Nope, sorry. I'm not actually using your package. Just made a research of existing solutions and found this issue.

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

No branches or pull requests

2 participants