How To Do Warmup Practice For Django Part 2: Exercises On Post Requests To Database Through HTTPie

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ต.ค. 2024
  • Following tasks will be discussed and warmed up in this video
    Continuing with Post Requests
    - post with key-value
    * http -f POST :8000/reapp/post_multi/ name=superawesome age=25
    - put with key-value
    * http PUT :8000/reapp/put_name/ name=superawesome age=36
    - put with url idx
    * http PUT :8000/reapp/put_name_url/1
    - del with url idx
    * http DEL :8000/reapp/put_name_url/1
    Update the above end points and include the database connectivity also.
    - post task to task table in database
    * http -f POST :8000/reapp/post_task/ title="task1" description="super task" category=1
    - retrieve all tasks with get
    * http :8000/reapp/atasks/
    - retrieve one task
    * http :8000/reapp/onetask/3
    Adding relationship between the multiple tables and retrieving them
    * When creating ForeignKey and makingmigrations, django will complain that owner field cannot be empty. Choose the 2nd option to provide default value in models.py and it will proceed to make the migrations.
    - add owners
    * http -f POST :8000/reapp/regowner/ name=owner1 age=25 mail_id=owner1@localhost
    - add tasks
    * http -f POST :8000/reapp/post_task/ owner=owner1 title=task1 description="major task 1" category=0
    * when using the get_object_or_404, the return is a list, so subscript it with [0]
    Some additional Warmup Tasks
    - retrieve tasks that belong to a owner
    - Updating the owner name / email_id
    - Delete the owner based on owner name
    - Update the Task desc or Task title
    - Delete the task based on the task Id
    The data and the code is located at
    github.com/ins...
    I believe you will like this video, and subscribe to the channel. Further uploads related to Big Data, Large Language models and Artificial Intelligence will be shared to your TH-cam Dashboard Directly.
    The supporting playlists are
    The bard Project
    • Google Bard LLM : New ...
    Practical Projects Playlist
    • The Future is Here: La...
    Huggingface Playlist
    • Mastering NLP with Hug...
    Python Data Engineering Playlist
    • Learn to Data Engineer...
    Python Ecosystem of Libraries
    • Mastering the Python E...
    ChatGPT and AI Playlist
    • Learn about AI Languag...
    AWS and Python AWS Wrangler
    • Building a Powerful Da...
    Exploring the Realm of Generative AI: Hardware and Software Discussions
    • Exploring the Realm of...
    PS: Got a question or have a feedback on my content. Get in touch
    By leaving a Comment in the video
    topmate.io/insightbuilder?SocialProfile
    @mail insighthacker21@gmail.com
    @twitter Handle is @KQrios
    @medium / about
    @github github.com/Kam...

ความคิดเห็น •