Depending on what you do, it will probably only be a few lines of rust. Most of the complexity would be in the DB setup and SQL queries. Since you'll probably use an HTTP server crate that will handle all of that for you.
So, yes, it should be possible.
Even if you don't intend to make it a UI project. You should still do a shitty UI. Otherwise you will spend more time testing it than actually developing it.