API Documentation

API Endpoints

GET /api.php

Returns a list of all rentals.



        

POST /api.php

Creates a new rental. The request body should be a JSON object with the following fields:

Example request body:

{
    "date": "2024-07-15",
    "duration": "1 day",
    "guests": ["Ratty", "Mickey", "Uncle Rat"]
}