From 1449f9b198c783c77dfa09b0b316f9f8df77289a Mon Sep 17 00:00:00 2001 From: erev0s Date: Sat, 27 Apr 2024 13:05:16 +0300 Subject: [PATCH] update specs and readme --- README.md | 2 +- openapi_specs/openapi3.yml | 18 ++++++++---------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index e61eb9fc..fbd3cb4c 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ If you would like to alter the timeout of the token created after login or if yo - If you run it like normal with `python3 app.py` then all you have to do is edit the `alive` and `vuln` variables defined in the `app.py` itself. The `alive` variable is measured in seconds, so if you put `100`, then the token expires after 100 seconds. The `vuln` variable is like boolean, if you set it to `1` then the application is vulnerable, and if you set it to `0` the application is not vulnerable. - If you run it through Docker, then you must either pass environment variables to the `docker run` command or edit the `Dockerfile` and rebuild. - - Docker run example: `docker run -d -e vulnerable=0 -e tokentimetolive=300 -p 5000:5000 vampire_docker:latest` + - Docker run example: `docker run -d -e vulnerable=0 -e tokentimetolive=300 -p 5000:5000 erev0s/vampi:latest` - One nice feature to running it this way is you can startup a 2nd container with `vulnerable=1` on a different port and flip easily between the two. - In the Dockerfile you will find two environment variables being set, the `ENV vulnerable=1` and the `ENV tokentimetolive=60`. Feel free to change it before running the docker build command. diff --git a/openapi_specs/openapi3.yml b/openapi_specs/openapi3.yml index fbaa573a..09399092 100644 --- a/openapi_specs/openapi3.yml +++ b/openapi_specs/openapi3.yml @@ -227,16 +227,14 @@ paths: content: application/json: schema: - type: array - items: - type: object - properties: - username: - type: string - example: 'John.Doe' - email: - type: string - example: 'user@tempmail.com' + type: object + properties: + username: + type: string + example: 'John.Doe' + email: + type: string + example: 'user@tempmail.com' '404': description: User not found content: