Skip to content

Commit

Permalink
Merge pull request #375 from AikidoSec/extend-api-schema
Browse files Browse the repository at this point in the history
Add query and auth to api route
  • Loading branch information
hansott authored Sep 17, 2024
2 parents bdda5cc + e85cd96 commit 5379603
Show file tree
Hide file tree
Showing 15 changed files with 751 additions and 189 deletions.
30 changes: 17 additions & 13 deletions library/agent/Agent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -684,41 +684,45 @@ t.test("it sends hostnames and routes along with heartbeat", async () => {
path: "/posts/:id",
hits: 2,
graphql: undefined,
body: undefined,
apispec: {},
},
{
method: "GET",
path: "/posts/:id",
hits: 1,
graphql: undefined,
body: undefined,
apispec: {},
},
{
method: "GET",
path: "/",
hits: 1,
graphql: undefined,
body: undefined,
apispec: {},
},
{
method: "POST",
path: "/publish",
hits: 1,
graphql: undefined,
body: {
type: "json",
schema: {
type: "object",
properties: {
a: { type: "number" },
b: {
type: "array",
items: {
type: "string",
apispec: {
body: {
type: "json",
schema: {
type: "object",
properties: {
a: { type: "number" },
b: {
type: "array",
items: {
type: "string",
},
},
},
},
},
query: undefined,
auth: undefined,
},
},
],
Expand Down
Loading

0 comments on commit 5379603

Please sign in to comment.