Skip to content

Instantly share code, notes, and snippets.

@mamund
Last active August 17, 2020 21:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mamund/fa8ca197d3a501a79205c90b98df100a to your computer and use it in GitHub Desktop.
Save mamund/fa8ca197d3a501a79205c90b98df100a to your computer and use it in GitHub Desktop.
ALPS document w/ various examples of the `def` element
<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" />
<!-- actions -->
<descriptor id="collection" type="safe" rt="#record"
def="https://tools.ietf.org/html/rfc6573#section-2.2" />
<descriptor id="item" type="safe" rt="#record"
def="https://tools.ietf.org/html/rfc6573#section-2.1" />
<descriptor id="search" type="safe" rt="#record"
def="https://www.iana.org/assignments/link-relations/link-relations.xhtml" />
<descriptor id="create-form" type="unsafe" rt="#record"
def="https://tools.ietf.org/html/rfc6861#section-3.1" />
<descriptor id="edit-form" type="idempotent" rt="#record"
def="https://tools.ietf.org/html/rfc6861#section-3.2" />
<descriptor id="remove" type="idempotent" rt="#record"
def="http://rels.amundsen.com/remove" />
<!-- containers -->
<descriptor id="record">
<descriptor href="#identifier" />
<descriptor href="#givenName" />
<descriptor href="#familyName" />
<descriptor href="#status" />
<descriptor href="#dateCreated" />
<descriptor href="#dateModified" />
</descriptor>
</alps>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment