dragan-mitrasinovic / recipes

Final project at the JetBrains Academy Java Backend Development Course

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Recipes REST API Service

A spring boot REST web service that allows the basic CRUD operations as well as searching by title or category. Added Authentication and Authorization via the Spring Security module.

Graduade project at the JetBrains Academy Java Backend Engineering Course.

Recipes

Get a single recipe by Id

GET /api/recipe/{id}

Response body:

{
   "id": "<string>",
   "category": "<string>",
   "date":"<string>",
   "description": "<string>",
   "ingredients": ["<string>",...],
   "directions":["<string>",...],
}

Search recipes by name

GET /api/recipe/search

Search recipes by category

GET /api/recipe/search

Create a recipe

POST /api/recipe/new

Request body:

{
   "name": "<string>",
   "category": "<string>",
   "description": "<string>",
   "ingredients": ["<string>",...],
   "directions":["<string>",...],
}

Response body:

{
   "id": "<string>",
}

Delete a recipe by Id

DELETE /api/recipe/{id}

Update recipe with given Id

PUT /api/recipe/{id}

Users

Register a new user

POST /api/register

Request body:

{
   "email": "<string>",
   "password": "<string>"
}

About

Final project at the JetBrains Academy Java Backend Development Course


Languages

Language:Java 100.0%