Obtén el nombre de un(a) estudiante con su código :^) (UNINORTE) https://unstalker.glitch.me/

unstalker

Get an Uninorte student name with the student code :^)

API

The base route of the API is /api

  • GET /:code Get an student name

    • Request:

      GET /api/200088012
      
    • Response:

      {
        "status": "DONE",
        "code": "200088012",
        "name": "Wilson Andres Tovar Agudelo"
      }
      

      If the code is wrong:

      {
        "status": "ERROR"
      }
      
  • POST /list Get the names of a list of codes

    • Request application/json:

      The elements of the codes array must be Numbers.

      {
        "codes": [
          200088012,
          200099124
        ]
      }
      
    • Response:

      [
        {
          "code": 200088012,
          "name": "Wilson Andres Tovar Agudelo"
        }
      ]
      

      If there was an error or any of the elements of the codes array was not a Number.

      {
        "status": "ERROR",
        "error": "NotFound"
      }
      

TODO

  • Student name
  • List of codes
  • Caching
  • Emails (?)
  • Tests!!!
  • Use Channels (concurrence) to make the /list endpoint faster.

Contributing

  1. Fork it (https://github.com/krthr/unstalker.cr)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • krthr - creator and maintainer
Github statistic:
  • 2
  • 1
  • 0
  • 0
  • 0
  • 2 months ago

License:

MIT License

Links: