Coder Social home page Coder Social logo

api-task's Introduction

API Task

This project is a REST API of a task manager

Requirements

  • Java 17
  • Spring Boot 3
  • PostgreSQL 15

How to use

You can send requests to the API using the available routes. The routes are:

  • POST /api/auth/register
  • POST /api/auth/login
  • GET /api/users/me
  • GET /api/users - Only ADMIN
  • GET /api/tasks
  • GET /api/tasks/{id}
  • GET /api/tasks/title/{title}
  • GET /api/tasks/completed/{completed}
  • POST /api/tasks
  • PUT /api/tasks/{id}
  • DELETE /api/tasks/{id}

Some endpoints require authentication via a JWT access token.

Swagger Documentation

The API documentation is available on Swagger. To access it, follow these steps:

  1. Start the API using the command ./mvnw spring-boot:run
  2. Open a web browser and navigate to http://localhost:8080/swagger-ui/index.html
  3. The API documentation should be displayed in Swagger.

How to run

  1. Clone this repository
  2. create a database named db_api_task
  3. Configure your database in the application.yml file
  4. Run ./mvnw spring-boot:run

Contribution

Please feel free to send pull requests and report issues.

api-task's People

Contributors

julioevencio 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.