Hotel Backend Management System
The Hotel Backend Management System is a backend application designed to manage the operations and data related to hotels. This system provides a RESTful API interface, enabling integration with frontend applications or other systems. By leveraging Spring Boot as the main framework and PostgreSQL as the database, the application offers high performance, scalability, and security in managing hotel data. Additionally, ImageKit is used to handle the storage and management of images related to the hotel.
Programming Language: Java
Framework: Spring Boot
Database: PostgreSQL
Image Storage Service: ImageKit (REST client)
{
"name" : " kolam renang"
}
{
"id" : 1 ,
"name" : " kolam renang"
}
GET /api/v1/facilities/{id}
Parameter
Type
Description
id
Integer
Required . Id of item to fetch
{
"id" : 1 ,
"name" : " kolam renang"
}
[
{
"id" : 1 ,
"name" : " kolam renang"
},
{
"id" : 2 ,
"name" : " Gym"
}
]
{
"id" : 1 ,
"name" : " Kolam Ikan"
}
{
"id" : 1 ,
"name" : " Kolam Ikan"
}
DELETE /api/v1/facilities/{id}
Parameter
Type
Description
id
Integer
Required . Id of item to fetch
{
"message" :" Successfully delete data"
}
Parameter
Type
Description
file
File
Required . Image for the hotel
hotel_request
Text
Required . Hotel information for save hotel
{
"name" :" Hotel aston" ,
"rating" : 4.8 ,
"address" : " Jl.Marbot" ,
"facilityId" : [1 ,2 ]
}
{
"statusCode" : 200 ,
"message" : " Successfully create data" ,
"data" : {
"id" : " afc893c0-a3b5-4ce5-83b7-d78a46f00511" ,
"name" : " Hotel aston" ,
"rating" : 4.8 ,
"address" : " Jl.Marbot" ,
"pictures" : [
{
"id" : " 95daac43-0dc0-40e5-874c-6438f8950098" ,
"url" : " https://ik.imagekit.io/soeauotwj/ec9c4cb8-7460-4d7b-9ca0-e053e80bdb68_Screenshot_from_2024-06-06_15-15-18_DXMX5EZQf.png"
}
],
"hotelFacilities" : [
{
"id" : " f546cec2-3e22-448f-acd2-cf1b357df476" ,
"facility" : {
"id" : 1 ,
"name" : " kolam renang"
}
},
{
"id" : " 5c78b987-5fac-44d1-8b1b-1cc62bd3eb80" ,
"facility" : {
"id" : 2 ,
"name" : " Gym"
}
}
]
},
"paging" : null
}
Parameter
Type
Description
id
String
Required . Id of item to fetch
{
"statusCode" : 200 ,
"message" : " Successfully get data" ,
"data" : {
"id" : " e9065d3d-fa3b-4128-badd-369b9d13576e" ,
"name" : " Hotel aston" ,
"rating" : 4.8 ,
"address" : " Jl.Marbot" ,
"pictures" : [
{
"id" : " a54940b1-e4f6-413f-af0d-2f790a300cb3" ,
"url" : " https://ik.imagekit.io/soeauotwj/a79cbef3-53cd-4a07-971d-c8a270d87630_Screenshot_from_2024-06-06_15-15-18_8rP7tQgYC.png"
}
],
"hotelFacilities" : [
{
"id" : " 7ac7d778-87d8-408d-84c9-51fb8c302124" ,
"facility" : {
"id" : 3 ,
"name" : " kolam renang"
}
}
]
},
"paging" : null
}
{
"statusCode" : 200 ,
"message" : " Successfully get data" ,
"data" : [
{
"id" : " e9065d3d-fa3b-4128-badd-369b9d13576e" ,
"name" : " Hotel aston" ,
"rating" : 4.8 ,
"address" : " Jl.Marbot" ,
"pictures" : [
{
"id" : " a54940b1-e4f6-413f-af0d-2f790a300cb3" ,
"url" : " https://ik.imagekit.io/soeauotwj/a79cbef3-53cd-4a07-971d-c8a270d87630_Screenshot_from_2024-06-06_15-15-18_8rP7tQgYC.png"
}
],
"hotelFacilities" : [
{
"id" : " 7ac7d778-87d8-408d-84c9-51fb8c302124" ,
"facility" : {
"id" : 3 ,
"name" : " kolam renang"
}
}
]
},
{
"id" : " afc893c0-a3b5-4ce5-83b7-d78a46f00511" ,
"name" : " Hotel aston" ,
"rating" : 4.8 ,
"address" : " Jl.Marbot" ,
"pictures" : [
{
"id" : " 95daac43-0dc0-40e5-874c-6438f8950098" ,
"url" : " https://ik.imagekit.io/soeauotwj/ec9c4cb8-7460-4d7b-9ca0-e053e80bdb68_Screenshot_from_2024-06-06_15-15-18_DXMX5EZQf.png"
}
],
"hotelFacilities" : [
{
"id" : " f546cec2-3e22-448f-acd2-cf1b357df476" ,
"facility" : {
"id" : 3 ,
"name" : " kolam renang"
}
},
{
"id" : " 5c78b987-5fac-44d1-8b1b-1cc62bd3eb80" ,
"facility" : {
"id" : 4 ,
"name" : " kolam renang"
}
}
]
}
],
"paging" : null
}
DELETE /api/v1/hotels/{id}
Parameter
Type
Description
id
String
Required . Id of item to fetch
{
"statusCode" : 200 ,
"message" : " Successfully delete data" ,
"data" : null ,
"paging" : null
}