-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.http
More file actions
37 lines (27 loc) · 702 Bytes
/
Copy pathindex.http
File metadata and controls
37 lines (27 loc) · 702 Bytes
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
### get book
GET http://localhost:8080/book/book-1
### get author
GET http://localhost:8080/author/author-1
### RSocket request
RSOCKET findBook
Host: ws://localhost:8080/rsocket
Content-Type: application/json
"book-1"
### GraphQL over HTTP
GRAPHQL http://localhost:8080/graphql
Content-Type: application/graphql
query findBook {
findBook(id: "book-1") { id name }
}
### GraphQL over WebSocket
GRAPHQL ws://localhost:8080/graphql
Content-Type: application/graphql
query findBook{
findBook(id: "book-1") { id name }
}
### GraphQL over RSocket
GRAPHQL rsocketws://localhost:8080/rsocket/graphql
Content-Type: application/graphql
query findBook{
findBook(id: "book-1") { id name }
}