added base class for api handling

This commit is contained in:
Yeqing Zhang
2019-02-12 06:58:54 +08:00
parent 2610f76719
commit 04c5d69c9f
12 changed files with 136 additions and 117 deletions

0
test/__init__.py Normal file
View File

15
test/test.http Normal file
View File

@@ -0,0 +1,15 @@
# For a quick start check out our HTTP Requests collection (Tools|HTTP Client|Open HTTP Requests Collection).
#
# Following HTTP Request Live Templates are available:
# * 'gtrp' and 'gtr' create a GET request with or without query parameters;
# * 'ptr' and 'ptrp' create a POST request with a simple or parameter-like body;
# * 'mptr' and 'fptr' create a POST request to submit a form with a text or file field (multipart/form-data);
### Send POST request with json body
POST http://localhost:5000/api/test
Content-Type: application/json
{
"id": 999,
"value": "content"
}