Skip to content

Campus anula la búsqueda #1

@agucova

Description

@agucova

Jugando con la API encontré un bug (creo), extraño. La API parece fallar buscando con un campus puesto.

Búsqueda simple de ING1004

http "http://buscacursos-api.herokuapp.com/api/v3?sigla=ING1004"
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Connection: keep-alive
Content-Length: 1274
Content-Type: application/json
Date: Tue, 02 Jun 2020 01:33:40 GMT
Server: gunicorn/19.9.0
Via: 1.1 vegur

{
    "code": 200,
    "data": {
        "ING1004": {
            "1": {
                "Aprobacion especial": "NO",
                "Campus": "San Joaquín",
                "Categoria": null,
                "Creditos": "10",
                "Ingles": "NO",
                "Modulos": {
                    "AYU": [
                        "V:1"
                    ],
                    "CLAS": [
                        "L-W:1"
                    ],
                    "LAB": [],
                    "LIB": [],
                    "PRA": [],
                    "SUP": [],
                    "TAL": [],
                    "TER": [],
                    "TES": []
                },
                "NRC": "11598",
                "Nombre": "Desafíos de la Ingeniería",
                "Profesor": "Vega Ricardo",
...

Búsqueda ING1004 en el campus San Joaquín

http "https://buscacursos-api.herokuapp.com/api/v3?sigla=ING1004&campus=San+Joaqu%C3%ADn"
HTTP/1.1 202 ACCEPTED
Access-Control-Allow-Origin: *
Connection: keep-alive
Content-Length: 98
Content-Type: application/json
Date: Tue, 02 Jun 2020 01:35:01 GMT
Server: gunicorn/19.9.0
Via: 1.1 vegur

{
    "code": 202,
    "data": {
        "message": "(#202) No data found with those parameters."
    },
    "status": "Accepted"
}

Nótese que también intenté enviar el tilde de forma explícita, y no dio resultado. El API LAB replica el problema.

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