API - configurations
The API for Apiviz configurations
CONFIGURATION COLLECTIONS AND DOCUMENTSPermalink
BASE URLsPermalink
Collection levelPermalink
curl 'http:/localhost:8100/backend/api/config/<string:collection>?<args>'
or
curl --header "Content-Type: application/json" \
--request POST \
--data '<payload>' \
'http:/localhost:8100/backend/api/config/<string:collection>?<args>'
- methods :
GET
,POST
- variables :
<string:collection>
: the name of the collection in the database
Document levelPermalink
curl 'http:/localhost:8100/backend/api/config/<string:collection>/<string:doc_id>?<args>'
or
curl --header "Content-Type: application/json" \
--request POST | DELETE \
--data '<payload>' \
'http:/localhost:8100/backend/api/config/<string:collection>/<string:doc_id>?<args>'
- methods :
GET
,POST
,DELETE
- variables
<string:collection>
: the name of the collection in the database<string:doc_id>
: the obejct ID (as string) of a document in a collection
GET METHODPermalink
argumentsPermalink
uuid
: your model’s uuidtoken
: your user’s acces tokenfield
: retrieve results corresponding to this field nameas_list
: retrieve results as a list of documents
examplesPermalink
curl `http://localhost:8100/backend/api/config/global?uuid=c5efafab-1733-4ad1-9eb8-d529bc87c481`
POST METHODPermalink
payload structurePermalink
argumentsPermalink
uuid
: your model’s uuidtoken
: your user’s acces tokenfield
: retrieve results corresponding to this field name
examplesPermalink
DELETE METHODPermalink
payload structurePermalink
argumentsPermalink
uuid
: your model’s uuidtoken
: your user’s acces token
examplesPermalink
ADD DOCUMENT TO A COLLECTIONPermalink
BASE URLsPermalink
curl --header "Content-Type: application/json" \
--request POST | DELETE \
--data '<payload>' \
'http:/localhost:8100/backend/api/add_document/<string:collection>'
- methods :
POST
,DELETE
- variables :
<string:collection>
: the model’s UUID (as string)