Description

The API provides endpoints for managing a parking garage system. It allows users to book parking spots, retrieve information about available spots, fetch user data, and search for car brands. The API supports both automated and standard parking spots, with functionalities for booking, fetching data, and searching. It also includes error handling for various scenarios to ensure smooth operation.

Base URL

The base URL for all API requests is:

https://localhost/api.php

POST /

Action: add_user

Request:

json
{
"action": "add_user",
"name": "string",
"phoneNum": "string",
"email": "string",
"password": "string",
"carNum": ["string"],
"brand": ["string"]
}

Response: