Skip to content

iamdevelopergirl/hotel-management

Repository files navigation

hotel-management

Prerequsites:

mvn
npm

Deployment scripts

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.

Application specifics

README for FrontEnd.

username : manager
password : password

Login Api

Request {
    Request URL: /login
    Request Method: GET
    authorization: basicAuth
}
Successful Response {
    status : 200
}
Unsuccessful Response {
    status : errorCode
}

Logout Api

Request {
    Request URL: /logout
    Request Method: GET
    authorization: basicAuth
}
Successful Response {
    status: 200
    JSESSIONID: empty
}
Unsuccessful Response {
    status : errorCode
}

GetAll Items api

Request {
    Request URL: /api/hotels
    Request Method: GET
    authorization: basicAuth
    JSESSIONID: token
}
Successful Response {
    status: 200
    data: allItemData
}
Unsuccessful Response {
    status: errorCode
}

Add Item Api

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
}

Edit Item Api

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
}

Delete Item Api

Request {
    Request URL: /api/hotel/{id}
    Request Method: DELETE
    authorization: basicAuth
    JSESSIONID: token
}
Successful Response {
    status : 200
}
Unsuccessful Response {
    status : errorCode
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published