Build a RESTAPI in Swift #8 Build the User and Course service
Vložit
- čas přidán 27. 08. 2024
- In this new video series we will be building a new RESTAPI for my new learning platform called Devscorch Academy. Devscorch Academy is a new platform which I will be launching later In 2023 and it is going to be an amazing project.
I decided to build this completely into the open, so this means I'm recording the complete development of the RESTAPI, The website and the mobile applications.
In this series we are building a RESTAPI using the Vapor Framework, a Swift framework which allows us to build Swift applications for the web.
So I hope you are as excited as I am and if you are ready and want to learn how to code RESTAPI's in Swift, just watch the whole series and see what happens ;)
For more articles and free content check out my website:
devscorch.com
Please follow me on Instagram, Facebook and Twitter
/ devscorch
/ devscorch
/ devscorch
About the discussion with your friend about deleting the user: You only need to delete the information that can be used to identify the user e.g. email and name :)
Keep up the good work! :D
Wow someone who actually listens and watches my videos haha. Respect Hendrik 😘.
Yeah true indeed. But I prefer a force or hard delete. So everything gone so if ever something happens they can’t come complain to me haha.
@@Exodai-Academy hahah, yeah that is what I prefer too - super paranoid about keeping their data after deletion 😅
I still have a question. The updateAt attribute in CourseModel needs to be triggered by .update(on:).
Is it not necessary to use save in func update but use update instead
.save does the same as .update() I just find .save easier to use
or (!~) In fact, this is the same as the first method (~~)
@40:52 Shouldn't it read? course.price = updateDTO.price ?? course.price
Yes exactly Good job spotting that mistake :)