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 all Rooms for spesfic user

Developing
GET
room/getAll
RoomGet
Get Room Details

Request

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/getAll' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY3OWU4M2Y0OGUxMThjNDA3OWIyNTFjMyIsImVtYWlsIjoiYWxpaXNtYWlsaDA4QGdtYWlsLmNvbSIsInJvbGUiOiJjdXN0b21lciIsImlhdCI6MTc0MTI0MjUwMiwiZXhwIjoxNzQzODM0NTAyfQ.ABNTRtJ6iJn1AJpPKcUrr1SOW2aYXRjRkn0Vv1YURoI'

Responses

🟢200Success
application/json
Body
object {0}
Example
{
    "rooms": [
        {
            "_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,
            "roomDevices": [
                "67c95ee7b3527a2216093377",
                "67c95f1bfc2359b484d16708",
                "67cd7bea42408ff2c5a255be",
                "67cd7c1ff5d20d71ffc9f4f5"
            ]
        },
        {
            "_id": "67d7ade73adb097a01018dd0",
            "userId": "679e83f48e118c4079b251c3",
            "name": "Living Room",
            "description": "Spacious living room with a balcony",
            "createdAt": "2025-03-17T05:06:47.797Z",
            "updatedAt": "2025-03-17T05:06:47.797Z",
            "roomDevices": []
        },
        {
            "_id": "67d7ade73adb097a01018dd1",
            "userId": "679e83f48e118c4079b251c3",
            "name": "Master Bedroom",
            "description": "Large bedroom with an attached bathroom",
            "createdAt": "2025-03-17T05:06:47.797Z",
            "updatedAt": "2025-03-17T05:06:47.797Z",
            "roomDevices": []
        },
        {
            "_id": "67d7ade73adb097a01018dd2",
            "userId": "679e83f48e118c4079b251c3",
            "name": "Guest Room",
            "description": "Cozy guest room with a queen-size bed",
            "createdAt": "2025-03-17T05:06:47.797Z",
            "updatedAt": "2025-03-17T05:06:47.797Z",
            "roomDevices": []
        },
        {
            "_id": "67d7ade73adb097a01018dd3",
            "userId": "679e83f48e118c4079b251c3",
            "name": "Office",
            "description": "Work office with a large desk and bookshelves",
            "createdAt": "2025-03-17T05:06:47.797Z",
            "updatedAt": "2025-03-17T05:06:47.797Z",
            "roomDevices": []
        }
    ]
}
Previous
Get Room Details
Next
Create New Device
Built with