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
20 changes: 20 additions & 0 deletions semana18/aula 52/classes-template/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "pwa-node",
"request": "launch",
"name": "Launch Program",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/build/index.js",
"outFiles": [
"${workspaceFolder}/**/*.js"
]
}
]
}
23 changes: 23 additions & 0 deletions semana18/aula 52/classes-template/queries.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
-- Queries executadas pelo workbench

CREATE TABLE `character` (
id INT PRIMARY KEY AUTO_INCREMENT,
name VARCHAR(255) NOT NULL,
gender ENUM ("MALE", "FEMALE", "OTHER"),
description VARCHAR(255) DEFAULT "No description provided"
);


INSERT INTO `character` (name, gender)
VALUES
("Storm", "FEMALE"),
("Colossus","MALE");


INSERT INTO `character` (name, gender, description)
VALUES
("Deadpool", "OTHER", "Sexy motherf***");



SELECT * FROM `character`;
16 changes: 16 additions & 0 deletions semana18/aula 52/classes-template/requests.rest
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
GET http://localhost:3003/character?name=o&page=2

###

PUT http://localhost:3003/character
Content-Type: application/json

{
"name":"Juggernaut",
"gender":"MALE",
"description":"O irmão do Prof X!!!!"
}

###

DELETE http://localhost:3003/character/3
Loading