Skip to content

Instantly share code, notes, and snippets.

@Jace-Tech
Created July 26, 2023 06:51
Show Gist options
  • Save Jace-Tech/233be2da26d3d44a96c08c988eb5febc to your computer and use it in GitHub Desktop.
Save Jace-Tech/233be2da26d3d44a96c08c988eb5febc to your computer and use it in GitHub Desktop.
Flask Assessment

FLASK TASK

This task is designed to help you become familiar with our code structure, which, in turn, will enable us to work uniformly and more efficiently.

Tasks

  • Set up the project using the steps provided in the README.md

  • Try to create a new notes without sending any body. Notice you'll get a 500 INTERNAL SERVER ERROR, if you check where the error was handled in notes.py, 400 BAD REQUEST was the status code that was returned in the CustomRequestError class. Fix this issue.

  • Check out the error in the get_all_notes function, and try to fix it.

  • Check out the comments below in the notes.py and implement those routes. Remember to check for the id params and content for those routes that requires them and return the appropriate response for them.

Download files from here https://github.com/Jace-Tech/flask_assessment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment