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
function cineFind(movieName){ | |
const apiUrl = `https://api.themoviedb.org/3/search/movie?api_key=2dbca7a779fef19d8dc0acc77384df5a&query=${movieName}&language=pt-BR`; | |
fetch(apiUrl) | |
.then(response => response.json()) | |
.then(data => { | |
if (data.results.length > 0) { | |
const movie = data.results[0]; | |
document.getElementById('results').innerHTML += |
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 interface OrdemServicoRepository extends JpaRepository<OrdemServico, Long> { | |
} |
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 interface ComentarioRepository extends JpaRepository<Comentario, Long> { | |
} |
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 interface ClienteRepository extends JpaRepository<Cliente, Long> { | |
} |
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; | |
public enum StatusOrdemServico { | |
ABERTA, FINALIZADA, CANCELADA; | |
} |
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" |