Skip to main content

Documentation 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.

Looks up a single Library record by its primary key. The service queries the database for a library whose Id matches the supplied libraryId. If no match is found the endpoint returns 404 Not Found with an empty body.

Endpoint

GET /api/libraries/{libraryId}

Authentication

No authentication is required. The Get action does not carry an [Authorize] attribute.

Path Parameters

libraryId
integer
required
The unique integer ID of the library to retrieve. Must match an existing Library.Id value in the database.

Response

200 OK

Returns a single Library object when a matching record is found.
id
integer
Auto-generated primary key of the library.
name
string
Human-readable name of the library.
location
string
Physical address or location description of the library.

404 Not Found

Returned when no library with the given libraryId exists. The response body is empty.

Status Codes

StatusMeaning
200OK — the requested Library object is returned.
404Not Found — no library with the given ID was found.

Example Request

curl https://localhost:7098/api/libraries/5

Example Response

{
  "id": 5,
  "name": "Library name",
  "location": "2838 Violet Ct, Columbus, IN 47201, USA"
}

Build docs developers (and LLMs) love