后端挑战 #4
原文英文,约300词,阅读约需2分钟。发表于: 。Welcome to the four challenge of this series of backend development. In today challenge we will start with more complex projects. Today challenge main focus is to create the api for an already...
本次挑战是系列中的第四个,目标是为现有网站创建API。API需监听localhost:3131/api,并创建支持GET、POST、PUT、DELETE方法的“receipts”端点。GET方法返回格式为[{id: 1, name: 'TEST 1'}, {id: 2, name: 'TEST 2'}]的数据。POST和PUT方法接收JSON数据并返回资源。建议使用Docker镜像启动项目。下次挑战将涉及数据库。