与 api平台
有关的问题我确实启用了etag支持,并且我得到了etag属性作为响应,所以我尝试了...
curl -X GET "https://api.xxx/api/v1/contact/634" -H "accept: application/json" -H "Authorization: bearer token"
从响应9754440682af83aedd4b2327aaf96bf8中读取etag
curl -i -X GET "https://api.xxx/api/v1/contact/634" -H "If-None-Match: 9754440682af83aedd4b2327aaf96bf8" -H "accept: application/json" -H "Authorization: bearer token"
我希望响应应该是[]
api平台是否支持条件获取?
我做错什么了吗?
谢谢