Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lama-template/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
build
.env
.vscode
57 changes: 57 additions & 0 deletions lama-template/.rest
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
POST http://localhost:3003/user/signup
Content-Type: application/json

{
"name": "Luna Liz",
"email": "lliz@lbn.com",
"password": "123456gh",
"role":"ADMIN"
}

###
# @name login
POST http://localhost:3003/user/login
Content-Type: application/json

{
"email": "lliz@lbn.com",
"password": "123456gh"
}


###


POST http://localhost:3003/band/create
Content-Type: application/json
Authorization: {{login.response.body.token}}

{
"name": "Overall Lama",
"musicGenre": "Eletrobrega",
"responsible":"Luna Liz"
}



###
GET http://localhost:3003/band/bandDatails?name=Overall Lama
Authorization: {{login.response.body.token}}

###

POST http://localhost:3003/show/create
Content-Type: application/json
Authorization: {{login.response.body.token}}

{
"bandId": "3dd9230c-3a1e-4aab-a207-dd1888217b7d",
"weekDay": "SUNDAY",
"startTime": 21,
"endTime":22
}

###

GET http://localhost:3003/show/getShowWeek?weekDay=SUNDAY
Authorization: {{login.response.body.token}}
8 changes: 8 additions & 0 deletions lama-template/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
roots: ["<rootDir>/tests"],
transform: {
"^.+\\.tsx?$": "ts-jest",
},
testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$",
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
};
Loading