Giter VIP home page Giter VIP logo

academia's Introduction

Controle academia API

Java Spring MySql JWT

Este projeto usa Java, Spring, banco de dados MySql e Spring Security com JWT!

Esta api fornece um controle de academia, com o módulo de clientes, planos, permissões, terá a funcionalidade de caso o cliente não tenha feito o pagamento após o vencimento fique sem autorização para uso da academia, será integrado com uma catraca eletrônica com a funcionalidade de liberar acesso.

Table of Contents

Instalação

  1. Clone o repositório:
git clone https://github.com/joaopedropc7/academia.git
  1. Instale as dependências com o Maven

  2. Instale MySQL

Inicio

  1. Inicie a aplicação com o Maven
  2. A API ficará acessível em http://localhost:8080

API Endpoints

Siga esses endpoints para acessar a API:

GET /planos - Lista todos os planos.

GET /planos/{id} - Busca um plano por id

PUT /planos/{id} - Atualiza um plano pelo ID (ADMIN)

Delete /planos/{id} - Inativa um plano pelo ID (ADMIN)

POST /planos - Cadastra um plano (ADMIN)

Authentication

The API uses Spring Security for authentication control. The following roles are available:

USER -> Standard user role for logged-in users.
ADMIN -> Admin role for managing partners (registering new partners).

To access protected endpoints as an ADMIN user, provide the appropriate authentication credentials in the request header.

Database

Este projeto utiliza MySQL database. Junto foi utilizado flyway migrations.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request to the repository.

When contributing to this project, please follow the existing code style, commit conventions, and submit your changes in a separate branch.

academia's People

Contributors

joaopedropc7 avatar

Stargazers

 avatar Cicero Romão avatar

Watchers

 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.