![]() ![]() CharField ( max_length = 20, unique = True ) full_name = fields. IntField ( pk = True ) username = fields. Start by creating a new project folder called "fastapi-vue" and add the following files and folders:įrom tortoise import fields, models class Users ( models. Check your understanding and add proper error handling for both the frontend and backend. Handling unhappy/exception paths is a separate exercise for the reader. ![]() This tutorial mostly just deals with the happy path. Authenticated users will also be able to view their user info and delete themselves.Authenticated users will be able to view, add, update, and delete notes. ![]() We'll also set up a front-end application with Vue that interacts with the back-end API: The API itself should follow RESTful design principles, using the basic HTTP verbs: GET, POST, PUT, and DELETE. Our goal is to design a backend RESTful API, powered by Python and FastAPI, for two resources - users and notes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |