Persists a newDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/marchena96/Paradigma-lab1/llms.txt
Use this file to discover all available pages before exploring further.
Library record to the database. EF Core assigns the auto-incremented Id after the insert and the controller returns the fully populated object — including the newly generated id — in the response body.
Endpoint
Authentication
No authentication is required. TheAdd action does not carry an [Authorize] attribute.
Request Body
Send a JSON object with the following fields. TheContent-Type header must be application/json.
The human-readable name for the new library (e.g.
"Central City Library").The physical address or location description of the library (e.g.
"2838 Violet Ct, Columbus, IN 47201, USA").Response
200 OK
The controller callsOk(l) after a successful insert, so the response status is 200 (not 201). The response body contains the newly created Library object, including the database-assigned id.
Auto-generated primary key assigned by the database during the insert.
The name provided in the request body.
The location provided in the request body.
Status Codes
| Status | Meaning |
|---|---|
200 | OK — library created; the new Library object (with id) is returned. |