You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+8-1
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,7 @@ VAmPI is a vulnerable API made with Flask and it includes vulnerabilities from t
13
13
- OpenAPI3 specs and Postman Collection included.
14
14
- Global switch on/off to have a vulnerable environment or not.
15
15
- Token-Based Authentication (Adjust lifetime from within app.py)
16
+
- Available Swagger UI to directly interact with the API
16
17
17
18
VAmPI's flow of actions is going like this: an unregistered user can see minimal information about the dummy users included in the API. A user can register and then login to be allowed using the token received during login to post a book. For a book posted the data accepted are the title and a secret about that book. Each book is unique for every user and only the owner of the book should be allowed to view the secret.
18
19
@@ -34,7 +35,7 @@ A quick rundown of the actions included can be seen in the following table:
34
35
| POST | /books/v1 | Add new book |
35
36
| GET | /books/v1/{book} | Retrieves book by title along with secret |
36
37
37
-
For more details you can use a service like the [swagger editor](https://editor.swagger.io) supplying it the OpenAPI specification which can be found in the directory `openapi_specs`.
38
+
For more details you can either run VAmPI and visit `http://127.0.0.1:5000/ui/` or use a service like the [swagger editor](https://editor.swagger.io) supplying the OpenAPI specification which can be found in the directory `openapi_specs`.
38
39
39
40
40
41
#### List of Vulnerabilities
@@ -70,6 +71,12 @@ docker run -p 5000:5000 erev0s/vampi:latest
70
71
docker-compose up -d
71
72
~~~~
72
73
74
+
## Available Swagger UI :rocket:
75
+
Visit the path `/ui` where you are running the API and a Swagger UI will be available to help you get started!
76
+
~~~~
77
+
http://127.0.0.1:5000/ui/
78
+
~~~~
79
+
73
80
## Customizing token timeout and vulnerable environment or not
74
81
If you would like to alter the timeout of the token created after login or if you want to change the environment **not** to be vulnerable then you can use a few ways depending how you run the application.
0 commit comments