From eb01bbde409ac1b762161747699cf1eeb315593a Mon Sep 17 00:00:00 2001
From: Andreas Granig
Date: Sat, 30 Nov 2013 20:44:27 +0100
Subject: [PATCH] MT#3925 Show API item properties from json via JS
In the root/ document, show the resource properties in a list using
jquery, instead of including the whole json as text.
---
share/templates/api/root/rel-contacts.tt | 41 ++++++++++++++++++++----
1 file changed, 35 insertions(+), 6 deletions(-)
diff --git a/share/templates/api/root/rel-contacts.tt b/share/templates/api/root/rel-contacts.tt
index 353fbb7df7..538777229f 100644
--- a/share/templates/api/root/rel-contacts.tt
+++ b/share/templates/api/root/rel-contacts.tt
@@ -18,14 +18,38 @@ For customer contacts, the item MUST link to a reseller
Properties
-
-[% INSERT 'js/api/properties/contacts-item.json' -%]
-
+
+
Relation Links
-
-[% INSERT 'js/api/links/contacts-item.json' -%]
-
+
+
If the contact is going to be used for identifying a reseller or peering (that is, when you create an contracts item), you MUST NOT set the ngcp:resellers relation.
@@ -158,6 +182,11 @@ Link: </api/resellers/?id=2>; rel="http://example.com/#rel-contacts"
-%]
+Request a specific contacts item
+
+TODO
+
+
Create a new contacts entry
[%