Skip to content

Commit

Permalink
Add API call example
Browse files Browse the repository at this point in the history
  • Loading branch information
shlee322 committed Sep 21, 2024
1 parent de3dac4 commit 52ded3e
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"humao.rest-client"
]
}
44 changes: 44 additions & 0 deletions examples/examples.http
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// This file is written in the VS Code REST Client extension format.
// For more detailed examples, please refer to https://tracker.delivery/docs/try

## Try Tracking API
POST http://127.0.0.1:4000/graphql
Content-Type: application/json
X-REQUEST-TYPE: GraphQL

query Track(
$carrierId: ID!,
$trackingNumber: String!
) {
track(
carrierId: $carrierId,
trackingNumber: $trackingNumber
) {
lastEvent {
time
status {
code
name
}
description
}
events(last: 10) {
edges {
node {
time
status {
code
name
}
description
}
}
}
}
}

{
"carrierId": "kr.cjlogistics",
"trackingNumber": "1234567890"
}

0 comments on commit 52ded3e

Please # to comment.