-
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.
✨ feat(docker logs, bruno, swagger): fixed docker logs duplicated lin…
…es bug, added bruno files, added basic swagger functionality
- Loading branch information
Showing
11 changed files
with
128 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,7 @@ Archive/backup/* | |
log.txt | ||
*/json | ||
docker-fullstack | ||
|
||
# Bruno | ||
environments/ | ||
!bruno.json |
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 |
---|---|---|
|
@@ -39,3 +39,4 @@ urllib3==2.2.2 | |
waitress==3.0.1 | ||
Werkzeug==3.0.4 | ||
yarl==1.9.4 | ||
flask_swagger_ui==4.11.1 |
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
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
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,22 @@ | ||
meta { | ||
name: api | ||
type: http | ||
seq: 1 | ||
} | ||
|
||
get { | ||
url: {{url}}/api/ | ||
body: none | ||
auth: bearer | ||
} | ||
|
||
auth:bearer { | ||
token: {{token}} | ||
} | ||
|
||
tests { | ||
test("Return 200", function() { | ||
const data = res.getBody(); | ||
expect(res.getStatus()).to.equal(200); | ||
}); | ||
} |
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,9 @@ | ||
{ | ||
"version": "1", | ||
"name": "DSBMobile Backend", | ||
"type": "collection", | ||
"ignore": [ | ||
"node_modules", | ||
".git" | ||
] | ||
} |
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,18 @@ | ||
meta { | ||
name: healthcheck | ||
type: http | ||
seq: 2 | ||
} | ||
|
||
get { | ||
url: {{url}}/api/healthcheck | ||
body: none | ||
auth: none | ||
} | ||
|
||
tests { | ||
test("Return 200", function() { | ||
const data = res.getBody(); | ||
expect(res.getStatus()).to.equal(200); | ||
}); | ||
} |
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,28 @@ | ||
meta { | ||
name: login | ||
type: http | ||
seq: 3 | ||
} | ||
|
||
post { | ||
url: {{url}}/login | ||
body: formUrlEncoded | ||
auth: none | ||
} | ||
|
||
body:form-urlencoded { | ||
username: {{username}} | ||
password: {{password}} | ||
} | ||
|
||
script:post-response { | ||
let data = res.body ; | ||
bru.setEnvVar("token",data.access_token); | ||
} | ||
|
||
tests { | ||
test("Return 200", function() { | ||
const data = res.getBody(); | ||
expect(res.getStatus()).to.equal(200); | ||
}); | ||
} |