Booking Hotels
    Booking Hotels
    • About API
    • Auth
      • Register
        POST
      • Login by Password
        POST
      • Login by Access Token
        GET
      • Renew Access Token
        GET
      • Update Password
        PATCH
      • Update Profile
        PATCH
      • Request Forgot Password
        POST
      • Verify Forgot Password
        POST
      • Confirm Forgot Password
        PATCH
      • Logout
        DELETE
    • Hotels
      • Get Hotel List
        GET
      • Get Hotel by Id
        GET
      • Create Hotel
        POST
      • Update Hotel by Id
        PATCH
      • Delete Hotel by Id
        DELETE
    • Rooms
      • Get Room List
        GET
      • Get Room by Id
        GET
      • Create Room
        POST
      • Update Room by Id
        PATCH
      • Delete Room by Id
        DELETE
    • Bookings
      • Actions
        • Pay Booking by Id
        • Cancel Booking by Id
        • Check In Booking by Id
      • Get Booking List
        GET
      • Get Booking by Id
        GET
      • Create Booking
        POST
    • Check Service Status
      GET

    About API

    What is Job Portal API#

    Lorem ipsum

    Error Response#

    Validation Error#

    {
        "status_code": 400,
        "message": [
            {
                "property": "new_password",
                "message": "new_password must contain at least one uppercase letter, one lowercase letter, one number, and one special character."
            },
            {
                "property": "confirm_new_password",
                "message": "confirm_new_password must be same with new_password"
            }
        ],
        "error": "Bad Request"
    }

    Unauthorized Error#

    {
      "status_code": 401,
      "message": "Unauthorized"
    }

    Deprecated Error#

    {
      "status_code": 403,
      "message": "This endpoint is deprecated.",
      "error": "Forbidden"
    }

    Not Found Error#

    {
      "status_code": 404,
      "message": "User not found",
      "error": "Not Found"
    }

    Internal Server Error#

    {
      "status_code": 500,
      "message": "Internal server error"
    }
    Next
    Register
    Built with