Skip to content

JK-devv/Helth-Help-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a Health & Help application built using HATEOAS principles

The entry point is : /start

Authentication implemented via jwt token

Flow:

The entry point to the API is /start, and the application returns HAL JSON, which includes hypermedia. The available links depend on the user's role and access token

How to use:

  • run in terminal command docker compose up -d - for building database
  • run app
  • get token from /login endpoint and after all request will be available for you with token

Users:

There is only 2 users with roles :

  • MANAGER
  • DOCTOR

Available endpoints:

  • GET: /start
  • GET: /stock
  • POST: /login - RequestBody:

{ "name" : "name", "password" : "password" }

  • GET: /item/{item-id}

For DOCTOR :

  • GET: /list-of-patients
  • GET: /patient/{patient-id}
  • POST: /patient

For MANAGER:

  • GET: /list-of-food
  • GET: /food/{food-id}
  • POST: /food

Technologies:

  • java20
  • Spring boot
  • Spring Security via jwt
  • Spring boot data Jpa
  • PostgresDb
  • Docker
  • HATEOAS
  • Junit5# Helth-Help-App

Helth-Help-App

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages