-
-
Save graste/86eec942cba8076df61ae1c0ed847fe5 to your computer and use it in GitHub Desktop.
ALPS document w/ various examples of the `def` element
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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