json-api-vanilla icon indicating copy to clipboard operation
json-api-vanilla copied to clipboard

Create a links object on each resource

Open thed000d opened this issue 6 years ago • 2 comments

Add the ability to access resource links through doc.data[0].links in addition to doc.links[doc.data[0]]. This also makes links work when data is a single resource instead of an array.

thed000d avatar Aug 01 '19 18:08 thed000d

Neat! Can you add documentation for it in the README please?

espadrine avatar Dec 18 '19 23:12 espadrine

Added!

On Wed, Dec 18, 2019 at 4:31 PM Thaddée Tyl [email protected] wrote:

Neat! Can you add documentation for it in the README please?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/trainline/json-api-vanilla/pull/6?email_source=notifications&email_token=AAI2ID7LFP74IXVOTIUEUTLQZKXEZA5CNFSM4IITK4TKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHH3BPA#issuecomment-567259324, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI2IDYQUIJUSUJ6ZCKGNCTQZKXEZANCNFSM4IITK4TA .

thed000d avatar Dec 19 '19 15:12 thed000d