Right now we don't really have any custom error checking or handling outside of what Flask and Python provide by default. While lower priority than other issues, this seems like something that would be a good intro to the codebase. Potentially a good first issue? If no one picks it up I'll get to it sometime.
An example of some of the error checking would be for instance the /edit_file endpoint lets us pass an end line < start line. This doesn't make sense and we should instead abort when it receives that info. Right now it just accepts that and tries to make an edit.
This is ok right now because users of the API know how it should work, but it's some low-hanging fruit that would be an improvement. Open to discussion on this!
Right now we don't really have any custom error checking or handling outside of what Flask and Python provide by default. While lower priority than other issues, this seems like something that would be a good intro to the codebase. Potentially a good first issue? If no one picks it up I'll get to it sometime.
An example of some of the error checking would be for instance the /edit_file endpoint lets us pass an end line < start line. This doesn't make sense and we should instead abort when it receives that info. Right now it just accepts that and tries to make an edit.
This is ok right now because users of the API know how it should work, but it's some low-hanging fruit that would be an improvement. Open to discussion on this!