From c938d61f9b36b64fa697eb7cd355ae9200f03d7e Mon Sep 17 00:00:00 2001 From: Chunlin Zhang Date: Thu, 5 Sep 2019 18:17:53 +0800 Subject: [PATCH 1/4] use menu to display example lists now --- demo/apps/apijson_demo/templates/index.html | 149 +++++++++++++------- 1 file changed, 98 insertions(+), 51 deletions(-) diff --git a/demo/apps/apijson_demo/templates/index.html b/demo/apps/apijson_demo/templates/index.html index 2c582e7..2925a1d 100644 --- a/demo/apps/apijson_demo/templates/index.html +++ b/demo/apps/apijson_demo/templates/index.html @@ -23,9 +23,48 @@ + + + + + + 📋 {item.label} + + + + + + + 📋 {item.label} + + + + + + + 📋 {item.label} + + + + + + + 📋 {item.label} + + + + + + + 📋 {item.label} + + + + +
login user
- + {{if request.user:}}
Logout
{{else:}} @@ -33,79 +72,61 @@ {{pass}}
-
HTTP POST URL
- +
HTTP POST URL
+
-
apijson get request {request_get.length} examples
- - - {index+1}. {item.label} - - +
example name
+
HTTP HEAD URL
- +
-
apijson head request {request_head.length} examples
- - - {index+1}. {item.label} - - +
example name
+
-
POST URL
- +
POST URL
+
-
apijson post request {request_post.length} examples
- - - {index+1}. {item.label} - - +
example name
+
PUT URL
- +
-
apijson put request {request_put.length} examples
- - - {index+1}. {item.label} - - +
example name
+
DELETE URL
- +
-
apijson delete request {request_delete.length} examples
- - - {index+1}. {item.label} - - +
example name
+
request data
- +
Post
response data
- +
+
+