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

A way to get entities itselves instead of to/from ids by REAT API #20

Open
hokoo opened this issue Oct 18, 2024 · 0 comments
Open

A way to get entities itselves instead of to/from ids by REAT API #20

hokoo opened this issue Oct 18, 2024 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@hokoo
Copy link
Owner

hokoo commented Oct 18, 2024

When we make a request like that
https://wp.local/wp-json/wp-connections/v1/client/client-name/relation/relation-name/

it returns an array of connections

[
    {
        "data": {
            "id": 1,
            "title": "",
            "relation": "relation-name",
            "from": 4,
            "to": 10,
            "order": 0,
            "meta": []
        }
    },
    {
        "data": {
            "id": 2,
            "title": "",
            "relation": "relation-name",
            "from": 4,
            "to": 9,
            "order": 0,
            "meta": []
        }
    }
]

Then we can use given ids.

But it would be great to have an opportunity to request posts itselves mentioned like from or to ids.

@hokoo hokoo added enhancement New feature or request help wanted Extra attention is needed labels Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant