Skip to content

Removing /v1 from the links e.g. self in JSON results #1058

@ghost

Description

I am using HTTP headers to add versioning capabilities in my API. I am accessing my API endpoint as such...
http://localhost:3000/api/posts
However, for the links in relationship like comments. It shows something like this...
http://localhost:3000/api/v1/posts/1/relationships/comments
What I want to do is to have this...
http://localhost:3000/api/posts/1/relationships/comments

I read the suggestion from #257 but I could not figure out where to put the monkey patch file (apologies for that.)

Thank you!

PS: This is connected to these issues: #591 #257 #159

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions