forked from wapiti-scanner/wapiti
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove exit on swagger errros, add test case
Signed-off-by: bretfourbe <[email protected]>
- Loading branch information
1 parent
f902951
commit 3e154c8
Showing
4 changed files
with
136 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
info: | ||
description: Vulnerable API | ||
title: Vulnerable API | ||
version: '0.1' | ||
openapi: 3.0.1 | ||
paths: | ||
/: | ||
get: | ||
description: Description | ||
operationId: get_description | ||
responses: | ||
'200': | ||
content: | ||
text/html: | ||
schema: | ||
type: string | ||
description: HTML content generated successfully | ||
summary: Generate HTML content | ||
x-openapi-router-controller: vAPI | ||
/eval: | ||
get: | ||
description: Evaluate a string | ||
operationId: evaluate_str | ||
parameters: | ||
- example: THISISATOKEN | ||
in: header | ||
name: X-Auth-Token | ||
schema: | ||
type: string | ||
- in: query | ||
name: s | ||
schema: | ||
type: string | ||
responses: | ||
'200': | ||
content: | ||
application/json: | ||
schema: | ||
type: string | ||
description: Successful command | ||
x-openapi-router-controller: vAPI | ||
/help: | ||
get: | ||
description: Description | ||
operationId: get_help | ||
responses: | ||
'200': | ||
content: | ||
text/html: | ||
schema: | ||
type: string | ||
description: HTML content generated successfully | ||
summary: Generate HTML help content | ||
x-openapi-router-controller: vAPI | ||
servers: | ||
- url: '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters