Introduction
Welcome to the Apartments API documentation page! This page provides information about the available endpoints for the API.
Endpoints
| Endpoint | HTTP Method | Description |
|---|---|---|
| http://localhost:8080/api/apartments | GET | Retrieves a list of all apartments in the database. |
| http://localhost:8080/api/apartments/:id | GET | Retrieves information for a specific apartment with the given ID. |
| http://localhost:8080/api/apartments/ | POST | Creates a new apartment in the database. |
| http://localhost:8080/api/apartments/:id | DELETE | Removes an apartment from the database with the given ID. |
| http://localhost:8080/api/apartments/:id | PUT | Updates an existing apartment in the database with the given ID. |