5062CEM

Programming and Algorithms 2

RESTful Interfaces and Flask

RESTful Interfaces and Flask

For this activity, you will need to be using an Integrated Development Environment (IDE). The recommended IDE for this module is JetBrains IntelliJ IDEA for Python and JetBrains CLion for C++. You can follow instructions at the following page to set up your development environment:

Setting up your Development Environment

For this task you will want to create an application that can send and receive data between a sever and a client. This may be in the form of a RESTful interface and Flask. The application should be able to do the following:

  1. Create a new lecturer
    • harvesting details such as: name, date of birth, address, e-mail, telephone
  2. Return a list of all the lecturers registered
  3. Return the details of a single lecturer by their identification
  4. Delete a lecturer upon their resignation

You may want to consider storing the details of a lecturer in a database, such as SQLite and use SQLAlchemy for the handling and managing of the database.

Important: Whilst a graphical user interface can be implemented, you should be more concerned about using a RESTful interface to interact with the server. For example, when listing the lecturers in the database, values should be returned in a JSON format.

For this task you will want to create a chatbot system using Flask. The nature of the topic for the chatbot is at your discretion. However, it should be able to answer questions for that given topic when asked by the user.

If you are struggling with this lab activity, you may want to get some additional support. You can speak to the module leader/team in the room of when the lab week is active, or you can visit the Additional Support page for more information on how you can get extra support.