删除照片
开发中
DELETE
http://localhost:8080/photos/{photoId}
@PathVariable 注解用于将 URL 中的路径参数绑定到方法的参数上。通过这个注解,Spring 会将 URL 中指定的变量(在这个例子中是 photoId)的值传递给方法的 photoId 参数。
photoId 是动态参数,值是从请求 URL 中提取的。也就是说我们不用手动去输入参数,而是他可以通过照片的url提取
请求参数
Path 参数
photoId
integer
必需
Header 参数
Authorization
string
可选
默认值:
{{token}}