Skip to content

Instantly share code, notes, and snippets.

@mamund
Last active August 29, 2015 14:16
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/9cc1268c5b2054542a41 to your computer and use it in GitHub Desktop.
Save mamund/9cc1268c5b2054542a41 to your computer and use it in GitHub Desktop.
Suggested ALPS document for MVCTodo
{
"alps" : {
"version" : "1.0",
"doc" : { "value" : "A suggested ALPS profile for the popular MVCTodo project"},
"link" : {"rel" : "help", "href" : "https://github.com/tastejs/todomvc/blob/master/app-spec.md"},
"descriptor" : [
{"id" : "id", "type" : "semantic"},
{"id" : "title", "type" : "semantic"},
{"id" : "completed", "type" : "semantic"},
{"id" : "listAll", "type" : "safe"},
{"id" : "listActive", "type" : "safe"},
{"id" : "listCompleted", "type" : "safe"},
{"id" : "add", "type" : "unsafe"},
{"id" : "edit", "type" : "idempotent"},
{"id" : "remove", "type" : "idempotent"},
{"id" : "markCompleted", "type" : "idempotent"},
{"id" : "clearCompleted", "type" : "idempotent"}
]
}
}
<alps version="1.0">
<doc>A suggested ALPS profile for the popular MVCTodo project</doc>
<link rel="help" href="https://github.com/tastejs/todomvc/blob/master/app-spec.md" />
<!-- data elements -->
<descriptor id="id" type="semantic" />
<descriptor id="title" type="semantic" />
<descriptor id="completed" type="semantic" />
<!-- action elements -->
<descriptor id="listAll" type="safe" />
<descriptor id="listActive" type="safe" />
<descriptor id="listCompleted" type="safe" />
<descriptor id="add" type="unsafe" />
<descriptor id="edit" type="idempotent" />
<descriptor id="remove" type="idempotent" />
<descriptor id="markCompleted" type="idempotent" />
<descriptor id="clearCompleted" type="idempotent" />
</alps>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment