HAL Specification: draft-kelly-json-hal-07
Abstract base object. Not to be used directly. See HAL Resource
.
HAL Specification: Resource Object
-
_links
- relation (Link)
- curies (array[CURIE], optional)
-
_embedded
- relation (Embedded)
HAL Specification: _embedded
property value
The value is either a descendant of HAL Resource Base
or an array of its descendats.
- (HAL Resource Base)
- (array[HAL Resource Base])
HAL Specification: Link Object
- href (string, required)
- templated (boolean, optional)
- type (string, optional)
- deprecation (string, optional)
- name (string, optional)
- profile (string, optional)
- title (string, optional)
- hreflang (string, optional)
HAL Specification: Link relations
- name (string, required)
- templated: true (string, required, fixed)
HAL Specification: Example Document
-
_links
- self (Link)
- href: /orders
- next (Link)
- href: /orders?page=2
- find (Link)
- href: /orders{?id}
- templated: true
- self (Link)
-
_embedded
- orders (array[Order])
-
currentlyProcessing: 14 (number)
-
shippedToday: 20 (number)
-
_links
- self (Link)
- href: /orders/123
- basket (Link)
- href: /baskets/98712
- customer (Link)
- href: /customers/7809
- self (Link)
-
total (number)
- Sample: 30
- Sample: 20
-
currency: USD (string)
-
status (enum)
- processing
- shipped