Skip to main content

Get List

GET 

/api/consultations

API Endpoint: Get Consultations

Purpose

This endpoint retrieves a list of consultations available in the system. It is typically used to fetch consultation data for display or further processing in the application.

Request

  • Method: GET
  • URL: https://app.udyogx.in/api/consultations

Expected Input Parameters

This endpoint does not require any input parameters in the request. It is a simple GET request that retrieves data without any additional filters or criteria.

Response Structure

The response from this endpoint will contain a JSON object that includes the following keys:

  • consultations: An array of consultation objects, each containing details about individual consultations.
  • Additional metadata may be included (e.g., pagination information, total count).

Example Response

{
"consultations": [
{
"id": "string",
"title": "string",
"description": "string",
"date": "string",
"time": "string"
}
],
"total": "integer"
}

Notes

  • Ensure that the request is made over HTTPS to maintain security.
  • The response will be in JSON format, and it is recommended to handle potential errors gracefully, such as network issues or server errors.

Responses