def update_pet(request):
body = await request.json()
success = body == {
'id': 42,
'category': {
'name': 'extracute',
},
'name': 'Lili',
'photoUrls': [],
'status': 'sold',
}
if success:
return web.json_response({})
return web.HTTPBadRequest()
评论列表
文章目录