Sending aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/LucaXGit/proyecto-final-jaz/llms.txt
Use this file to discover all available pages before exploring further.
GET request to the ProductoServlet endpoint retrieves all t-shirt products currently stored in the database. The servlet executes SELECT * FROM productos and serializes the result set as a JSON array. No query parameters or request body are required.
Request
Method:GETURL:
http://localhost:8080/ServidorTiendaPlayeras/ProductoServlet
No parameters are accepted or required for this endpoint.
curl Example
PHP (Laravel) Example
Response
The response is a JSON array ofProducto objects. Each element in the array represents one product row from the productos table.
Response Fields
The unique auto-increment identifier for the product.
The product name.
The t-shirt size. One of:
CH, M, G, XG.The price in Mexican Pesos (MXN).
The number of units currently in inventory. Products with
stock: 0 are out of stock but remain in the catalog.If the database contains no products, the endpoint returns an empty array
[]. Server-side errors (e.g., a lost database connection) also return [] — the exception is logged on the server but not surfaced in the response body.