Mirage 发表于 2025-3-23 12:28:58
Creating the Book Application,I. Your book API will represent two main RESTful resources (books and authors) and a few other resources. You will be writing a RESTful API, and while I try to follow good practices, it might not be perfectly “RESTful.” I digress.类似思想 发表于 2025-3-23 14:37:09
http://reply.papertrans.cn/59/5891/589024/589024_12.png除草剂 发表于 2025-3-23 20:53:45
http://reply.papertrans.cn/59/5891/589024/589024_13.pngALT 发表于 2025-3-23 23:35:35
http://reply.papertrans.cn/59/5891/589024/589024_14.png抚育 发表于 2025-3-24 03:46:14
http://reply.papertrans.cn/59/5891/589024/589024_15.pngPalpable 发表于 2025-3-24 10:17:49
http://reply.papertrans.cn/59/5891/589024/589024_16.png盖他为秘密 发表于 2025-3-24 13:26:03
http://reply.papertrans.cn/59/5891/589024/589024_17.png过分自信 发表于 2025-3-24 17:49:56
Validation,You will start out with basic validation and then iteratively add features as you go. Like always, you create tests first.消灭 发表于 2025-3-24 20:10:44
Authors,Changing the existing migration is much cleaner when you are developing a new application; if your application is already in production, you must create another migration. You are creating a new migration in this case so that you can get familiar with how to write migrations for a production API that already has production data.旧式步枪 发表于 2025-3-24 23:28:14
The /authors API Resource,At this point, you should be familiar with the basics of defining routes and working with controllers.