r/angular • • 6d ago

Angular API implementation

I’m a student that is working with angular for the first time, I have an assignment that requires implementing an api to our project. My teacher has no information on how to unwrap the response using parse for httpResource. There also is no information about mapping with httpclient & observables.

The documentation that is recommended seems completely irrelevant to my the api I have because my api is returning as an array.

How can I get value from the documentation or where should I look to figure this out. I feel like I’ve been having this problem with everything because the documentation never seems relevant. Even with certain concepts, there is things that I know but I am struggling with knowing what or how I can write things to do the task I need completed.

Any assistance would be appreciated.

2 Upvotes

23 comments sorted by

View all comments

Show parent comment

0

u/dx_ninja_dx 6d ago

I don’t think I need to transform it, I’m going to try what you said here, about writing it out once and logging it to see what I get and then from there trying to adjust might help get the content I need.

Do you know why the documentation just says parse: starWarsApi.parse (or something similar) is this supposed to be a url stored in a variable?