UNPKG

occasion-sdk

Version:

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

76 lines (75 loc) 1.71 kB
{ "data": [ { "id": "1", "type": "products", "attributes": { "title": "A product title", "description": "A product description", "requires_time_slot_selection": true }, "relationships": { "orders": { "data": [ { "id": 1, "type": "orders" } ], "links": { "self": "https://example.com/api/v1/products/1/relationships/orders/", "related": "https://example.com/api/v1/products/1/orders/" } } }, "links": { "self": "https://example.com/api/v1/products/1/" } }, { "id": "2", "type": "products", "attributes": { "title": "Another product title", "description": "Another product description" }, "relationships": { "orders": { "data": [ { "id": 2, "type": "orders" } ], "links": { "self": "https://example.com/api/v1/products/2/relationships/orders/", "related": "https://example.com/api/v1/products/2/orders/" } } }, "links": { "self": "https://example.com/api/v1/products/2/" } } ], "included": [ { "id": 1, "type": "orders", "attributes": { "price": 1.0 } }, { "id": 2, "type": "orders", "attributes": { "price": 2.0 } } ], "links": { "prev": "https://example.com/api/v1/products?page[number]=1&page[size]=2", "next": "https://example.com/api/v1/products?page[number]=3&page[size]=2" } }