Skip to content

A Simple RESTful API using Spring Boot, Gradle, Hibernate, H2 database, Spring Data JPA.

License

Notifications You must be signed in to change notification settings

tomaszkapron/spring-boot-rest-api-recipes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-boot-rest-api-recipes

A Simple RESTful API using Spring Boot, Gradle, Hibernate, H2 database, Spring Data JPA.

An implementaion of Hyperskill Recipes project.

Overview

This project built using Java and the following tools:

Installation

Clone repository

  git clone https://github.com/tomaszkapron/spring-boot-rest-api-recipes

Build and run (If working on Windows use gradlew.bat scripts instead)

  gradlew build
  gradlew run

The app will start running at http://localhost:8881

H2 database console

H2 database console is available under http://localhost:8881/h2

Endpoints

Method Url Decription
POST /api/register registers an user
GET /api/recipe/{id} returns recipe with given id
GET /api/recipe/search returns recipes with given param name and/or category
POST /api/recipe/new saves given recipe; returns assigned id
PUT /api/recipe/{id} updates recipe with given id
DELETE /api/recipe/{id} deletes recipe with given id

About

A Simple RESTful API using Spring Boot, Gradle, Hibernate, H2 database, Spring Data JPA.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published