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.
POST request with accion=crear inserts a new product into the productos table. The request body must be form-encoded (application/x-www-form-urlencoded). On success the servlet returns {"success": true}; if the INSERT fails for any reason it returns {"success": false}.
Request
Method:POSTURL:
http://localhost:8080/ServidorTiendaPlayeras/ProductoServletContent-Type:
application/x-www-form-urlencoded
Parameters
Dispatch key for the POST handler. Must be exactly
"crear" to reach the create branch.The product name, e.g.
"Playera Oversize Anime".The t-shirt size. Accepted values:
CH, M, G, XG.The price in Mexican Pesos (MXN). Parsed server-side as a
double, e.g. 299.90.The initial inventory count. Parsed server-side as an
int, e.g. 20.curl Example
PHP (Laravel) Example
ThePlayerasController::store() method uses Laravel’s HTTP client with asForm() to send a form-encoded POST request:
SQL Executed
Response
true if the product was inserted successfully; false if the INSERT statement failed (e.g., due to a constraint violation or database error).