Skip to content

Voll Med is an API developed for integration with a frontend application, where it is possible to consult a list of doctors and patients, register them in the system and schedule an appointment.

License

Notifications You must be signed in to change notification settings

EricArnou/Voll-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Voll Med API

About

Voll Med is an API developed for integration with a frontend application, where it is possible to consult a list of doctors and patients, register them in the system and schedule an appointment.

This project is the result of Alura's "Java and Spring Boot" training.

Project status: in progress.

Table of Contents

  • Layout Mobile
  • Technologies
  • Installation
  • Usage
  • API EndPoints
  • License

Layout Mobile

The frontend model for which this API was developed can be found here

Technologies

  • Java 21
  • Spring Framework
  • JPA / Hibernate
  • PostgreSQL
  • Docker

Installation

  1. Clone the repository
   git clone https://github.com/your-username/Voll-API.git
  1. Install Docker
  • There are different ways to install docker, see for your operating system.

Usage

Build Voll Med project with docker-compose.yml

docker compose up

Make sure that the vollMed_api and vollMed_api_test databases are created in the postgres container

docker exec -it <CONTAINER_ID> bash
psql -U postgres
\l

To login and get the access token, make sure to create a user in the users table by entering the login and password in Bcrypt format.

Start aplication with maven:

mvn spring-boot:run

The API will be accessible at http://localhost:8080

An easy way to obtain a working development environment is to use the development container provided (see folder .devcontainer).

IDEs usually have integration or extensions that allow you to work with dev containers. Consult this information in your IDE.

API EndPoints

GET /medicos:
GET /pacientes:
GET /medicos/{id}:
GET /pacientes/{id):
POST /medicos:
POST /pacientes:
PUT /medicos:
PUT /pacientes:
DELETE /medicos/{id}:
DELETE /pacientes/{id}:
POST /consultas:
POST /login:

License

his project is licensed under the MIT License - see the LICENSE file for details.

About

Voll Med is an API developed for integration with a frontend application, where it is possible to consult a list of doctors and patients, register them in the system and schedule an appointment.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published