Skip to content

Get public rooms endpoint

Alvin Cheng edited this page Apr 23, 2023 · 2 revisions

Description

This is the get public rooms endpoint, this endpoint will just simply get all the public in the database in an array format. This endpoint will return a. status of '200' on success, '401' on invalid API key and '500' on internal server error. Further more, this endpoint will only take a 'key' argument for the api key.

Example

fetch("http://<URL>/api/get-public-rooms?key=<KEY>")
  .then((res) => {
    console.log(res);
  })
  .catch((err) => {
    console.error(err);
  });
Clone this wiki locally