Skip to content

dkwon17/food-api-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Food Api Example

Contribute

Quarkus REST API with Hibernate ORM, Panache, RESTEasy, and PostgreSQL.

Endpoints

GET  /food                  Lists all Food resources
GET  /food/{id}             Retrieves the Food resource with the specified ID
GET  /food/search/{name}    Retrieves a Food resource with the specified name
POST /food                  Creates a Food resource

Local development

Run PostgresSQL container

docker run -it --rm=true --name food_db -e POSTGRES_USER=user -e POSTGRES_PASSWORD=password -e POSTGRES_DB=food_db -p 5432:5432 postgres:13.3

Run in development mode

./mvnw compile quarkus:dev

Navigate to localhost:8080/food to view the pre-imported Food resources.

Packaging the application

./mvnw clean package

Run tests only

./mvnw test

Resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published