--- http_interactions: - request: method: post uri: https://api.contentful.com/spaces/yr5m0jky5hsh/assets/ body: encoding: UTF-8 string: '{"fields":{"title":{"en-US":"titlebyCreateAPI"},"description":{"en-US":"descByAPI"},"file":{"en-US":{"contentType":"image/jpeg","fileName":"pic1.jpg","upload":"https://upload.wikimedia.org/wikipedia/commons/c/c7/Gasometer_Berlin_Sch%C3%B6neberg_2011.jpg"}}}}' headers: User-Agent: - RubyContenfulManagementGem/0.0.1.pre Authorization: - Bearer Content-Type: - application/vnd.contentful.management.v1+json Host: - api.contentful.com response: status: code: 201 message: Created headers: Server: - nginx Date: - Wed, 06 Aug 2014 09:40:45 GMT Content-Type: - application/vnd.contentful.management.v1+json Content-Length: - '947' Connection: - keep-alive X-Powered-By: - Express Cf-Space-Id: - yr5m0jky5hsh Etag: - '"7056a17eedce575db34e50bf2dd0a0b0"' Access-Control-Allow-Origin: - "*" Access-Control-Allow-Headers: - Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization Access-Control-Allow-Methods: - DELETE,GET,HEAD,POST,PUT,OPTIONS "^access-Control-Expose-Headers": - Etag Access-Control-Max-Age: - '1728000' body: encoding: UTF-8 string: | { "fields": { "title": { "en-US": "titlebyCreateAPI" }, "description": { "en-US": "descByAPI" }, "file": { "en-US": { "contentType": "image/jpeg", "fileName": "pic1.jpg", "upload": "https://upload.wikimedia.org/wikipedia/commons/c/c7/Gasometer_Berlin_Sch%C3%B6neberg_2011.jpg" } } }, "sys": { "id": "RuJ0QuWbmKSIWGCwmwuyc", "type": "Asset", "version": 1, "createdAt": "2014-08-06T09:40:45.290Z", "createdBy": { "sys": { "type": "Link", "linkType": "User", "id": "1E7acJL8I5XUXAMHQt9Grs" } }, "space": { "sys": { "type": "Link", "linkType": "Space", "id": "yr5m0jky5hsh" } }, "updatedAt": "2014-08-06T09:40:45.290Z", "updatedBy": { "sys": { "type": "Link", "linkType": "User", "id": "1E7acJL8I5XUXAMHQt9Grs" } } } } http_version: recorded_at: Wed, 06 Aug 2014 09:40:45 GMT - request: method: put uri: https://api.contentful.com/spaces/yr5m0jky5hsh/assets/RuJ0QuWbmKSIWGCwmwuyc/files/en-US/process body: encoding: US-ASCII string: '' headers: User-Agent: - RubyContenfulManagementGem/0.0.1.pre Authorization: - Bearer Content-Type: - application/vnd.contentful.management.v1+json X-Contentful-Version: - '1' Content-Length: - '0' Host: - api.contentful.com response: status: code: 204 message: No Content headers: Server: - nginx Date: - Wed, 06 Aug 2014 09:40:45 GMT Content-Type: - application/vnd.contentful.management.v1+json Connection: - keep-alive X-Powered-By: - Express Cf-Space-Id: - yr5m0jky5hsh Access-Control-Allow-Origin: - "*" Access-Control-Allow-Headers: - Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization Access-Control-Allow-Methods: - DELETE,GET,HEAD,POST,PUT,OPTIONS "^access-Control-Expose-Headers": - Etag Access-Control-Max-Age: - '1728000' body: encoding: UTF-8 string: '' http_version: recorded_at: Wed, 06 Aug 2014 09:40:46 GMT - request: method: put uri: https://api.contentful.com/spaces/yr5m0jky5hsh/assets/RuJ0QuWbmKSIWGCwmwuyc/published body: encoding: US-ASCII string: '' headers: User-Agent: - RubyContenfulManagementGem/0.0.1.pre Authorization: - Bearer Content-Type: - application/vnd.contentful.management.v1+json X-Contentful-Version: - '2' Content-Length: - '0' Host: - api.contentful.com response: status: code: 200 message: OK headers: Server: - nginx Date: - Wed, 06 Aug 2014 09:40:51 GMT Content-Type: - application/vnd.contentful.management.v1+json Content-Length: - '1392' Connection: - keep-alive X-Powered-By: - Express Cf-Space-Id: - yr5m0jky5hsh Etag: - '"3ce9c46b0d033c107aff76e86ecf6f88"' Access-Control-Allow-Origin: - "*" Access-Control-Allow-Headers: - Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization Access-Control-Allow-Methods: - DELETE,GET,HEAD,POST,PUT,OPTIONS "^access-Control-Expose-Headers": - Etag Access-Control-Max-Age: - '1728000' body: encoding: UTF-8 string: | { "fields": { "title": { "en-US": "titlebyCreateAPI" }, "description": { "en-US": "descByAPI" }, "file": { "en-US": { "contentType": "image/jpeg", "fileName": "pic1.jpg", "details": { "image": { "width": 1280, "height": 1920 }, "size": 2584366 }, "url": "//images.contentful.com/yr5m0jky5hsh/RuJ0QuWbmKSIWGCwmwuyc/b6c3f5bf24cb07778695734538755e5f/pic1.jpg" } } }, "sys": { "id": "RuJ0QuWbmKSIWGCwmwuyc", "type": "Asset", "createdAt": "2014-08-06T09:40:45.290Z", "createdBy": { "sys": { "type": "Link", "linkType": "User", "id": "1E7acJL8I5XUXAMHQt9Grs" } }, "space": { "sys": { "type": "Link", "linkType": "Space", "id": "yr5m0jky5hsh" } }, "version": 3, "updatedAt": "2014-08-06T09:40:51.498Z", "updatedBy": { "sys": { "type": "Link", "linkType": "User", "id": "1E7acJL8I5XUXAMHQt9Grs" } }, "firstPublishedAt": "2014-08-06T09:40:51.498Z", "publishedCounter": 1, "publishedAt": "2014-08-06T09:40:51.498Z", "publishedBy": { "sys": { "type": "Link", "linkType": "User", "id": "1E7acJL8I5XUXAMHQt9Grs" } }, "publishedVersion": 2 } } http_version: recorded_at: Wed, 06 Aug 2014 09:40:51 GMT recorded_with: VCR 2.9.2