Coder Social home page Coder Social logo

apimotorista's Introduction

CONFIGURAR AMBIENTE

Baixe a pasta docker
docker-compose up -d
docker exec -it docker_app_1 /bin/bash
cd /var/www/html
git clone https://github.com/gabriellavor/apiMotorista.git
cd apiMotorista
composer install
cp /var/www/html/apiMotorista/config/app.default.php /var/www/html/apiMotorista/config/app.php
exit
cat script.sql | docker exec -i docker_db_1 /usr/bin/mysql -u root --password=1234 truckpad

configure o seu host para
127.0.0.1 truckpad.localhost

para acessar truckpad.localhost:8080

#TESTE docker exec -it docker_app_1 /bin/bash cd /var/www/html/apiMotorista vendor/bin/phpunit tests/TestCase/Model/Table/MotoristaTableTest.php vendor/bin/phpunit tests/TestCase/Model/Table/TipoVeiculoTableTest.php vendor/bin/phpunit tests/TestCase/Model/Table/CheckinTableTest.php vendor/bin/phpunit tests/TestCase/Model/Table/LocalTableTest.php

API de Motorista

API para listar motoristas cadastrados (GET)

/api/motoristas

API para alterar motoristas cadastrados (PUT)

{ "codigo": 1, "nome" : "Motorista", "idade" : 31, "veiculo_proprio" : "S", "tipo_cnh" : "D", "sexo" : "M", "tipo_veiculo" : 1, "carregado": "S", "origem":"Local de Origem", "latitude_origem":"-24.8778", "longitude_origem":"-57.988", "latitude_destino":"-27.688", "longitude_destino":"-57.555", "destino":"Loja de Destino" }

/api/motorista

API para incluir motoristas cadastrados (POST)

/api/motorista

{ "nome" : "Motorista", "idade" : 31, "veiculo_proprio" : "S", "tipo_cnh" : "D", "sexo" : "M", "tipo_veiculo" : 1, "carregado": "S", "origem":"Local de Origem", "latitude_origem":"-24.8778", "longitude_origem":"-57.988", "latitude_destino":"-27.688", "longitude_destino":"-57.555", "destino":"Loja de Destino" }

API para listar tipos de veiculos cadastrados (GET)

/api/tipo-veiculos

API busca o tipo de veiculo por código cadastrados (GET)

/api/tipo-veiculos/:id

API veículos carregados (GET)

/api/caminhoes-carregados

API veículos próprios (GET)

/api/veiculos-proprios

API origem e destino por tipo de veículo (GET)

/api/origem-destino-por-tipo-veiculo

API origem e destino do motorista (GET)

/api/origem-destino-por-motorista

API para listar veículos sem carga (GET)

/api/motorista-sem-carga

apimotorista's People

Contributors

gabriellavor avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.