|
a |
|
b/docs/api-reference/introduction.mdx |
|
|
1 |
--- |
|
|
2 |
title: 'Introduction' |
|
|
3 |
description: 'API Endpoints' |
|
|
4 |
--- |
|
|
5 |
|
|
|
6 |
|
|
|
7 |
<Card |
|
|
8 |
title="AItrika Endpoints" |
|
|
9 |
icon="notes-medical" |
|
|
10 |
href="https://github.com/dSupertramp/AItrika/blob/main/docs/api-reference/openapi.json" |
|
|
11 |
> |
|
|
12 |
View the OpenAPI specification file |
|
|
13 |
</Card> |
|
|
14 |
|
|
|
15 |
## Body |
|
|
16 |
|
|
|
17 |
All API endpoints requires a PubMed ID. |
|
|
18 |
|
|
|
19 |
```json |
|
|
20 |
{ |
|
|
21 |
"pubmed_id": 23747889, |
|
|
22 |
} |
|
|
23 |
``` |
|
|
24 |
To query the document, pass the query: |
|
|
25 |
```json |
|
|
26 |
{ |
|
|
27 |
"pubmed_id": 23747889, |
|
|
28 |
"query": "Can you tell me more about this paper?" |
|
|
29 |
} |
|
|
30 |
``` |
|
|
31 |
|