Skip to content

Instantly share code, notes, and snippets.

@mamund
Last active August 17, 2020 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mamund/75e599fd2ad88db643a4b8e0d5286f1f to your computer and use it in GitHub Desktop.
Save mamund/75e599fd2ad88db643a4b8e0d5286f1f to your computer and use it in GitHub Desktop.
API Design Example
<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">
<descriptor href="#accountId" />
<descriptor href="#preference" />
</descriptor>
<!-- structures -->
<descriptor id="preference" type="semantic">
<descriptor href="#idenfitier" />
<descriptor href="#value" />
<descriptor href="#name" />
</descriptor>
<!-- data -->
</alps>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment