GithubHelp home page GithubHelp logo

raccoon_consultant's Introduction

 ______     ______     ______     ______     ______     ______     __   __    
/\  == \   /\  __ \   /\  ___\   /\  ___\   /\  __ \   /\  __ \   /\ "-.\ \   
\ \  __<   \ \  __ \  \ \ \____  \ \ \____  \ \ \/\ \  \ \ \/\ \  \ \ \-.  \  
 \ \_\ \_\  \ \_\ \_\  \ \_____\  \ \_____\  \ \_____\  \ \_____\  \ \_\\"\_\ 
  \/_/ /_/   \/_/\/_/   \/_____/   \/_____/   \/_____/   \/_____/   \/_/ \/_/ 
                                                                              

Stack

  • Java 14
  • SpringBoot 2.3.2
  • PostgreSQL 12
  • Flyway
  • Lombok
  • Docker / Docker-compose

SETUP

cp -a .env.development .env
docker-compose up --build

CURRENT IMPLEMENTED ENDPOINTS

http://localhost:8080/api/v1/laboratories

POST LABORATORIES

curl -i -H -v "Accept: application/json" \
-H 'Content-Type:application/json' \
-X POST \
-d '{"name": "Chuck Norris2", "address": "Chuck Street2", "status": "INACTIVE"}' http://localhost:8080/api/v1/laboratories

========================================================================================================================

GET ALL LABORATORIES - THIS ENDPOINT LISTS JUST THE NOT LOGICALLY DELETE RECORDS 

curl -i -v http://localhost:8080/api/v1/laboratories

========================================================================================================================

FIND LABORATORY BY STATUS

curl -i -v http://localhost:8080/api/v1/laboratories/findByStatus/\?status\="INACTIVE"

========================================================================================================================

FIND LABORATORY BY ID

curl -i http://localhost:8080/api/v1/laboratories/4

========================================================================================================================

DELETE LOGICALLY A LABORATORY

curl -i -v -X DELETE http://localhost:8080/api/v1/laboratories/4

========================================================================================================================

PATCH A RECORD

curl -i -v \ 
-H "Accept: application/json" \
-H 'Content-Type:application/json' \
-X PATCH \
-d '{"name": "CHARLES BRONSON", "status": "ACTIVE"}' http://localhost:8080/api/v1/laboratories/8

========================================================================================================================

PUT A RECORD

curl -i -v \
-H "Accept: application/json" \
-H 'Content-Type:application/json' \
-X PUT \
-d '{"name": "Chuck Norris", "status": "ACTIVE", "address": "BURP LAND"}' http://localhost:8080/api/v1/laboratories/6

========================================================================================================================

raccoon_consultant's People

Contributors

thiagopecanha avatar shorumi avatar

Stargazers

 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.