Users
Name | Description |
---|---|
id | My id or 'me' |
token | token |
content_type | image/jpeg, image/gif |
Content-Type: application/json Host: example.org Cookie:
POST /api/v1/users/193/presigned_avatar_upload
{"token":"foobar190","content_type":"image/jpeg"}
X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1; mode=block X-Content-Type-Options: nosniff X-Download-Options: noopen X-Permitted-Cross-Domain-Policies: none Referrer-Policy: strict-origin-when-cross-origin Access-Control-Allow-Origin: * Access-Control-Allow-Methods: GET,POST,PUT,PATCH,DELETE Access-Control-Allow-Headers: Origin,Accept,Content-Type,X-Requested-With,X-CSRF-Token,X-API-KEY Content-Type: application/json; charset=utf-8 ETag: W/"4bbd6c181908e0a7768ac7d0cffe6676" Cache-Control: max-age=0, private, must-revalidate X-Request-Id: c48f4b39-b113-4ff7-9a14-c491901efc7d X-Runtime: 0.008419 Content-Length: 479
200 OK
{ "avatar_key": "e268716e-3bd7-4fc1-971f-0977aad30cf5.jpeg", "presigned_url": "https://foobar.s3.eu-west-1.amazonaws.com/300x300/e268716e-3bd7-4fc1-971f-0977aad30cf5.jpeg?x-amz-acl=private&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=foo%2F20220602%2Feu-west-1%2Fs3%2Faws4_request&X-Amz-Date=20220602T151647Z&X-Amz-Expires=60&X-Amz-SignedHeaders=content-type%3Bhost&X-Amz-Signature=5e9b4109376cda461a5c99549f6b4ebcc428cb75ead65e1d8943a2db6aab610d" }