mvn
npm
To stop the process running on port 8080 and 3000, use sh stop.sh
To start the server and run the application, use sh run.sh
Note : Since both back end and front end runs in a port, it is must to stop them before rerunning it again.
username : manager
password : password
Request
{
Request URL: /login
Request Method: GET
authorization: basicAuth
}
Successful Response
{
status : 200
}
Unsuccessful Response
{
status : errorCode
}
Request
{
Request URL: /logout
Request Method: GET
authorization: basicAuth
}
Successful Response
{
status: 200
JSESSIONID: empty
}
Unsuccessful Response
{
status : errorCode
}
Request
{
Request URL: /api/hotels
Request Method: GET
authorization: basicAuth
JSESSIONID: token
}
Successful Response
{
status: 200
data: allItemData
}
Unsuccessful Response
{
status: errorCode
}
Request
{
Request URL: /api/hotel
Request Method: POST
authorization: basicAuth
JSESSIONID: token
body {
data : formDataValues
}
}
Successful Response
{
status : 201
data: addedItem
}
Unsuccessful Response
{
status: errorCode
}
Request
{
Request URL: /api/hotel/{id}
Request Method: PUT
authorization: basicAuth
JSESSIONID: token
body {
data : FormDatValues
}
}
Successful Response
{
status : 200
data: EditedItem
}
Unsuccessful Response
{
status: errorCode
}
Request
{
Request URL: /api/hotel/{id}
Request Method: DELETE
authorization: basicAuth
JSESSIONID: token
}
Successful Response
{
status : 200
}
Unsuccessful Response
{
status : errorCode
}