Skip to main content
GET
/
Donantes
/
VerDonante
View Donor
curl --request GET \
  --url https://api.example.com/Donantes/VerDonante
{
  "200": {},
  "400": {},
  "404": {},
  "Resultado": true,
  "Mensaje": "<string>",
  "nombredonante": "<string>",
  "domicilio": "<string>"
}

Overview

This endpoint retrieves detailed information about a donor using their unique identifier.

Query Parameters

identificador
string
required
The unique identifier of the donor to retrieve

Response

When a donor is found, the response includes:
Resultado
boolean
Indicates whether the donor was found (true) or not (false)
Mensaje
string
A message describing the result of the operation
nombredonante
string
The full name of the donor
domicilio
string
The address/domicile of the donor

Status Codes

200
OK
Donor found successfully. Returns donor information including name and address.
400
Bad Request
Request failed due to:
  • Missing or empty identificador parameter
  • Server connection error
  • Database error during query
404
Not Found
Donor not found. The identifier provided does not match any existing donor.

Example Request

curl -X GET "https://api.donasf.com/Donantes/VerDonante?identificador=12345" \
  -H "Content-Type: application/json"

Example Response

{
  "Resultado": true,
  "Mensaje": "Donante encontrado exitosamente",
  "nombredonante": "Juan Pérez García",
  "domicilio": "Calle Principal 123, Ciudad de México"
}

Notes

  • The identificador query parameter is required and cannot be empty
  • If no donor is found, a 404 status is returned with a message
  • The endpoint includes error handling for various failure scenarios
  • When a donor is not found, the response includes a Resultado: false flag

Build docs developers (and LLMs) love