Making a Simple API with Flask and repl.it db
Making a simple API with Flask and repl.it db
Hi everyone! Today I'll be showing you all a way to make a simple api on repl it. first, let me walk you through the boilerplate code we need:
Now that we have our boilerplate, we start on the API functions. Add something like this under the home page. This is if you want to make a book api:
Now you can add data to your api. To pull that data from it now, add this under it:
And just like that, you've got a barebones api! Comment with a repl link to show off what you do with this.