Basic CRUD operations written in Symfony 7
GET /api/properties
Parameter | Type | Description |
---|---|---|
page |
integer |
Page number for pagination (default: 1) |
limit |
integer |
Number of items per page (default: 10) |
status |
string |
Filter properties by status (e.g., available, sold) |
GET /api/properties/{id}
Parameter | Type | Description |
---|---|---|
id |
integer |
Required. Id of item to fetch |
POST /api/properties
Parameter | Type | Description |
---|---|---|
title |
string |
Required |
description |
string |
Required |
price |
decimal |
Required |
location |
string |
Required |
PUT /api/properties
Parameter | Type | Description |
---|---|---|
title |
string |
Required |
description |
string |
Required |
price |
decimal |
Required |
location |
string |
Required |
DELETE /api/properties/{id}
Parameter | Type | Description |
---|---|---|
id |
integer |
Required. Id of item to delete |
PUT /api/properties/{id}/status
Parameter | Type | Description |
---|---|---|
id |
integer |
Required. Id of item to update |
status |
string |
Required. New status of the property |