bupt-hotel-management backend API
    bupt-hotel-management backend API
    • 入住
      POST
    • 退房
      POST
    • 空调开机
      POST
    • 设定房间空调风速
      POST
    • 房间内空调关机
      POST
    • 设定房间空调温度
      POST
    • 查看房间当前信息(当前温度、目标温度、风速、费用)
      GET
    • 查看当前调度信息(服务队列、等待队列)
      GET
    • 发送房间当前温度
      POST

      入住

      开发中
      POST
      http://localhost:8080/api/checkin
      办理入住的接口,需要提供用户的名字与身份证号。

      请求参数

      Body 参数application/json
      client_name
      string 
      必需
      client_id
      string 
      必需
      示例
      {
          "client_name": "dyz",
          "client_id": "50013420020324xxxx"
      }

      示例代码

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      请求示例请求示例
      Shell
      JavaScript
      Java
      Swift
      curl --location --request POST 'http://localhost:8080/api/checkin' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "client_name": "dyz",
          "client_id": "50013420020324xxxx"
      }'

      返回响应

      🟢200成功
      application/json
      Body
      status
      string 
      必需
      allocate_room
      integer 
      必需
      示例
      {
          "status": "OK",
          "allocate_room": 101
      }
      修改于 2025-02-04 08:04:00
      下一页
      退房
      Built with