- Supports the book browsing experience and cart management
- Scope: Public
Place the events on the proper line in the table
- Cart.ItemAdded
- Cart.ItemRemoved
Operation Name | Description | Participants | Resource(s) | Emitted Events | Operation Details | Traits |
---|---|---|---|---|---|---|
listBooks() | List books by category or release date | Customer, Call Center | Book | Books.Listed | Request Parameters: categoryId, releaseDate Returns: Books[] | read |
<html> | |
<head> | |
<title>Person</title> | |
<link rel="related" href="http://example.org/uber/person-uber.xml" /> | |
</head> | |
<body> | |
<dl> | |
<dt>NAME:</dt> | |
<dd>Mike Amundsen</dd> | |
<dt>PHOTO:</dt> |
Below is an updated workinging model for HAL-FORMS options
control. See notes below for details. Comments welcome.
{
"_templates" : {
"default" : {
...
"properties" : [
{
"name" : "...",
<alps version="1.0"> | |
<link rel="help" href="http://example.org/documentation/products.html" /> | |
<doc> | |
This is a prototype product API. | |
</doc> | |
<!-- transitions --> | |
<descriptor id="item" type="safe" rt="#product"> | |
<doc>Retrieve A Single Product</doc> | |
</descriptor> |
<alps> | |
<doc>Sample Service</doc> | |
<!-- properties --> | |
<descriptor id="identifier" def="https://schema.org/identifier" /> | |
<descriptor id="givenName" def="https://schema.org/givenName" /> | |
<descriptor id="familyName" def="https://schema.org/familyName" /> | |
<descriptor id="status" def="https://schema.org/status" /> | |
<descriptor id="dateCreated" def="https://schema.org/dateCreated" /> | |
<descriptor id="dateModified" def="https://schema.org/dateModified" /> |
<alps> | |
<doc>Simple Banking Example</doc> | |
<!-- actions --> | |
<descriptor id="getList" type="safe" /> | |
<descriptor id="getStatus" type="safe" /> | |
<descriptor id="updateStatus" type="idempotent"> | |
<descriptor href="#accountId" /> | |
<descriptor href="#actionStatus" /> | |
</descriptor> | |
<descriptor id="updatePreferences" type="idempotent"> |
/* | |
who does it better? | |
*/ | |
// this | |
{ | |
"rel" : "http://example.org/vocabularies/customer-communiations#customers/update-name-and-sms" | |
"href" : "http://example.org/customers/123" | |
"type" : "..." | |
} |