You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can direcly access the API via a browser to the provided url on the console upon running the application, usually:
17
-
18
-
http://127.0.0.1:8000
19
-
This will take you to the landing page. Here you will likely find that you are not authenticated, however you can still check if the API is responsive by accessing the /health endpoint
20
-
21
-
http://127.0.0.1:8000/health
22
-
It will be easier to interact with the application via the provided documentation endpoint
23
-
24
-
http://127.0.0.1:8000/docs
25
-
26
-
## Security
27
-
By default, the API requires an API-key to be used with every request to most endpoints, this key is defined on:
On the /docs endpoint after inserting the api key you may see the following information about the API server
36
-
37
-
on endpoint:
38
-
39
-
- / - A list of all the annotators hosted on this server, in this example you will find only "DummyNLPAnnotator" on each annotator you will find its annotation capabilities as well as the kind of annotator it is (NLPAnnotator) which in turn tells you how to make requests to the annotator
40
-
- /model/{model_name} - You will find the annotation capabilities for the given annotator as well as it's kind.
41
-
- /model/{model_name}/predict - You can make POST requests to have the model annotate your data, refer to [Sample Requests](#Sample-Requests)
You can direcly access the API via a browser to the provided url on the console upon running the application, usually:
17
-
18
-
http://127.0.0.1:8000
19
-
This will take you to the landing page. Here you will likely find that you are not authenticated, however you can still check if the API is responsive by accessing the /health endpoint
20
-
21
-
http://127.0.0.1:8000/health
22
-
It will be easier to interact with the application via the provided documentation endpoint
23
-
24
-
http://127.0.0.1:8000/docs
25
-
26
-
## Security
27
-
By default, the API requires an API-key to be used with every request to most endpoints, this key is defined on:
On the /docs endpoint after inserting the api key you may see the following information about the API server
36
-
37
-
on endpoint:
38
-
39
-
- / - A list of all the annotators hosted on this server, in this example you will find only "DummyQAGenerator" on each annotator you will find its annotation capabilities as well as the kind of annotator it is (QAGenModel) which in turn tells you how to make requests to the annotator
40
-
- /model/{model_name} - You will find the annotation capabilities for the given annotator as well as it's kind.
41
-
- /model/{model_name}/predict - You can make POST requests to have the model generate your data, refer to [Sample Requests](#Sample-Requests)
0 commit comments