Skip to content

Error al acceder al endpoint /api/regiones #5

@Cris7015

Description

@Cris7015

Al probar el endpoint /api/regiones la API devuelve un error en lugar de datos en formato JSON.

curl -X GET https://api.mendoapi.com/api/regiones -s
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /api/regiones</pre>
</body>
</html>

Probé también enviando el header Content-Type: application/json, pero el error sigue estando.

curl -X GET https://api.mendoapi.com/api/regiones -s -H "Content-Type: application/json"
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /api/regiones</pre>
</body>
</html>

El encabezado que devuelve es el siguiente:

HTTP/2 404
content-type: text/html; charset=utf-8
x-powered-by: Express

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions