mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
added base class for api handling
This commit is contained in:
0
test/__init__.py
Normal file
0
test/__init__.py
Normal file
15
test/test.http
Normal file
15
test/test.http
Normal 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"
|
||||
}
|
||||
Reference in New Issue
Block a user