Skip to content

Wishlist API - Produtos Favoritos para os Clientes Magalu

License

Notifications You must be signed in to change notification settings

roqmarcelo/wishlist-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Code Coverage

Wishlist API

Simple API to test my capabilities as a Back-End Engineer.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • Java 11
  • Maven
  • Git
  • Docker

Installing

Clone the repository

git clone https://github.com/roqmarcelo/wishlist-api.git

Go to the project folder

cd wishlist-api

Build the project

mvn clean package

And then run with Docker

docker-compose up

Running the tests

To run only the tests

mvn test

This will run all unit tests and produce a coverage report located at target/jacoco-report/index.html

Resources

Auth

This API is secured by JWT and the authentication endpoint lives under /auth/.

There is an user generated automatically when the application starts for the first time with the given credentials:

Username: admin
Password: admin

All subsequent requests need to have the Authorization header set. Ex.:

Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiJ9.7ZO2ZRMZd8y1PmGa_Cb5mCC98r-LL5nhDdwOZrszjfx5p_9rqO1a5r9qTfVK9sWr_mIFHpnUKfj1E6wgIdlvUw 

Customers

Customers are identified by their ids, which are unique integers, and live under /customers/<id>.

Wishlist

Wishlists are identified by their ids, which are unique uuid, and live under /customers/<id>/wishlist/<wishlistid>.

Authors

About

Wishlist API - Produtos Favoritos para os Clientes Magalu

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published