Skip to content

spmpresto/test_php_live_coding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

discoAPI: Hotels

Authentication

To access the API, you need to use an API key. The key should be passed in the header of each request.

Request header:

Authorization: Bearer <Your_API_Key>

Endpoint 1: List of Hotels

Description

This endpoint is used to retrieve a list of hotels.

URL

GET /api/hotels

Request parameters

Parameter

Type

Required

Description

skip

int

no

The index of the first hotel to retrieve results from. Default is 0.

limit

int

no

The maximum number of results to return. Default: 10.

Request example

Request example

GET /api/hotels?skip=10&limit=5

Response example

{

    "status": "success",

    "data": [

        {

            "id": 11,

            “hotel_name”: “Flamingo Hotel”

        },

        {

            "id": 12",

            "hotel_name": "Albatros Hotel",

        },

        {

            "id": 13,

            "hotel_name": "Herron Hotel",

        },

        ...

    ]

}

Limits

  • Maximum number of requests: 1000 per hour.
  • Exceeding the request limit will result in a temporary block of the API key

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages