UNPKG

occasion-sdk

Version:

An SDK library that enables access to Occasion's application, providing a rich DSL for creating and managing bookings.

109 lines (108 loc) 2.28 kB
{ "data": { "id": "1", "type": "orders", "attributes": { "price": 3.0 }, "relationships": { "order_items": { "data": [ { "id": 1, "type": "order_items" }, { "id": 2, "type": "order_items" } ], "links": { "self": "https://example.com/api/v1/orders/1/relationships/order_items/", "related": "https://example.com/api/v1/orders/1/order_items/" } }, "comments": { "data": [ { "id": 1, "type": "comments" }, { "id": 2, "type": "comments" } ], "links": { "self": "https://example.com/api/v1/orders/1/relationships/comments/", "related": "https://example.com/api/v1/orders/1/comments/" } }, "gift_card": { "data": { "id": 1, "type": "gift_cards" }, "links": { "self": "https://example.com/api/v1/orders/1/relationships/gift_card/", "related": "https://example.com/api/v1/orders/1/gift_card/" } } }, "links": { "self": "https://example.com/api/v1/orders/1/" } }, "included": [ { "id": 1, "type": "order_items", "attributes": { "amount": 1.0 }, "links": { "self": "https://example.com/api/v1/order_items/1/" } }, { "id": 2, "type": "order_items", "attributes": { "amount": 2.0 }, "links": { "self": "https://example.com/api/v1/order_items/2/" } }, { "id": 1, "type": "comments", "attributes": { "body": "Comment 1" }, "links": { "self": "https://example.com/api/v1/comments/1/" } }, { "id": 2, "type": "comments", "attributes": { "body": "Comment 2" }, "links": { "self": "https://example.com/api/v1/comments/2/" } }, { "id": 1, "type": "gift_cards", "attributes": { "value": 5 }, "links": { "self": "https://example.com/api/v1/gift_cards/1/" } } ] }