Tarsheed
  1. Room
Tarsheed
  • Auth
    • Create Account
      POST
    • Verifiy Email
      POST
    • Login
      POST
    • Resend Verfication Code
      POST
    • Forget Password Request
      POST
    • Forget password Verify Code
      POST
    • Reset Password
      PATCH
    • Login With Google
      POST
    • Login With Facebook
      POST
  • Users
    • Get all users
      GET
    • Get specific user
      GET
    • Delete user account
      DELETE
    • Update user data
      PUT
    • Change user password
      PUT
    • Get Recomendation
      GET
    • Get Avarage Cost For Spesfic User
      GET
    • Get The Power Saving Modes Settings
      GET
    • Update the Usage of the power saving mode
      PATCH
  • Reports
    • GetUserReport
      GET
  • Room
    • Create New Room
      POST
    • Update Room
      PATCH
    • Delete Room
      DELETE
    • Get Room Details
      GET
    • Get all Rooms for spesfic user
      GET
  • Device
    • Create New Device
      POST
    • Update Device
      PATCH
    • Delete Device
      DELETE
    • Get All Devices id For IOT System
      GET
    • Toggle Device Status
      PATCH
  • category
    • get all categories
  • Sensor
    • Create New Sensor
    • Update Sensor
    • Delete Sensor
    • Get All Sensor For Spesfic user
  • Automation
    • Add New Automation
    • Get all Automation for Spesfic User
    • Delete Spesfic Automation
    • Update Spesfic Automation
    • Apply Automation Manually
  1. Room

Get Room Details

Developing
GET
room/get/{roomId}
RoomGet
Get Room Details

Request

Path Params
roomId
string 
required
Example:
67c9469f774a5df409479c08
Header Params
Authorization
string 
optional
Example:
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY3OWU4M2Y0OGUxMThjNDA3OWIyNTFjMyIsImVtYWlsIjoiYWxpaXNtYWlsaDA4QGdtYWlsLmNvbSIsInJvbGUiOiJjdXN0b21lciIsImlhdCI6MTc0MTI0MjUwMiwiZXhwIjoxNzQzODM0NTAyfQ.ABNTRtJ6iJn1AJpPKcUrr1SOW2aYXRjRkn0Vv1YURoI

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'room/get/67c9469f774a5df409479c08' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY3OWU4M2Y0OGUxMThjNDA3OWIyNTFjMyIsImVtYWlsIjoiYWxpaXNtYWlsaDA4QGdtYWlsLmNvbSIsInJvbGUiOiJjdXN0b21lciIsImlhdCI6MTc0MTI0MjUwMiwiZXhwIjoxNzQzODM0NTAyfQ.ABNTRtJ6iJn1AJpPKcUrr1SOW2aYXRjRkn0Vv1YURoI'

Responses

🟢200Success
application/json
Body
object {0}
Example
{
    "room": {
        "_id": "67c95eceb3527a2216093373",
        "userId": "679e83f48e118c4079b251c3",
        "name": "Sleaping Room ",
        "description": "Room in First Floor",
        "createdAt": "2025-03-06T08:37:34.108Z",
        "updateAt": "2025-03-06T08:37:34.108Z",
        "updatedAt": "2025-03-06T08:37:34.108Z",
        "__v": 0
    },
    "devices": [
        {
            "_id": "67c95ee7b3527a2216093377",
            "name": "Lamb4",
            "description": "first Device in this Room",
            "status": "OFF",
            "pinNumber": 2,
            "roomId": "67c95eceb3527a2216093373",
            "createdAt": "2025-03-06T08:37:59.920Z",
            "updatedAt": "2025-03-06T08:37:59.920Z",
            "__v": 0
        },
        {
            "_id": "67c95f1bfc2359b484d16708",
            "name": "xbox",
            "description": "Second Device in this Room",
            "status": "OFF",
            "pinNumber": 2,
            "roomId": "67c95eceb3527a2216093373",
            "createdAt": "2025-03-06T08:38:51.774Z",
            "updatedAt": "2025-03-06T08:38:51.774Z",
            "__v": 0
        },
        {
            "_id": "67cd7bea42408ff2c5a255be",
            "name": "fan",
            "description": "third Device in this Room",
            "category": "Lamb",
            "status": "OFF",
            "pinNumber": 2,
            "roomId": "67c95eceb3527a2216093373",
            "createdAt": "2025-03-09T11:30:50.714Z",
            "updatedAt": "2025-03-09T11:30:50.714Z",
            "__v": 0
        },
        {
            "_id": "67cd7c1ff5d20d71ffc9f4f5",
            "name": "charger",
            "description": "fourth Device in this Room",
            "category": "Lamb",
            "status": "OFF",
            "pinNumber": 3,
            "roomId": "67c95eceb3527a2216093373",
            "createdAt": "2025-03-09T11:31:43.100Z",
            "updatedAt": "2025-03-09T11:31:43.100Z",
            "__v": 0
        }
    ]
}
Previous
Delete Room
Next
Get all Rooms for spesfic user
Built with