Skip to content

RESTful API application using Spring Boot + JAX-RS + Hibernate for Multi-Tenancy

License

Notifications You must be signed in to change notification settings

fparoni/spring-boot-hibernate-multitenant-jaxrs-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RESTful API application using Spring Boot + JAX-RS + Hibernate for Multi-Tenancy

This is a working application implementing a RESTful API in a multi-tenant architecture using:

  • Spring Boot
  • JAX-RS and Jersey implementation
  • Hibernate to implement multi-tenancy

General notes

Multi-tenancy is implemented using a separate schema approach. The API endpoint defines a GET request to a product object: the tenant identifier is contained inside HTTP header called 'X-TENANT-ID'.

Run mvn spring-boot:run to start the application and test it using Postman using a GET request to http://localhost:8080/product, setting the X-TENANT-ID header to 'tenant_1' or 'tenant_2' to select the database schema.

About

RESTful API application using Spring Boot + JAX-RS + Hibernate for Multi-Tenancy

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages