--- http_interactions: - request: method: get uri: https://api.contentful.com/spaces/v2umtz8ths9v body: encoding: US-ASCII string: '' headers: User-Agent: - RubyContenfulManagementGem/0.2.1 Authorization: - Bearer Content-Type: - application/vnd.contentful.management.v1+json Content-Length: - '0' Host: - api.contentful.com response: status: code: 200 message: OK headers: "^access-Control-Expose-Headers": - Etag Accept-Ranges: - bytes 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-Allow-Origin: - "*" Access-Control-Max-Age: - '1728000' Cache-Control: - max-age=0 Content-Type: - application/vnd.contentful.management.v1+json Date: - Wed, 15 Oct 2014 11:23:26 GMT Etag: - '"35407b8a88882fe5717a4701910f6ce7"' Server: - nginx Status: - 200 OK X-Contentful-Request-Id: - 71a-1978666516 Content-Length: - '459' Connection: - keep-alive body: encoding: UTF-8 string: | { "sys":{ "type":"Space", "id":"v2umtz8ths9v", "version":1, "createdBy":{ "sys":{ "type":"Link", "linkType":"User", "id":"1E7acJL8I5XUXAMHQt9Grs" } }, "createdAt":"2014-08-21T13:32:11Z", "updatedBy":{ "sys":{ "type":"Link", "linkType":"User", "id":"1E7acJL8I5XUXAMHQt9Grs" } }, "updatedAt":"2014-08-21T13:32:12Z" }, "name":"CMA Demo Rails App"} http_version: recorded_at: Wed, 15 Oct 2014 11:25:50 GMT - request: method: get uri: https://api.contentful.com/spaces/v2umtz8ths9v/content_types body: encoding: US-ASCII string: '' headers: User-Agent: - RubyContenfulManagementGem/0.2.1 Authorization: - Bearer Content-Type: - application/vnd.contentful.management.v1+json Content-Length: - '0' Host: - api.contentful.com response: status: code: 200 message: OK headers: "^access-Control-Expose-Headers": - Etag 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-Allow-Origin: - "*" Access-Control-Max-Age: - '1728000' Cf-Space-Id: - v2umtz8ths9v Content-Type: - application/vnd.contentful.management.v1+json Date: - Wed, 15 Oct 2014 11:23:28 GMT Etag: - '"f6c5c18acdb33cb95bcdb21e41fa311f"' Server: - nginx X-Powered-By: - Express Content-Length: - '7265' Connection: - keep-alive body: encoding: UTF-8 string: | { "sys": { "type": "Array" }, "total": 4, "skip": 0, "limit": 100, "items": [ { "displayField": "title", "name": "Post", "description": "", "fields": [ { "id": "title", "name": "Title", "type": "Text", "localized": true, "uiid": "2sdir2f8kcg" }, { "id": "author", "name": "Author", "type": "Text", "localized": true, "uiid": "4x1018907pc" }, { "id": "body", "name": "Body", "type": "Text", "localized": true, "uiid": "4hj7cda89hc" }, { "id": "title_image", "name": "Title Image", "type": "Link", "linkType": "Asset", "required": true, "localized": true, "uiid": "4gcqrcma8lc" }, { "id": "second_image", "name": "Second Image", "type": "Link", "linkType": "Asset", "localized": true, "uiid": "40440elrugw" }, { "id": "category", "name": "Category", "type": "Link", "linkType": "Entry", "uiid": "49vicjvqsxs", "localized": true } ], "sys": { "id": "post_content_type", "type": "ContentType", "createdAt": "2014-08-21T13:32:30.401Z", "createdBy": { "sys": { "type": "Link", "linkType": "User", "id": "1E7acJL8I5XUXAMHQt9Grs" } }, "space": { "sys": { "type": "Link", "linkType": "Space", "id": "v2umtz8ths9v" } }, "firstPublishedAt": "2014-08-21T13:32:43.385Z", "publishedCounter": 2, "publishedAt": "2014-08-27T09:18:36.995Z", "publishedBy": { "sys": { "type": "Link", "linkType": "User", "id": "1E7acJL8I5XUXAMHQt9Grs" } }, "publishedVersion": 11, "version": 12, "updatedAt": "2014-08-27T09:18:37.003Z", "updatedBy": { "sys": { "type": "Link", "linkType": "User", "id": "1E7acJL8I5XUXAMHQt9Grs" } } } }, { "fields": [ { "name": "testowe", "id": "testowe", "type": "Link", "uiid": "3q907mcb4lc", "linkType": "Asset", "required": true, "localized": true, "validations": [] } ], "name": "test", "sys": { "id": "26eLfV14SIOeQkse44q4sw", "type": "ContentType", "createdAt": "2014-08-22T12:57:43.618Z", "createdBy": { "sys": { "type": "Link", "linkType": "User", "id": "1E7acJL8I5XUXAMHQt9Grs" } }, "space": { "sys": { "type": "Link", "linkType": "Space", "id": "v2umtz8ths9v" } }, "firstPublishedAt": "2014-08-22T12:57:53.093Z", "publishedCounter": 2, "version": 17, "updatedAt": "2014-10-14T13:07:06.808Z", "updatedBy": { "sys": { "type": "Link", "linkType": "User", "id": "1E7acJL8I5XUXAMHQt9Grs" } } } }, { "name": "Category", "description": "", "fields": [ { "id": "name", "name": "Name", "type": "Text", "localized": true, "validations": [ { "size": { "min": 2, "max": 222 } }, { "in": [ "dom", "chatka" ] } ] }, { "id": "description", "name": "Description", "type": "Text" }, { "id": "valid", "name": "Valid", "type": "Text", "validations": [ { "in": [ "foo", "bar" ] }, { "size": { "min": 10, "max": 15 } } ] }, { "id": "asset_valid", "name": "AssetValid", "type": "Link", "linkType": "Asset", "validations": [ { "linkMimetypeGroup": "pdfdocument" } ] }, { "id": "entry_valid", "name": "EntryValid", "type": "Link", "linkType": "Entry", "validations": [ { "linkContentType": [ "post_content_type" ] } ] } ], "sys": { "id": "category_content_type", "type": "ContentType", "createdAt": "2014-08-21T13:32:20.955Z", "createdBy": { "sys": { "type": "Link", "linkType": "User", "id": "1E7acJL8I5XUXAMHQt9Grs" } }, "space": { "sys": { "type": "Link", "linkType": "Space", "id": "v2umtz8ths9v" } }, "firstPublishedAt": "2014-08-21T13:32:27.109Z", "publishedCounter": 10, "version": 291, "updatedAt": "2014-10-15T11:14:07.918Z", "updatedBy": { "sys": { "type": "Link", "linkType": "User", "id": "1E7acJL8I5XUXAMHQt9Grs" } } } }, { "name": "Validation", "description": "", "fields": [ { "id": "number", "name": "Number", "type": "Number", "validations": [] }, { "id": "entries", "name": "entries", "type": "Array" }, { "id": "assets", "name": "Assets", "type": "Array" } ], "sys": { "id": "1JrDv4JJsYuY4KGEEgAsQU", "type": "ContentType", "createdAt": "2014-10-15T10:59:27.146Z", "createdBy": { "sys": { "type": "Link", "linkType": "User", "id": "1E7acJL8I5XUXAMHQt9Grs" } }, "space": { "sys": { "type": "Link", "linkType": "Space", "id": "v2umtz8ths9v" } }, "firstPublishedAt": "2014-10-15T11:02:51.145Z", "publishedCounter": 1, "publishedAt": "2014-10-15T11:02:51.145Z", "publishedBy": { "sys": { "type": "Link", "linkType": "User", "id": "1E7acJL8I5XUXAMHQt9Grs" } }, "publishedVersion": 101, "version": 105, "updatedAt": "2014-10-15T11:22:01.204Z", "updatedBy": { "sys": { "type": "Link", "linkType": "User", "id": "1E7acJL8I5XUXAMHQt9Grs" } } } } ] } http_version: recorded_at: Wed, 15 Oct 2014 11:25:54 GMT - request: method: get uri: https://api.contentful.com/spaces/v2umtz8ths9v/content_types/1JrDv4JJsYuY4KGEEgAsQU body: encoding: US-ASCII string: '' headers: User-Agent: - RubyContenfulManagementGem/0.2.1 Authorization: - Bearer Content-Type: - application/vnd.contentful.management.v1+json Content-Length: - '0' Host: - api.contentful.com response: status: code: 200 message: OK headers: "^access-Control-Expose-Headers": - Etag 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-Allow-Origin: - "*" Access-Control-Max-Age: - '1728000' Cf-Space-Id: - v2umtz8ths9v Content-Type: - application/vnd.contentful.management.v1+json Date: - Wed, 15 Oct 2014 11:23:32 GMT Etag: - '"02102a78a4bb56e30ec22c1239c88680"' Server: - nginx X-Powered-By: - Express Content-Length: - '1229' Connection: - keep-alive body: encoding: UTF-8 string: | { "name": "Validation", "description": "", "fields": [ { "id": "number", "name": "Number", "type": "Number", "validations": [] }, { "id": "entries", "name": "entries", "type": "Array" }, { "id": "assets", "name": "Assets", "type": "Array" } ], "sys": { "id": "1JrDv4JJsYuY4KGEEgAsQU", "type": "ContentType", "createdAt": "2014-10-15T10:59:27.146Z", "createdBy": { "sys": { "type": "Link", "linkType": "User", "id": "1E7acJL8I5XUXAMHQt9Grs" } }, "space": { "sys": { "type": "Link", "linkType": "Space", "id": "v2umtz8ths9v" } }, "firstPublishedAt": "2014-10-15T11:02:51.145Z", "publishedCounter": 1, "publishedAt": "2014-10-15T11:02:51.145Z", "publishedBy": { "sys": { "type": "Link", "linkType": "User", "id": "1E7acJL8I5XUXAMHQt9Grs" } }, "publishedVersion": 101, "version": 105, "updatedAt": "2014-10-15T11:22:01.204Z", "updatedBy": { "sys": { "type": "Link", "linkType": "User", "id": "1E7acJL8I5XUXAMHQt9Grs" } } } } http_version: recorded_at: Wed, 15 Oct 2014 11:25:56 GMT - request: method: put uri: https://api.contentful.com/spaces/v2umtz8ths9v/content_types/1JrDv4JJsYuY4KGEEgAsQU body: encoding: UTF-8 string: '{"name":"Validation","description":"","fields":[{"id":"number","name":"Number","type":"Number","validations":[{"range":{"min":30,"max":100}}]},{"id":"entries","name":"entries","type":"Array"},{"id":"assets","name":"Assets","type":"Array"}]}' headers: User-Agent: - RubyContenfulManagementGem/0.2.1 Authorization: - Bearer Content-Type: - application/vnd.contentful.management.v1+json X-Contentful-Version: - '105' Host: - api.contentful.com response: status: code: 200 message: OK headers: "^access-Control-Expose-Headers": - Etag 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-Allow-Origin: - "*" Access-Control-Max-Age: - '1728000' Cf-Space-Id: - v2umtz8ths9v Content-Type: - application/vnd.contentful.management.v1+json Date: - Wed, 15 Oct 2014 11:24:30 GMT Etag: - '"80b9f0832be61d447d42112684bfe779"' Server: - nginx X-Powered-By: - Express Content-Length: - '1335' Connection: - keep-alive body: encoding: UTF-8 string: | { "name": "Validation", "description": "", "fields": [ { "id": "number", "name": "Number", "type": "Number", "validations": [ { "range": { "min": 30, "max": 100 } } ] }, { "id": "entries", "name": "entries", "type": "Array" }, { "id": "assets", "name": "Assets", "type": "Array" } ], "sys": { "id": "1JrDv4JJsYuY4KGEEgAsQU", "type": "ContentType", "createdAt": "2014-10-15T10:59:27.146Z", "createdBy": { "sys": { "type": "Link", "linkType": "User", "id": "1E7acJL8I5XUXAMHQt9Grs" } }, "space": { "sys": { "type": "Link", "linkType": "Space", "id": "v2umtz8ths9v" } }, "firstPublishedAt": "2014-10-15T11:02:51.145Z", "publishedCounter": 1, "publishedAt": "2014-10-15T11:02:51.145Z", "publishedBy": { "sys": { "type": "Link", "linkType": "User", "id": "1E7acJL8I5XUXAMHQt9Grs" } }, "publishedVersion": 101, "version": 106, "updatedAt": "2014-10-15T11:24:30.885Z", "updatedBy": { "sys": { "type": "Link", "linkType": "User", "id": "1E7acJL8I5XUXAMHQt9Grs" } } } } http_version: recorded_at: Wed, 15 Oct 2014 11:26:55 GMT recorded_with: VCR 2.9.2