HAL Model
HAL Specification: draft-kelly-json-hal-07
Data Structures
HAL Resource Base (object)
Abstract base object. Not to be used directly. See HAL Resource
.
HAL Resource (HAL Resource Base)
HAL Specification: Resource Object
Properties
-
_links
- relation (Link)
- curies (array[CURIE], optional)
-
_embedded
- relation (Embedded)
Embedded (enum)
HAL Specification: _embedded
property value
The value is either a descendant of HAL Resource Base
or an array of its descendats.
Members
- (HAL Resource Base)
- (array[HAL Resource Base])
Link (object)
HAL Specification: Link Object
Properties
- href (string, required)
- templated (boolean, optional)
- type (string, optional)
- deprecation (string, optional)
- name (string, optional)
- profile (string, optional)
- title (string, optional)
- hreflang (string, optional)
CURIE (Link)
HAL Specification: Link relations
Properties
- name (string, required)
- templated: true (string, required, fixed)
List of Orders (HAL Resource)
HAL Specification: Example Document
Properties
-
_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)
Order (HAL Resource)
-
_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