Skip to content

Commit

Permalink
example hal file
Browse files Browse the repository at this point in the history
  • Loading branch information
osvaldopina authored Sep 23, 2019
1 parent 84687a8 commit 56e0fa6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions hal-form-example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"_links" : {
"self" : {
"href" : "http://api.example.org/rels/create"
}
},
"_templates" : {
"default" : {
"title" : "Create",
"method" : "post",
"contentType" : "application/json",
"properties" : [
{"name" : "title", "required" : true, "value" : "", "prompt" : "Title", "regex" : "", "templated" : false},
{"name" : "completed", "required" : false, "value" : "false", "prompt" : "Completed", "regex" : ""}
]
}
}
}

0 comments on commit 56e0fa6

Please sign in to comment.