Skip to content

Instantly share code, notes, and snippets.

@woogists
Created March 19, 2019 22:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save woogists/75b8b462855fe8c981d543b028815bd7 to your computer and use it in GitHub Desktop.
Save woogists/75b8b462855fe8c981d543b028815bd7 to your computer and use it in GitHub Desktop.
Bookings REST API Resources JSON Response
[
{
"id": 145546,
"availability": [],
"base_cost": 0,
"block_cost": 0,
"name": "The Vault",
"parent_id": 0,
"qty": "5",
"sort_order": 0,
"_links": {
"self": [
{
"href": "https://yoursite.test/wp-json/wc-bookings/v1/resources/145546"
}
],
"collection": [
{
"href": "https://yoursite.test/wp-json/wc-bookings/v1/resources"
}
]
}
},
{
"id": 121229,
"availability": [],
"base_cost": 0,
"block_cost": 0,
"name": "Paradise Escape",
"parent_id": 0,
"qty": "5",
"sort_order": 0,
"_links": {
"self": [
{
"href": "https://yoursite.test/wp-json/wc-bookings/v1/resources/121229"
}
],
"collection": [
{
"href": "https://yoursite.test/wp-json/wc-bookings/v1/resources"
}
]
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment