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
FROM ubuntu:latest AS build | |
RUN apt-get update | |
RUN apt-get install openjdk-21-jdk -y | |
COPY . . | |
RUN apt-get install maven -y | |
RUN mvn clean install |
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
<?php | |
//Globais | |
$clientes = []; | |
$contas = []; | |
//Cliente que sempre existe | |
// $cliente = [ | |
// "nome" => "John Doe", | |
// "cpf" => "00000000000", //11 digitos |
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
<?php | |
$pokeNome = readline("informe o pokémon: "); | |
$url = "https://pokeapi.co/api/v2/pokemon/$pokeNome"; | |
$arquivo = file_get_contents($url); | |
$pokemon = json_decode($arquivo, true); |
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
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 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 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 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 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 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 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; | |
NewerOlder