-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapi.http
57 lines (51 loc) · 1.5 KB
/
api.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
###---------------------------------------------
# txtai stuff
# index data
curl -XPOST "http://localhost:8000/workflow" \
-H "Content-Type: application/json" \
-d '{"name": "index",
"elements": [
"US tops 5 million confirmed virus cases",
"Canadas last fully intact ice shelf has suddenly collapsed, forming a Manhattan-sized iceberg",
"Beijing mobilises invasion craft along coast as Taiwan tensions escalate",
"The National Park Service warns against sacrificing slower friends in a bear attack",
"Maine man wins $1M from $25 lottery ticket",
"Make huge profits without work, earn up to $100,000 a day"
]
}'
###
# search data
curl -XPOST "http://localhost:8000/workflow" \
-H "Content-Type: application/json" \
-d '{"name": "search",
"elements": [
"feel good story"]
}'
###---------------------------------------------
# weaviate stuff
# get info about current Weaviate instance
GET http://localhost:8080/v1/meta
###
# check weaviate nodes' health
curl http://localhost:8080/v1/nodes
###
# get all objects in Weaviate
GET http://localhost:8080/v1/objects
###
# get Weaviate schema
GET http://localhost:8080/v1/schema
###
# get the content and vector representation of all Documents
POST http://localhost:8080/v1/graphql
X-Request-Type: GraphQL
Content-Type: application/json
query {
Get {
Post {
content
_additional {
vector
}
}
}
}