From 56e0fa679032f9bddb848b1f0ab04c1eba58cef3 Mon Sep 17 00:00:00 2001 From: Osvaldo Pina Date: Mon, 23 Sep 2019 12:05:14 -0300 Subject: [PATCH] example hal file --- hal-form-example.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 hal-form-example.json diff --git a/hal-form-example.json b/hal-form-example.json new file mode 100644 index 0000000..7a21597 --- /dev/null +++ b/hal-form-example.json @@ -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" : ""} + ] + } + } +}