This file contains hidden or 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
package br.edu.ifpr.ordemservicoapi.models; | |
import jakarta.persistence.*; | |
import java.time.LocalDate; | |
import java.util.List; | |
public class OrdemServico { | |
private Long id; |
This file contains hidden or 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
public class Cliente { | |
private Long id; | |
private String nome; | |
private String email; | |
private String telefone; | |
This file contains hidden or 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
public class Comentario { | |
private Long id; | |
private String descricao; | |
private LocalDate dataEnvio; | |
} |
This file contains hidden or 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
spring.application.name=ordem-servico-api | |
#database configuration | |
spring.datasource.url = jdbc:mysql://localhost:3306/ordem-servico-api?createDatabaseIfNotExist=true | |
spring.datasource.username = root | |
spring.datasource.password = bancodedados | |
spring.jpa.hibernate.ddl-auto = update | |
#exibir consultas realizadas |
This file contains hidden or 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
# Example configuration.yaml entry | |
mqtt: | |
sensor: | |
- name: "Nova Temperatura" | |
state_topic: "ifpr/sala/temperatura" | |
unique_id: ifpr_sala_temperatura | |
unit_of_measurement: "°C" | |
qos: 0 | |
- name: "Nova Temperatura 2" |
This file contains hidden or 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
CREATE TABLE cidades ( | |
id INT PRIMARY KEY, | |
nome VARCHAR(100), | |
estado VARCHAR(50) | |
); | |
CREATE TABLE atrativos ( | |
id INT PRIMARY KEY, | |
nome VARCHAR(200), | |
tipo VARCHAR(50), |
This file contains hidden or 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
@import url('https://fonts.googleapis.com/css2?family=Catamaran:[email protected]&display=swap'); | |
/* Reset CSS */ | |
*{ | |
margin: 0; | |
padding: 0; | |
} |
This file contains hidden or 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
<?php | |
$usuario = "root"; | |
$senha = "bancodedados"; | |
$url_conexao = "mysql:host=localhost;dbname=db_contatos"; | |
$conexao = new PDO($url_conexao, $usuario, $senha); | |
$conexao->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); | |
try { |
This file contains hidden or 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
/* Unidades Absolutas */ | |
div { | |
width: 300px; | |
height: 2cm; | |
} | |
/* Unidades Relativas */ | |
p { | |
font-size: 1.5em; | |
margin: 10%; |
This file contains hidden or 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
{"count":1292,"next":null,"previous":null,"results":[{"name":"bulbasaur","url":"https://pokeapi.co/api/v2/pokemon/1/"},{"name":"ivysaur","url":"https://pokeapi.co/api/v2/pokemon/2/"},{"name":"venusaur","url":"https://pokeapi.co/api/v2/pokemon/3/"},{"name":"charmander","url":"https://pokeapi.co/api/v2/pokemon/4/"},{"name":"charmeleon","url":"https://pokeapi.co/api/v2/pokemon/5/"},{"name":"charizard","url":"https://pokeapi.co/api/v2/pokemon/6/"},{"name":"squirtle","url":"https://pokeapi.co/api/v2/pokemon/7/"},{"name":"wartortle","url":"https://pokeapi.co/api/v2/pokemon/8/"},{"name":"blastoise","url":"https://pokeapi.co/api/v2/pokemon/9/"},{"name":"caterpie","url":"https://pokeapi.co/api/v2/pokemon/10/"},{"name":"metapod","url":"https://pokeapi.co/api/v2/pokemon/11/"},{"name":"butterfree","url":"https://pokeapi.co/api/v2/pokemon/12/"},{"name":"weedle","url":"https://pokeapi.co/api/v2/pokemon/13/"},{"name":"kakuna","url":"https://pokeapi.co/api/v2/pokemon/14/"},{"name":"beedrill","url":"https://pokeapi.co/api/v2/ |