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

Automatically retrieve links in an object property #32

Closed
morious opened this issue Oct 13, 2016 · 1 comment
Closed

Automatically retrieve links in an object property #32

morious opened this issue Oct 13, 2016 · 1 comment
Assignees
Labels
Milestone

Comments

@morious
Copy link

morious commented Oct 13, 2016

Is there a way to automatically retrieve links in a payload that looks like the below?

personprojectsesByPersonid: [ ],
personskillsesByPersonid: [
    {
        _links: {
            skillsBySkillid: {
                href: "http://localhost:8985/api/skills/1"
            },
            personByPersonid: {
                href: "http://localhost:8985/api/people/4"
            }
        }
    },
    {
        _links: {
            skillsBySkillid: {
                href: "http://localhost:8985/api/skills/2"
            },
            personByPersonid: {
                href: "http://localhost:8985/api/people/4"
            }
        }
    }
],
@guylabs guylabs added this to the 0.4.5 milestone Oct 15, 2016
@guylabs guylabs self-assigned this Oct 15, 2016
@guylabs
Copy link
Owner

guylabs commented Oct 15, 2016

Hi @morious

well it would be possible if you change the implementation but out of the box it is not possible to parse this kind of response. The module was created for a Spring Data REST back end. You can configure it with these properties https://github.com/guylabs/angular-spring-data-rest#configuration-of-the-springdatarestadapter but this is all what you can configure.

If possible you can change the response to fit the format or create a fork which works with this response.

Thanks and regards,

Guy

@guylabs guylabs closed this as completed Oct 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants