From 1519b65ecc174231f976231b78ed8cc2c35a251a Mon Sep 17 00:00:00 2001 From: driatic Date: Wed, 28 Jun 2023 11:43:55 +0200 Subject: [PATCH 1/6] feat: rewrite generate test --- __test-utils__/create-migration.js | 6 ++-- __test-utils__/log.js | 4 +-- __tests__/generate.test.js | 16 +++++---- __tests__/list.test.js | 22 ++++++------- __tests__/migrate.test.js | 11 +++---- bin/commands/generate.js | 33 +++++++++++-------- bin/commands/rollback.js | 2 +- jest.setupFiles.js | 9 +++-- jest.setupFilesAfterEnv.js | 3 +- mocks/contentful/baseContentfulHandler.js | 4 +-- .../list/noAppliedMigrationsHandler.js | 4 +-- .../list/oneAppliedMigrationsHandler.js | 4 +-- traffic/interceptor.js | 2 +- 13 files changed, 64 insertions(+), 56 deletions(-) diff --git a/__test-utils__/create-migration.js b/__test-utils__/create-migration.js index 9c569d6..bd4a596 100644 --- a/__test-utils__/create-migration.js +++ b/__test-utils__/create-migration.js @@ -25,9 +25,9 @@ module.exports.createSimpleMigrationFile = () => { fs.writeFileSync(migrationPath, content, (err) => { if (err) { - console.error(err); + console.error(err) return; } - console.log('File created successfully!'); - }); + console.log('File created successfully!') + }) } \ No newline at end of file diff --git a/__test-utils__/log.js b/__test-utils__/log.js index 17f991c..603e4b1 100644 --- a/__test-utils__/log.js +++ b/__test-utils__/log.js @@ -3,8 +3,8 @@ module.exports.extractLogLinesFromConsole = () => { const originalLog = console.log; const allLogMessages = []; console.log = (...args) => { - allLogMessages.push(args.toString()); - originalLog(...args); //print to default console + allLogMessages.push(args.toString()) + originalLog(...args) //print to default console } return allLogMessages; } \ No newline at end of file diff --git a/__tests__/generate.test.js b/__tests__/generate.test.js index 0be8742..9e5f0fa 100644 --- a/__tests__/generate.test.js +++ b/__tests__/generate.test.js @@ -1,18 +1,22 @@ -const { execaNode } = require("execa"); const fs = require('fs') const { join } = require('path') +const {handler: generateCommand} = require("../bin/commands/generate") +const {extractLogLinesFromConsole} = require("../__test-utils__/log") +const {readdirSync} = require("fs") -//todo: rewrite to match refactored other tests? describe('generate', () => { it('should create a new migration file', async () => { + const stdout = extractLogLinesFromConsole() const migrationName = 'test-migration' - const { stdout } = await execaNode('./bin/cmp.js', ['generate', migrationName]) + await generateCommand({name: migrationName}) - const migrationFileName = stdout.split(' ').find((m) => m.indexOf('js') > -1) - const migrationFile = fs.readFileSync(`${process.env.MIGRATIONS_DIR}/${migrationFileName}`, 'utf-8') + let numberOfMigrationsInMigrationsDir = readdirSync(process.env.MIGRATIONS_DIR) + expect(numberOfMigrationsInMigrationsDir.length).toBe(1) + const migrationFileName = stdout[0].split(' ').find((m) => m.indexOf('js') > -1) + const migrationFilePath = `${process.env.MIGRATIONS_DIR}/${migrationFileName}` + const migrationFile = fs.readFileSync(migrationFilePath, 'utf-8') const template = fs.readFileSync(join(__dirname, '..', 'templates', 'migration.mustache'), 'utf8') - expect(migrationFile).toEqual(template) }) }) diff --git a/__tests__/list.test.js b/__tests__/list.test.js index b224c30..3c2dfcc 100644 --- a/__tests__/list.test.js +++ b/__tests__/list.test.js @@ -1,10 +1,10 @@ -const {setupMockedContentfulApi, closeMockedContentfulApi} = require("../mocks/contentful/baseContentfulHandler"); -const {handler: listCommand} = require("../bin/commands/list"); -const {extractLogLinesFromConsole} = require("../__test-utils__/log"); -const {listOneMigrationAppliedHandler} = require("../mocks/contentful/handlers/list/oneAppliedMigrationsHandler"); -const {listNoAppliedMigrationHandler} = require("../mocks/contentful/handlers/list/noAppliedMigrationsHandler"); -const {createSimpleMigrationFile} = require("../__test-utils__/create-migration"); -const {readdirSync} = require("fs"); +const {setupMockedContentfulApi, closeMockedContentfulApi} = require("../mocks/contentful/baseContentfulHandler") +const {handler: listCommand} = require("../bin/commands/list") +const {extractLogLinesFromConsole} = require("../__test-utils__/log") +const {listOneMigrationAppliedHandler} = require("../mocks/contentful/handlers/list/oneAppliedMigrationsHandler") +const {listNoAppliedMigrationHandler} = require("../mocks/contentful/handlers/list/noAppliedMigrationsHandler") +const {createSimpleMigrationFile} = require("../__test-utils__/create-migration") +const {readdirSync} = require("fs") describe('list', () => { it('should log that no migrations are applied', async () => { @@ -12,11 +12,11 @@ describe('list', () => { let numberOfMigrationsInMigrationsDir = readdirSync(process.env.MIGRATIONS_DIR).length; expect(numberOfMigrationsInMigrationsDir).toBe(0) - const stdout = extractLogLinesFromConsole(); + const stdout = extractLogLinesFromConsole() await listCommand() expect(stdout).toContain("Found no applied migrations") closeMockedContentfulApi() - }); + }) it('should log that migrations are applied', async () => { setupMockedContentfulApi(listOneMigrationAppliedHandler) @@ -25,11 +25,11 @@ describe('list', () => { let numberOfMigrationsInMigrationsDir = readdirSync(process.env.MIGRATIONS_DIR).length; expect(numberOfMigrationsInMigrationsDir).toBe(1) - const stdout = extractLogLinesFromConsole(); + const stdout = extractLogLinesFromConsole() await listCommand() expect(stdout).toContain("Applied migrations:") expect(stdout).toContain("20230609122547608 - new-migration") closeMockedContentfulApi() - }); + }) }) diff --git a/__tests__/migrate.test.js b/__tests__/migrate.test.js index ea4329d..74c6bae 100644 --- a/__tests__/migrate.test.js +++ b/__tests__/migrate.test.js @@ -1,14 +1,13 @@ const { execaNode -} = require("execa"); -const {handler: migrateCommand} = require("../bin/commands/migrate"); -const {extractLogLinesFromConsole} = require("../__test-utils__/log"); -const {setupMockedContentfulApi, closeMockedContentfulApi} = require("../mocks/contentful/baseContentfulHandler"); +} = require("execa") +const {handler: migrateCommand} = require("../bin/commands/migrate") +const {extractLogLinesFromConsole} = require("../__test-utils__/log") +const {setupMockedContentfulApi, closeMockedContentfulApi} = require("../mocks/contentful/baseContentfulHandler") describe('migrate', () => { - it('should demand user to use "--force" flag if running against master space', async () => { setupMockedContentfulApi() - const stdout = extractLogLinesFromConsole(); + const stdout = extractLogLinesFromConsole() await migrateCommand(false) expect(stdout).toContain("Executing migrations against master requires the --force flag.") closeMockedContentfulApi() diff --git a/bin/commands/generate.js b/bin/commands/generate.js index befae88..7c9146e 100755 --- a/bin/commands/generate.js +++ b/bin/commands/generate.js @@ -1,10 +1,9 @@ #! /usr/bin/env node - const fs = require('fs') -const { join } = require('path') +const {join} = require('path') const Mustache = require('mustache') -const { utcTimestampMs } = require('../../lib/date') -const { camelToKebabCase } = require('../../lib/string') +const {utcTimestampMs} = require('../../lib/date') +const {camelToKebabCase} = require('../../lib/string') const env = require('../../lib/env') const log = require('../../lib/log') @@ -19,15 +18,14 @@ exports.builder = (yargs) => { }) } -exports.handler = ({ name }) => { +exports.handler = async ({name}) => { try { const templatePath = fs.readFileSync(join(__dirname, '..', '..', 'templates', 'migration.mustache'), 'utf8') - const migrationContents = Mustache.render(templatePath) const migrationFileName = `${utcTimestampMs()}-${camelToKebabCase(name)}.js` const migrationsDir = env('MIGRATIONS_DIR') - fs.mkdir(migrationsDir, { recursive: true }, (err) => { + fs.mkdir(migrationsDir, {recursive: true}, (err) => { if (err) { throw err } @@ -35,14 +33,23 @@ exports.handler = ({ name }) => { const migrationPath = join(migrationsDir, migrationFileName) - fs.writeFile(migrationPath, migrationContents, { flag: 'w' }, (err) => { - if (err) { - throw err - } - log.success(`Migration file ${migrationFileName} created`) - }) + await writeFileAsync(migrationPath, migrationContents) + log.success(`Migration file ${migrationFileName} created`) } catch (e) { log.error('Migration file creation failed.', e) process.exitCode = 1 } } + +//todo: move to utility if we need this elsewhere +function writeFileAsync(filePath, data) { + return new Promise((resolve, reject) => { + fs.writeFile(filePath, data, (error) => { + if (error) { + reject(error) + } else { + resolve() + } + }) + }) +} diff --git a/bin/commands/rollback.js b/bin/commands/rollback.js index 0b01247..75aa2f2 100644 --- a/bin/commands/rollback.js +++ b/bin/commands/rollback.js @@ -5,7 +5,7 @@ const { apply, list } = require('../../src/migrator') const env = require('../../lib/env') const cliSelect = require('cli-select') const spaceModule = require('../../lib/contentful-space-manager') -const log = require("../../lib/log"); +const log = require("../../lib/log") exports.command = 'rollback' diff --git a/jest.setupFiles.js b/jest.setupFiles.js index 819989a..5e2e6a4 100644 --- a/jest.setupFiles.js +++ b/jest.setupFiles.js @@ -1,6 +1,5 @@ -const dotenv = require("dotenv"); -const {setupInterceptorServer} = require("./traffic/interceptor"); -dotenv.config({ path: './.env.test' }); +const dotenv = require("dotenv") +dotenv.config({ path: './.env.test' }) //mock lib/log since encoding characters from chalk makes testing difficult jest.mock('./lib/log', () => { @@ -11,5 +10,5 @@ jest.mock('./lib/log', () => { success: (...message) => console.log(...message), error: (...message) => console.log(...message), warn: (...message) => console.log(...message), - }; -}); \ No newline at end of file + } +}) \ No newline at end of file diff --git a/jest.setupFilesAfterEnv.js b/jest.setupFilesAfterEnv.js index 8ad0f8b..c92632a 100644 --- a/jest.setupFilesAfterEnv.js +++ b/jest.setupFilesAfterEnv.js @@ -1,11 +1,10 @@ const fs = require('fs') const Path = require('path') -const dotenv = require("dotenv"); beforeAll(() => { let migrationsDir = process.env.MIGRATIONS_DIR if (!fs.existsSync(migrationsDir)){ - fs.mkdirSync(migrationsDir); + fs.mkdirSync(migrationsDir) } }) diff --git a/mocks/contentful/baseContentfulHandler.js b/mocks/contentful/baseContentfulHandler.js index 44fc867..c81fa1e 100644 --- a/mocks/contentful/baseContentfulHandler.js +++ b/mocks/contentful/baseContentfulHandler.js @@ -1,6 +1,6 @@ const {setupServer} = require('msw/node') -const log = require("../../lib/log"); -const {rest} = require("msw"); +const log = require("../../lib/log") +const {rest} = require("msw") let mockedContentfulServer = null diff --git a/mocks/contentful/handlers/list/noAppliedMigrationsHandler.js b/mocks/contentful/handlers/list/noAppliedMigrationsHandler.js index 2566eb2..cefef87 100644 --- a/mocks/contentful/handlers/list/noAppliedMigrationsHandler.js +++ b/mocks/contentful/handlers/list/noAppliedMigrationsHandler.js @@ -1,5 +1,5 @@ -const {rest} = require("msw"); -const {baseURL} = require("../../baseContentfulHandler"); +const {rest} = require("msw") +const {baseURL} = require("../../baseContentfulHandler") module.exports.listNoAppliedMigrationHandler = [ rest.get(`${baseURL}/environments/master/entries`, (req, res, ctx) => { return res( diff --git a/mocks/contentful/handlers/list/oneAppliedMigrationsHandler.js b/mocks/contentful/handlers/list/oneAppliedMigrationsHandler.js index 0ecfaa1..6918304 100644 --- a/mocks/contentful/handlers/list/oneAppliedMigrationsHandler.js +++ b/mocks/contentful/handlers/list/oneAppliedMigrationsHandler.js @@ -1,5 +1,5 @@ -const {rest} = require("msw"); -const {baseURL} = require("../../baseContentfulHandler"); +const {rest} = require("msw") +const {baseURL} = require("../../baseContentfulHandler") module.exports.listOneMigrationAppliedHandler = [ rest.get(`${baseURL}/environments/master/entries`, (req, res, ctx) => { diff --git a/traffic/interceptor.js b/traffic/interceptor.js index e7dfa83..80b0740 100644 --- a/traffic/interceptor.js +++ b/traffic/interceptor.js @@ -3,7 +3,7 @@ const {rest} = require('msw') const fs = require('fs') const path = require('path') const {setupServer} = require('msw/node') -const log = require("../lib/log"); +const log = require("../lib/log") const requests = new Map() const transactions = new Set() From 086214f29ff9b58625e40174ab52d75aafe68581 Mon Sep 17 00:00:00 2001 From: driatic Date: Tue, 11 Jul 2023 10:37:51 +0200 Subject: [PATCH 2/6] feat: improvements --- __tests__/generate.test.js | 5 +-- __tests__/rollback.test.js | 13 ++++++ bin/cmp.js | 3 ++ mocks/contentful/baseContentfulHandler.js | 13 +++--- traffic/interceptor.js | 55 +++++++++++++---------- 5 files changed, 55 insertions(+), 34 deletions(-) create mode 100644 __tests__/rollback.test.js diff --git a/__tests__/generate.test.js b/__tests__/generate.test.js index 9e5f0fa..f0b638b 100644 --- a/__tests__/generate.test.js +++ b/__tests__/generate.test.js @@ -2,7 +2,6 @@ const fs = require('fs') const { join } = require('path') const {handler: generateCommand} = require("../bin/commands/generate") const {extractLogLinesFromConsole} = require("../__test-utils__/log") -const {readdirSync} = require("fs") describe('generate', () => { it('should create a new migration file', async () => { @@ -10,8 +9,8 @@ describe('generate', () => { const migrationName = 'test-migration' await generateCommand({name: migrationName}) - let numberOfMigrationsInMigrationsDir = readdirSync(process.env.MIGRATIONS_DIR) - expect(numberOfMigrationsInMigrationsDir.length).toBe(1) + let numberOfMigrationsInMigrationsDir = fs.readdirSync(process.env.MIGRATIONS_DIR).length + expect(numberOfMigrationsInMigrationsDir).toBe(1) const migrationFileName = stdout[0].split(' ').find((m) => m.indexOf('js') > -1) const migrationFilePath = `${process.env.MIGRATIONS_DIR}/${migrationFileName}` diff --git a/__tests__/rollback.test.js b/__tests__/rollback.test.js new file mode 100644 index 0000000..fa471e4 --- /dev/null +++ b/__tests__/rollback.test.js @@ -0,0 +1,13 @@ +const fs = require('fs') +const { join } = require('path') +const {handler: rollbackCommand} = require("../bin/commands/rollback") +const {extractLogLinesFromConsole} = require("../__test-utils__/log") +const {handler: migrateCommand} = require("../bin/commands/migrate"); + +describe('rollback', () => { + it('should demand user to use "--force" flag if running against master space', async () => { + const stdout = extractLogLinesFromConsole() + await rollbackCommand({force: false}) + expect(stdout).toContain("Executing migrations against master requires the --force flag.") + }) +}) diff --git a/bin/cmp.js b/bin/cmp.js index 0227850..4d5b461 100755 --- a/bin/cmp.js +++ b/bin/cmp.js @@ -1,5 +1,8 @@ #!/usr/bin/env node +const {setupInterceptorServer} = require("../traffic/interceptor") +setupInterceptorServer({logUnhandledRequests: true}) + require('yargs') .usage('Contentful migration tooling.') .commandDir('commands') diff --git a/mocks/contentful/baseContentfulHandler.js b/mocks/contentful/baseContentfulHandler.js index c81fa1e..47a6ee3 100644 --- a/mocks/contentful/baseContentfulHandler.js +++ b/mocks/contentful/baseContentfulHandler.js @@ -10,15 +10,14 @@ module.exports.setupMockedContentfulApi = (handlers) => { if (handlers == null) { handlers = [] } + let totalNumberOfRequests = 0 log.info("setting up mocked contentful rest server") const server = setupServer(...spacesHandler, ...localeHandler, ...masterEnvironmentHandler, ...handlers) //log unhandled requests server.listen({ onUnhandledRequest(req) { - log.warn( - `* Found an unhandled ${req.method} request to ${req.url.href}`, - ) + log.warn(`* Found an unhandled ${req.method} request to ${req.url.href}`,) }, }) @@ -28,9 +27,9 @@ module.exports.setupMockedContentfulApi = (handlers) => { server.events.on('request:start', (request, response) => { // Record every dispatched request. - log.info( - `* intercepting ${request.method} request to ${request.url}`, - ) + log.info(`* intercepting ${request.method} request to ${request.url}`,) + totalNumberOfRequests++ + log.info('Total number of requests: ' , totalNumberOfRequests) }) mockedContentfulServer = server @@ -38,7 +37,7 @@ module.exports.setupMockedContentfulApi = (handlers) => { module.exports.closeMockedContentfulApi = () => { console.log("CLOSING MOCKED CONTENTFUL SERVER") - if(mockedContentfulServer != null ){ + if (mockedContentfulServer != null) { mockedContentfulServer.close() } } diff --git a/traffic/interceptor.js b/traffic/interceptor.js index 80b0740..813ba0b 100644 --- a/traffic/interceptor.js +++ b/traffic/interceptor.js @@ -12,42 +12,49 @@ const server = setupServer() //this utility can be used to record all network traffic. // Each request and response during app lifetime is logged to json in the traffic/output directory. //run setupInterceptorServer() in bin/cmp.js for this to work. -module.exports.setupInterceptorServer = () => { +module.exports.setupInterceptorServer = ({logUnhandledRequests, logBypassedTraffic, saveTrafficToFile}) => { log.info("setting up network traffic interceptor server") //catch requests from underlying dependencies - server.listen({ - onUnhandledRequest(req) { - log.warn( - `* Found an unhandled ${req.method} request to ${req.url.href}`, - ) - }, - }) + if(logUnhandledRequests){ + server.listen({ + onUnhandledRequest(req) { + log.warn( + `* Found an unhandled ${req.method} request to ${req.url.href}`, + ) + }, + }) + } - server.events.on('request:start', (request, response) => { - // Record every dispatched request. - log.info( - `* intercepting ${request.method} request to ${request.url}`, - ) - requests.set(request.id, request) - transactions.add([request, response]) - }) + if(logBypassedTraffic){ + server.events.on('request:start', (request, response) => { + // Record every dispatched request. + log.info( + `* intercepting ${request.method} request to ${request.url}`, + ) + requests.set(request.id, request) + transactions.add([request, response]) + }) // Since we're not providing any request handlers // to the "setupServer" call, all responses will be // bypassed (performed as-is). This will allow us to // collect the actual responses. - server.events.on('response:bypass', (response, requestId) => { - log.info( - `* receiving status ${response.status} from ${requests.get(requestId).url}`, - ) - const request = requests.get(requestId) - transactions.add([request, response]) - }) + server.events.on('response:bypass', (response, requestId) => { + log.info( + `* receiving status ${response.status} from ${requests.get(requestId).url}`, + ) + const request = requests.get(requestId) + transactions.add([request, response]) + }) + } + process.on('exit', () => { log.info("handling exit") - this.writeTrafficToFile() + if(saveTrafficToFile){ + this.writeTrafficToFile() + } }) } From 7681ad66a2d3f46569706f703dbed314fcaa9cc0 Mon Sep 17 00:00:00 2001 From: driatic Date: Tue, 11 Jul 2023 11:04:33 +0200 Subject: [PATCH 3/6] feat: wip implement migration test --- __tests__/migrate.test.js | 74 +- .../all requests for one migration.txt | 24 + .../migrate/applyOneMigrationHandler.js | 2134 +++++++++++++++++ .../migrate/traffic-1687952117250.json | 1290 ++++++++++ .../handlers/migrate/uniqueRequests.txt | 6 + src/migrator.js | 1 + 6 files changed, 3526 insertions(+), 3 deletions(-) create mode 100644 mocks/contentful/handlers/migrate/all requests for one migration.txt create mode 100644 mocks/contentful/handlers/migrate/applyOneMigrationHandler.js create mode 100644 mocks/contentful/handlers/migrate/traffic-1687952117250.json create mode 100644 mocks/contentful/handlers/migrate/uniqueRequests.txt diff --git a/__tests__/migrate.test.js b/__tests__/migrate.test.js index 74c6bae..2fd1dca 100644 --- a/__tests__/migrate.test.js +++ b/__tests__/migrate.test.js @@ -3,13 +3,81 @@ const { execaNode const {handler: migrateCommand} = require("../bin/commands/migrate") const {extractLogLinesFromConsole} = require("../__test-utils__/log") const {setupMockedContentfulApi, closeMockedContentfulApi} = require("../mocks/contentful/baseContentfulHandler") +const {createSimpleMigrationFile} = require("../__test-utils__/create-migration") +const {applyOneMigrationHandler} = require("../mocks/contentful/handlers/migrate/applyOneMigrationHandler") describe('migrate', () => { - it('should demand user to use "--force" flag if running against master space', async () => { - setupMockedContentfulApi() +/* it('should demand user to use "--force" flag if running against master space', async () => { const stdout = extractLogLinesFromConsole() - await migrateCommand(false) + await migrateCommand({force: false}) expect(stdout).toContain("Executing migrations against master requires the --force flag.") + })*/ + +/* it('should log that no migrations to apply if migrations directory is empty', async () => { + setupMockedContentfulApi(applyOneMigrationHandler) + const stdout = extractLogLinesFromConsole() + + await migrateCommand({force: true}) + expect(stdout).toContain("No migrations to apply.") + + closeMockedContentfulApi() + })*/ + + + it('should migrate if force flag is true', async () => { + setupMockedContentfulApi(applyOneMigrationHandler) + const stdout = extractLogLinesFromConsole() + + createSimpleMigrationFile() + await migrateCommand({force: true}) + + expect(stdout).toContain("About to apply the following migrations:") + //expect(stdout).toContain("🎉 Migration successful") + closeMockedContentfulApi() }) }) + +/* + About to apply the following migrations: + 20230609122547608 - new-migration + + Creating environment 2023-06-28-11-35-08. + Environment 2023-06-28-11-35-08 created. + Updating api key access to new env 2023-06-28-11-35-08. + + Api key access to new env 2023-06-28-11-35-08 updated. + + Migrating. + + The following migration has been planned + +Environment: 2023-06-28-11-35-08 + +Create Content Type testContentType +- name: "Test content type" +- description: "" +- displayField: "testContentId" + +Create field testContentId +- name: "test content id" +- type: "Symbol" + +Publish Content Type testContentType +❯ Create Content Type testContentType + ⠋ Making requests (1/2) +❯ Create Content Type testContentType +❯ Create Content Type testContentType + ⠸ Making requests (2/2) +❯ Create Content Type testContentType +✔ Create Content Type testContentType +🎉 Migration successful + + Migrated. + Switching environment alias. + + Environment alias switched successfully. + handling exit + +*/ + diff --git a/mocks/contentful/handlers/migrate/all requests for one migration.txt b/mocks/contentful/handlers/migrate/all requests for one migration.txt new file mode 100644 index 0000000..6b19060 --- /dev/null +++ b/mocks/contentful/handlers/migrate/all requests for one migration.txt @@ -0,0 +1,24 @@ +GET request to https://api.contentful.com/spaces/bo6ijs14u5ox +GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master +GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/locales +GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types/appliedMigrations +GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/entries?content_type=appliedMigrations&limit=1000 +GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments +PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-29-08-45-20 +GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys +PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys/1Yrt2lSOGbwEjPWJVg6yJA +GET request to https://api.contentful.com/spaces/bo6ijs14u5ox +GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-29-08-45-20 +GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-29-08-45-20/locales +GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-29-08-45-20/content_types/appliedMigrations +GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-29-08-45-20/entries?content_type=appliedMigrations&limit=1000 +GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-29-08-45-20/content_types?limit=100&order=sys.createdAt&sys.id[in]=testContentType&skip=0 +GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-29-08-45-20/locales?limit=100&order=sys.createdAt&skip=0 +GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-29-08-45-20/entries?content_type=appliedMigrations&limit=1000 +POST request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-29-08-45-20/entries +PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-29-08-45-20/entries/2WP3BQMevIXiCXPA6GCIPH/published +GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master +GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master +PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master +GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-29-08-45-03 +DELETE request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-29-08-45-03 \ No newline at end of file diff --git a/mocks/contentful/handlers/migrate/applyOneMigrationHandler.js b/mocks/contentful/handlers/migrate/applyOneMigrationHandler.js new file mode 100644 index 0000000..e45b156 --- /dev/null +++ b/mocks/contentful/handlers/migrate/applyOneMigrationHandler.js @@ -0,0 +1,2134 @@ +const {rest} = require("msw"); +const {baseURL} = require("../../baseContentfulHandler"); + +const timestampPattern = /\d{4}-\d{2}-\d{2}-\d{2}-\d{2}-\d{2}$/ +module.exports.applyOneMigrationHandler = [ + //todo: diff check response type, might differ between subsequent requests + //todo: also handle response with query params: entries?content_type=appliedMigrations&limit=1000 + rest.get(`${baseURL}/environments/master/content_types/appliedMigrations`, (req, res, ctx) => { + return res( + ctx.status(200), + ctx.json({ + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "TEST_SPACE_ID" + } + }, + "id": "appliedMigrations", + "type": "ContentType", + "createdAt": "2023-06-02T08:50:44.787Z", + "updatedAt": "2023-06-05T14:20:22.754Z", + "environment": { + "sys": { + "id": "master", + "type": "Link", + "linkType": "Environment" + } + }, + "publishedVersion": 3, + "publishedAt": "2023-06-05T14:20:22.754Z", + "firstPublishedAt": "2023-06-02T08:50:45.349Z", + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "publishedCounter": 2, + "version": 4, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + } + }, + "displayField": "timestamp", + "name": "Applied migrations", + "description": "", + "fields": [ + { + "id": "timestamp", + "name": "Timestamp", + "type": "Symbol", + "localized": false, + "required": true, + "validations": [], + "disabled": false, + "omitted": false + }, + { + "id": "name", + "name": "Name", + "type": "Symbol", + "localized": false, + "required": true, + "validations": [], + "disabled": false, + "omitted": false + }, + { + "id": "batch", + "name": "Batch number", + "type": "Integer", + "localized": false, + "required": true, + "validations": [], + "disabled": false, + "omitted": false + } + ] + }), + ) + }), + rest.get(`${baseURL}/environments/master/entries`, (req, res, ctx) => { + return res( + ctx.status(200), + ctx.json({ + "sys": { + "type": "Array" + }, + "total": 2, + "skip": 0, + "limit": 1000, + "items": [ + { + "metadata": { + "tags": [] + }, + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "TEST_SPACE_ID" + } + }, + "id": "5UALu1mPBVs3arGpz6BQOS", + "type": "Entry", + "createdAt": "2023-06-26T13:47:13.646Z", + "updatedAt": "2023-06-26T13:47:13.646Z", + "environment": { + "sys": { + "id": "master", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "publishedCounter": 0, + "version": 1, + "automationTags": [], + "contentType": { + "sys": { + "type": "Link", + "linkType": "ContentType", + "id": "appliedMigrations" + } + } + }, + "fields": { + "timestamp": { + "en-US": "20230602075003097 (1)" + }, + "name": { + "en-US": "inititial-migration" + }, + "batch": { + "en-US": 1 + } + } + }, + { + "metadata": { + "tags": [] + }, + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "TEST_SPACE_ID" + } + }, + "id": "6iq3xP0EsGS9NzJoWvyblp", + "type": "Entry", + "createdAt": "2023-06-26T13:47:12.064Z", + "updatedAt": "2023-06-26T13:47:12.064Z", + "environment": { + "sys": { + "id": "master", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "publishedCounter": 0, + "version": 1, + "automationTags": [], + "contentType": { + "sys": { + "type": "Link", + "linkType": "ContentType", + "id": "appliedMigrations" + } + } + }, + "fields": { + "timestamp": { + "en-US": "20230602075003097 (1)" + }, + "name": { + "en-US": "inititial-migration" + }, + "batch": { + "en-US": 1 + } + } + } + ] + }), + ) + }), + rest.get(`${baseURL}/environments`, (req, res, ctx) => { + return res( + ctx.status(200), + ctx.json({ + "total": 3, + "limit": 25, + "skip": 0, + "sys": { + "type": "Array" + }, + "items": [ + { + "name": "test", + "sys": { + "type": "Environment", + "id": "test", + "version": 3, + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "TEST_SPACE_ID" + } + }, + "status": { + "sys": { + "type": "Link", + "linkType": "Status", + "id": "ready" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "createdAt": "2023-06-08T12:21:36Z", + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "updatedAt": "2023-06-08T12:21:36Z", + "aliases": [] + } + }, + { + "name": "2023-06-28-11-33-42", + "sys": { + "type": "Environment", + "id": "2023-06-28-11-33-42", + "version": 3, + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "TEST_SPACE_ID" + } + }, + "status": { + "sys": { + "type": "Link", + "linkType": "Status", + "id": "ready" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "createdAt": "2023-06-28T11:33:43Z", + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "updatedAt": "2023-06-28T11:33:43Z", + "aliases": [ + { + "sys": { + "type": "Link", + "linkType": "EnvironmentAlias", + "id": "master" + } + } + ] + } + }, + { + "name": "2023-06-28-11-33-42", + "sys": { + "type": "Environment", + "id": "master", + "aliasedEnvironment": { + "sys": { + "type": "Link", + "linkType": "Environment", + "id": "2023-06-28-11-33-42" + } + }, + "version": 3, + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "TEST_SPACE_ID" + } + }, + "status": { + "sys": { + "type": "Link", + "linkType": "Status", + "id": "ready" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "createdAt": "2023-06-28T11:33:43Z", + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "updatedAt": "2023-06-28T11:33:43Z" + } + } + ] + }), + ) + }), + + //wildcard to handle dynamic timestamp from contentful + rest.put(`${baseURL}/environments/*`, (req, res, ctx) => { + return res( + ctx.status(201), + ctx.json({ + "name": "2023-06-28-11-35-08", + "sys": { + "type": "Environment", + "id": "2023-06-28-11-35-08", + "version": 1, + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "TEST_SPACE_ID" + } + }, + "status": { + "sys": { + "type": "Link", + "linkType": "Status", + "id": "queued" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "createdAt": "2023-06-28T11:35:09Z", + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "updatedAt": "2023-06-28T11:35:09Z", + "aliases": [] + } + }), + ) + }), + + rest.get(`${baseURL}/api_keys`, (req, res, ctx) => { + return res( + ctx.status(200), + ctx.json({ + "total": 1, + "limit": 25, + "skip": 0, + "sys": { + "type": "Array" + }, + "items": [ + { + "name": "Example space token 1", + "description": "This token is used by an example app. It is coupled with the content previews.", + "accessToken": "c11ea00b60091e878e7966c52e1138ad3adf5ff00a99c5dde77cb05a83743045", + "policies": [ + { + "effect": "allow", + "actions": "all" + } + ], + "sys": { + "type": "ApiKey", + "id": "1Yrt2lSOGbwEjPWJVg6yJA", + "version": 79, + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "TEST_SPACE_ID" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "createdAt": "2018-09-17T08:26:09Z", + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "updatedAt": "2023-06-28T11:33:43Z" + }, + "environments": [ + { + "sys": { + "id": "master", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-02-08-50-46", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-11-14-05", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-11-18-44", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-11-19-09", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-11-19-33", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-08-11", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-09-36", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-13-09", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-21-53", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-25-50", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-29-49", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-30-33", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-30-50", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-35-27", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-58-23", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-10-01", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-10-44", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-12-01", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-12-19", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-12-46", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-13-12", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-14-12", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-18-45", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-33-50", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-35-12", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-35-50", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-36-46", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-38-59", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-40-09", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-40-30", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-52-54", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-53-49", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-03-45", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-04-30", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-14-56", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-15-34", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-24-35", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-25-05", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-25-47", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-38-32", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-51-32", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-56-58", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-57-36", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-59-18", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-16-02-06", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-16-02-58", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-16-05-53", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-16-07-40", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-07-07-23-21", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-07-07-23-46", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-07-08-05-31", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-07-08-38-35", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-08-08-08-37", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-08-08-08-56", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-12-15-50", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-12-16-29", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-12-17-53", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-12-18-54", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-12-19-15", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-12-22-38", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-12-26-32", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-12-56-57", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-13-49-12", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-13-52-52", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-13-53-47", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-14-08-27-25", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-26-13-46-48", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-26-14-05-43", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-26-14-07-29", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-26-14-11-02", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-26-14-12-01", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-26-14-12-36", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-27-08-53-00", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-28-07-02-37", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-28-11-32-12", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-28-11-32-44", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-28-11-33-42", + "type": "Link", + "linkType": "Environment" + } + } + ], + "preview_api_key": { + "sys": { + "type": "Link", + "linkType": "PreviewApiKey", + "id": "1YsyWIrKbsWrbImKsd9Bqq" + } + } + } + ] + }), + ) + }), + + //wildcard to handle api_key PUT request with dynamic timestamp + rest.put(`${baseURL}/api_keys/*`, (req, res, ctx) => { + return res( + ctx.status(201), + ctx.json({ + "name": "Example space token 1", + "description": "This token is used by an example app. It is coupled with the content previews.", + "accessToken": "c11ea00b60091e878e7966c52e1138ad3adf5ff00a99c5dde77cb05a83743045", + "policies": [ + { + "effect": "allow", + "actions": "all" + } + ], + "sys": { + "type": "ApiKey", + "id": "1Yrt2lSOGbwEjPWJVg6yJA", + "version": 80, + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "TEST_SPACE_ID" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "createdAt": "2018-09-17T08:26:09Z", + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "updatedAt": "2023-06-28T11:35:10Z" + }, + "environments": [ + { + "sys": { + "id": "master", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-02-08-50-46", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-11-14-05", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-11-18-44", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-11-19-09", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-11-19-33", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-08-11", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-09-36", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-13-09", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-21-53", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-25-50", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-29-49", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-30-33", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-30-50", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-35-27", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-58-23", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-10-01", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-10-44", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-12-01", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-12-19", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-12-46", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-13-12", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-14-12", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-18-45", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-33-50", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-35-12", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-35-50", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-36-46", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-38-59", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-40-09", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-40-30", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-52-54", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-53-49", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-03-45", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-04-30", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-14-56", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-15-34", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-24-35", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-25-05", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-25-47", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-38-32", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-51-32", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-56-58", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-57-36", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-59-18", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-16-02-06", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-16-02-58", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-16-05-53", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-16-07-40", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-07-07-23-21", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-07-07-23-46", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-07-08-05-31", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-07-08-38-35", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-08-08-08-37", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-08-08-08-56", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-12-15-50", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-12-16-29", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-12-17-53", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-12-18-54", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-12-19-15", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-12-22-38", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-12-26-32", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-12-56-57", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-13-49-12", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-13-52-52", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-13-53-47", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-14-08-27-25", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-26-13-46-48", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-26-14-05-43", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-26-14-07-29", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-26-14-11-02", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-26-14-12-01", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-26-14-12-36", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-27-08-53-00", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-28-07-02-37", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-28-11-32-12", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-28-11-32-44", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-28-11-33-42", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-28-11-35-08", + "type": "Link", + "linkType": "Environment" + } + } + ], + "preview_api_key": { + "sys": { + "type": "Link", + "linkType": "PreviewApiKey", + "id": "1YsyWIrKbsWrbImKsd9Bqq" + } + } + }), + ) + }), + + rest.get(`${baseURL}/environments/*/locales`, (req, res, ctx) => { + return res( + ctx.status(200), + ctx.json({ + "sys": { + "type": "Array" + }, + "total": 1, + "skip": 0, + "limit": 100, + "items": [ + { + "name": "English (United States)", + "internal_code": "en-US", + "code": "en-US", + "fallbackCode": null, + "default": true, + "contentManagementApi": true, + "contentDeliveryApi": true, + "optional": false, + "sys": { + "type": "Locale", + "id": "1VDLlb9oKX4EE2oI6p9kMa", + "version": 1, + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "TEST_SPACE_ID" + } + }, + "environment": { + "sys": { + "type": "Link", + "linkType": "Environment", + "id": "2023-06-28-11-35-08", + "uuid": "ddefb40d-4099-450d-8d99-49c07db971ab" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "createdAt": "2023-06-28T11:35:09Z", + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "updatedAt": "2023-06-28T11:35:09Z" + } + } + ] + }), + ) + }), + + //todo: GET /locales?limit=100&order=sys.createdAt&skip=0 + + //todo: POST /entries + rest.post(`${baseURL}/environments/*/entries`, (req, res, ctx) => { + return res( + ctx.status(200), + ctx.json({ + "metadata": { + "tags": [] + }, + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bo6ijs14u5ox" + } + }, + "id": "P9aHLvrSfpLvqzb7o280G", + "type": "Entry", + "createdAt": "2023-06-28T11:35:14.661Z", + "updatedAt": "2023-06-28T11:35:14.661Z", + "environment": { + "sys": { + "id": "2023-06-28-11-35-08", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "publishedCounter": 0, + "version": 1, + "automationTags": [], + "contentType": { + "sys": { + "type": "Link", + "linkType": "ContentType", + "id": "appliedMigrations" + } + } + }, + "fields": { + "timestamp": { + "en-US": "20230609122547608" + }, + "name": { + "en-US": "new-migration" + }, + "batch": { + "en-US": 2 + } + } + }), + ) + }), + + //todo: PUT https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-29-08-45-20/entries/2WP3BQMevIXiCXPA6GCIPH/published + rest.put(`${baseURL}/environments/*/entries/*/published`, (req, res, ctx) => { + return res( + ctx.status(201), + ctx.json({ + "metadata": { + "tags": [] + }, + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bo6ijs14u5ox" + } + }, + "id": "P9aHLvrSfpLvqzb7o280G", + "type": "Entry", + "createdAt": "2023-06-28T11:35:14.661Z", + "updatedAt": "2023-06-28T11:35:15.127Z", + "environment": { + "sys": { + "id": "2023-06-28-11-35-08", + "type": "Link", + "linkType": "Environment" + } + }, + "publishedVersion": 1, + "publishedAt": "2023-06-28T11:35:15.127Z", + "firstPublishedAt": "2023-06-28T11:35:15.127Z", + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "publishedCounter": 1, + "version": 2, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "automationTags": [], + "contentType": { + "sys": { + "type": "Link", + "linkType": "ContentType", + "id": "appliedMigrations" + } + } + }, + "fields": { + "timestamp": { + "en-US": "20230609122547608" + }, + "name": { + "en-US": "new-migration" + }, + "batch": { + "en-US": 2 + } + } + }), + ) + }), + + //wildcard to handle environments GET request with dynamic timestamp + //https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08 + rest.get(`${baseURL}/environments/*`, (req, res, ctx) => { + return res( + ctx.status(200), + ctx.json({ + "name": "2023-06-28-11-35-08", + "sys": { + "type": "Environment", + "id": "2023-06-28-11-35-08", + "version": 3, + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "TEST_SPACE_ID" + } + }, + "status": { + "sys": { + "type": "Link", + "linkType": "Status", + "id": "ready" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "createdAt": "2023-06-28T11:35:09Z", + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "updatedAt": "2023-06-28T11:35:09Z", + "aliases": [] + } + }), + ) + }), + + //Found an unhandled DELETE request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08 + //wildcard to handle environments DELETE request with dynamic timestamp + rest.delete(`${baseURL}/environments/*`, (req, res, ctx) => { + + console.log("HITTING DELETE") + return res( + ctx.status(204), + ctx.json({ + "name": "2023-06-28-11-35-08", + "sys": { + "type": "Environment", + "id": "2023-06-28-11-35-08", + "version": 3, + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "TEST_SPACE_ID" + } + }, + "status": { + "sys": { + "type": "Link", + "linkType": "Status", + "id": "ready" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "createdAt": "2023-06-28T11:35:09Z", + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "updatedAt": "2023-06-28T11:35:09Z", + "aliases": [] + } + }), + ) + }), +] + + + +let responses = [ +/* { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master/content_types/appliedMigrations", + "method": "GET", + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"appliedMigrations\",\"type\":\"ContentType\",\"createdAt\":\"2023-06-02T08:50:44.787Z\",\"updatedAt\":\"2023-06-05T14:20:22.754Z\",\"environment\":{\"sys\":{\"id\":\"master\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"publishedVersion\":3,\"publishedAt\":\"2023-06-05T14:20:22.754Z\",\"firstPublishedAt\":\"2023-06-02T08:50:45.349Z\",\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":2,\"version\":4,\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}}},\"displayField\":\"timestamp\",\"name\":\"Applied migrations\",\"description\":\"\",\"fields\":[{\"id\":\"timestamp\",\"name\":\"Timestamp\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"name\",\"name\":\"Name\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"batch\",\"name\":\"Batch number\",\"type\":\"Integer\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" + },*/ +/* { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master/entries?content_type=appliedMigrations&limit=1000", + "method": "GET", + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":2,\"skip\":0,\"limit\":1000,\"items\":[{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"5UALu1mPBVs3arGpz6BQOS\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:13.646Z\",\"updatedAt\":\"2023-06-26T13:47:13.646Z\",\"environment\":{\"sys\":{\"id\":\"master\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}},{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"6iq3xP0EsGS9NzJoWvyblp\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:12.064Z\",\"updatedAt\":\"2023-06-26T13:47:12.064Z\",\"environment\":{\"sys\":{\"id\":\"master\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}}]}\n" + },*/ + /*{ + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments", + "method": "GET", + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"total\":3,\n \"limit\":25,\n \"skip\":0,\n \"sys\":{\n \"type\":\"Array\"\n },\n \"items\":[\n {\n \"name\":\"test\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"test\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-08T12:21:36Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-08T12:21:36Z\",\n \"aliases\":[]\n }\n },\n {\n \"name\":\"2023-06-28-11-33-42\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:33:43Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:43Z\",\n \"aliases\":[\n {\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"EnvironmentAlias\",\n \"id\":\"master\"\n }\n }\n ]\n }\n },\n {\n \"name\":\"2023-06-28-11-33-42\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"master\",\n \"aliasedEnvironment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\"\n }\n },\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:33:43Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:43Z\"\n }\n }\n ]\n}\n\n" + },*/ + /*{ + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08", + "method": "PUT", + "status": 201, + "statusText": "Created", + "headers": {}, + "body": "{\n \"name\":\"2023-06-28-11-35-08\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-06-28-11-35-08\",\n \"version\":1,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"queued\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:35:09Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:35:09Z\",\n \"aliases\":[]\n }\n}\n\n" + },*/ +/* { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/api_keys", + "method": "GET", + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"total\":1,\n \"limit\":25,\n \"skip\":0,\n \"sys\":{\n \"type\":\"Array\"\n },\n \"items\":[\n {\n \"name\":\"Example space token 1\",\n \"description\":\"This token is used by an example app. It is coupled with the content previews.\",\n \"accessToken\":\"c11ea00b60091e878e7966c52e1138ad3adf5ff00a99c5dde77cb05a83743045\",\n \"policies\":[\n {\n \"effect\":\"allow\",\n \"actions\":\"all\"\n }\n ],\n \"sys\":{\n \"type\":\"ApiKey\",\n \"id\":\"1Yrt2lSOGbwEjPWJVg6yJA\",\n \"version\":79,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2018-09-17T08:26:09Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:43Z\"\n },\n \"environments\":[\n {\n \"sys\":{\n \"id\":\"master\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-02-08-50-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-14-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-18-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-08-11\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-09-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-13-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-21-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-25-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-29-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-35-27\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-58-23\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-19\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-13-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-14-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-18-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-33-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-36-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-38-59\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-52-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-53-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-03-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-04-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-14-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-15-34\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-24-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-38-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-51-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-56-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-57-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-59-18\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-06\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-05-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-07-40\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-21\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-05-31\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-38-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-15-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-16-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-17-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-18-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-19-15\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-22-38\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-26-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-56-57\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-49-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-52-52\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-53-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-14-08-27-25\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-13-46-48\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-05-43\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-07-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-11-02\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-27-08-53-00\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-07-02-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-33-42\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n }\n ],\n \"preview_api_key\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"PreviewApiKey\",\n \"id\":\"1YsyWIrKbsWrbImKsd9Bqq\"\n }\n }\n }\n ]\n}\n\n" + },*/ + { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/api_keys/1Yrt2lSOGbwEjPWJVg6yJA", + "method": "PUT", + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"name\":\"Example space token 1\",\n \"description\":\"This token is used by an example app. It is coupled with the content previews.\",\n \"accessToken\":\"c11ea00b60091e878e7966c52e1138ad3adf5ff00a99c5dde77cb05a83743045\",\n \"policies\":[\n {\n \"effect\":\"allow\",\n \"actions\":\"all\"\n }\n ],\n \"sys\":{\n \"type\":\"ApiKey\",\n \"id\":\"1Yrt2lSOGbwEjPWJVg6yJA\",\n \"version\":80,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2018-09-17T08:26:09Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:35:10Z\"\n },\n \"environments\":[\n {\n \"sys\":{\n \"id\":\"master\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-02-08-50-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-14-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-18-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-08-11\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-09-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-13-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-21-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-25-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-29-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-35-27\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-58-23\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-19\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-13-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-14-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-18-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-33-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-36-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-38-59\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-52-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-53-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-03-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-04-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-14-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-15-34\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-24-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-38-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-51-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-56-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-57-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-59-18\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-06\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-05-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-07-40\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-21\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-05-31\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-38-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-15-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-16-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-17-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-18-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-19-15\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-22-38\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-26-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-56-57\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-49-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-52-52\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-53-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-14-08-27-25\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-13-46-48\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-05-43\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-07-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-11-02\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-27-08-53-00\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-07-02-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-33-42\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-35-08\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n }\n ],\n \"preview_api_key\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"PreviewApiKey\",\n \"id\":\"1YsyWIrKbsWrbImKsd9Bqq\"\n }\n }\n}\n\n" + }, + { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID", + "method": "GET", + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"name\":\"TypeOne\",\n \"sys\":{\n \"type\":\"Space\",\n \"id\":\"TEST_SPACE_ID\",\n \"version\":7,\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2018-09-17T08:26:06Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2022-12-15T09:11:48Z\",\n \"organization\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Organization\",\n \"id\":\"1kUUWhojvGtUmRyhXfqSwK\"\n }\n }\n }\n}\n\n" + }, +/* { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08", + "method": "GET", + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"name\":\"2023-06-28-11-35-08\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-06-28-11-35-08\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:35:09Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:35:09Z\",\n \"aliases\":[]\n }\n}\n\n" + },*/ +/* { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/locales", + "method": "GET", + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":1,\"skip\":0,\"limit\":100,\"items\":[{\"name\":\"English (United States)\",\"internal_code\":\"en-US\",\"code\":\"en-US\",\"fallbackCode\":null,\"default\":true,\"contentManagementApi\":true,\"contentDeliveryApi\":true,\"optional\":false,\"sys\":{\"type\":\"Locale\",\"id\":\"1VDLlb9oKX4EE2oI6p9kMa\",\"version\":1,\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"environment\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Environment\",\"id\":\"2023-06-28-11-35-08\",\"uuid\":\"ddefb40d-4099-450d-8d99-49c07db971ab\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"createdAt\":\"2023-06-28T11:35:09Z\",\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedAt\":\"2023-06-28T11:35:09Z\"}}]}\n" + },*/ + { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/content_types/appliedMigrations", + "method": "GET", + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"appliedMigrations\",\"type\":\"ContentType\",\"createdAt\":\"2023-06-02T08:50:44.787Z\",\"updatedAt\":\"2023-06-05T14:20:22.754Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"publishedVersion\":3,\"publishedAt\":\"2023-06-05T14:20:22.754Z\",\"firstPublishedAt\":\"2023-06-02T08:50:45.349Z\",\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":2,\"version\":4,\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}}},\"displayField\":\"timestamp\",\"name\":\"Applied migrations\",\"description\":\"\",\"fields\":[{\"id\":\"timestamp\",\"name\":\"Timestamp\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"name\",\"name\":\"Name\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"batch\",\"name\":\"Batch number\",\"type\":\"Integer\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" + }, + { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/entries?content_type=appliedMigrations&limit=1000", + "method": "GET", + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":2,\"skip\":0,\"limit\":1000,\"items\":[{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"5UALu1mPBVs3arGpz6BQOS\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:13.646Z\",\"updatedAt\":\"2023-06-26T13:47:13.646Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}},{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"6iq3xP0EsGS9NzJoWvyblp\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:12.064Z\",\"updatedAt\":\"2023-06-26T13:47:12.064Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}}]}\n" + }, + { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/content_types?limit=100&order=sys.createdAt&sys.id[in]=testContentType&skip=0", + "method": "GET", + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":0,\"skip\":0,\"limit\":100,\"items\":[]}\n" + }, + { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/locales?limit=100&order=sys.createdAt&skip=0", + "method": "GET", + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":1,\"skip\":0,\"limit\":100,\"items\":[{\"name\":\"English (United States)\",\"internal_code\":\"en-US\",\"code\":\"en-US\",\"fallbackCode\":null,\"default\":true,\"contentManagementApi\":true,\"contentDeliveryApi\":true,\"optional\":false,\"sys\":{\"type\":\"Locale\",\"id\":\"1VDLlb9oKX4EE2oI6p9kMa\",\"version\":1,\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"environment\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Environment\",\"id\":\"2023-06-28-11-35-08\",\"uuid\":\"ddefb40d-4099-450d-8d99-49c07db971ab\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"createdAt\":\"2023-06-28T11:35:09Z\",\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedAt\":\"2023-06-28T11:35:09Z\"}}]}\n" + }, + { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/content_types/testContentType", + "method": "PUT", + "status": 201, + "statusText": "Created", + "headers": {}, + "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"testContentType\",\"type\":\"ContentType\",\"createdAt\":\"2023-06-28T11:35:12.987Z\",\"updatedAt\":\"2023-06-28T11:35:12.987Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1},\"displayField\":\"testContentId\",\"name\":\"Test content type\",\"description\":\"\",\"fields\":[{\"id\":\"testContentId\",\"name\":\"test content id\",\"type\":\"Symbol\",\"localized\":false,\"required\":false,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" + }, + { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/content_types/testContentType/published", + "method": "PUT", + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"testContentType\",\"type\":\"ContentType\",\"createdAt\":\"2023-06-28T11:35:12.987Z\",\"updatedAt\":\"2023-06-28T11:35:13.333Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":1,\"version\":2,\"firstPublishedAt\":\"2023-06-28T11:35:13.333Z\",\"publishedAt\":\"2023-06-28T11:35:13.333Z\",\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedVersion\":1},\"displayField\":\"testContentId\",\"name\":\"Test content type\",\"description\":\"\",\"fields\":[{\"id\":\"testContentId\",\"name\":\"test content id\",\"type\":\"Symbol\",\"localized\":false,\"required\":false,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" + }, + { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/entries?content_type=appliedMigrations&limit=1000", + "method": "GET", + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":2,\"skip\":0,\"limit\":1000,\"items\":[{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"5UALu1mPBVs3arGpz6BQOS\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:13.646Z\",\"updatedAt\":\"2023-06-26T13:47:13.646Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}},{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"6iq3xP0EsGS9NzJoWvyblp\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:12.064Z\",\"updatedAt\":\"2023-06-26T13:47:12.064Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}}]}\n" + }, + { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/entries", + "method": "POST", + "status": 201, + "statusText": "Created", + "headers": {}, + "body": "{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"P9aHLvrSfpLvqzb7o280G\",\"type\":\"Entry\",\"createdAt\":\"2023-06-28T11:35:14.661Z\",\"updatedAt\":\"2023-06-28T11:35:14.661Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230609122547608\"},\"name\":{\"en-US\":\"new-migration\"},\"batch\":{\"en-US\":2}}}\n" + }, + { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/entries/P9aHLvrSfpLvqzb7o280G/published", + "method": "PUT", + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"P9aHLvrSfpLvqzb7o280G\",\"type\":\"Entry\",\"createdAt\":\"2023-06-28T11:35:14.661Z\",\"updatedAt\":\"2023-06-28T11:35:15.127Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"publishedVersion\":1,\"publishedAt\":\"2023-06-28T11:35:15.127Z\",\"firstPublishedAt\":\"2023-06-28T11:35:15.127Z\",\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":1,\"version\":2,\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230609122547608\"},\"name\":{\"en-US\":\"new-migration\"},\"batch\":{\"en-US\":2}}}\n" + }, + { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environment_aliases/master", + "method": "GET", + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"sys\":{\n \"type\":\"EnvironmentAlias\",\n \"id\":\"master\",\n \"version\":16,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-05T12:35:02Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:50Z\"\n },\n \"environment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\"\n }\n }\n}\n\n" + }, + { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environment_aliases/master", + "method": "GET", + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"sys\":{\n \"type\":\"EnvironmentAlias\",\n \"id\":\"master\",\n \"version\":16,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-05T12:35:02Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:50Z\"\n },\n \"environment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\"\n }\n }\n}\n\n" + }, + { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environment_aliases/master", + "method": "PUT", + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"sys\":{\n \"type\":\"EnvironmentAlias\",\n \"id\":\"master\",\n \"version\":17,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-05T12:35:02Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:35:16Z\"\n },\n \"environment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-06-28-11-35-08\"\n }\n }\n}\n\n" + }, + { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-33-42", + "method": "GET", + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"name\":\"2023-06-28-11-33-42\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:33:43Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:43Z\",\n \"aliases\":[]\n }\n}\n\n" + }, + { + "id": "0115a323-ff93-4404-9a0a-8ab0801abf87", + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-33-42", + "status": 204, + "statusText": "No Content", + "headers": {}, + "body": "" + } +] diff --git a/mocks/contentful/handlers/migrate/traffic-1687952117250.json b/mocks/contentful/handlers/migrate/traffic-1687952117250.json new file mode 100644 index 0000000..d9fa921 --- /dev/null +++ b/mocks/contentful/handlers/migrate/traffic-1687952117250.json @@ -0,0 +1,1290 @@ +[ + { + "request": [ + { + "_bodyUsed": false, + "id": "61dd52b8-89d6-4105-b261-676acf3d1df8", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types/appliedMigrations", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"appliedMigrations\",\"type\":\"ContentType\",\"createdAt\":\"2023-06-02T08:50:44.787Z\",\"updatedAt\":\"2023-06-05T14:20:22.754Z\",\"environment\":{\"sys\":{\"id\":\"master\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"publishedVersion\":3,\"publishedAt\":\"2023-06-05T14:20:22.754Z\",\"firstPublishedAt\":\"2023-06-02T08:50:45.349Z\",\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":2,\"version\":4,\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}}},\"displayField\":\"timestamp\",\"name\":\"Applied migrations\",\"description\":\"\",\"fields\":[{\"id\":\"timestamp\",\"name\":\"Timestamp\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"name\",\"name\":\"Name\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"batch\",\"name\":\"Batch number\",\"type\":\"Integer\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "61dd52b8-89d6-4105-b261-676acf3d1df8", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types/appliedMigrations", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"appliedMigrations\",\"type\":\"ContentType\",\"createdAt\":\"2023-06-02T08:50:44.787Z\",\"updatedAt\":\"2023-06-05T14:20:22.754Z\",\"environment\":{\"sys\":{\"id\":\"master\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"publishedVersion\":3,\"publishedAt\":\"2023-06-05T14:20:22.754Z\",\"firstPublishedAt\":\"2023-06-02T08:50:45.349Z\",\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":2,\"version\":4,\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}}},\"displayField\":\"timestamp\",\"name\":\"Applied migrations\",\"description\":\"\",\"fields\":[{\"id\":\"timestamp\",\"name\":\"Timestamp\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"name\",\"name\":\"Name\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"batch\",\"name\":\"Batch number\",\"type\":\"Integer\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "8d81df5e-3f35-4e40-8934-8206768aa02e", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/entries?content_type=appliedMigrations&limit=1000", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":2,\"skip\":0,\"limit\":1000,\"items\":[{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"5UALu1mPBVs3arGpz6BQOS\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:13.646Z\",\"updatedAt\":\"2023-06-26T13:47:13.646Z\",\"environment\":{\"sys\":{\"id\":\"master\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}},{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"6iq3xP0EsGS9NzJoWvyblp\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:12.064Z\",\"updatedAt\":\"2023-06-26T13:47:12.064Z\",\"environment\":{\"sys\":{\"id\":\"master\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}}]}\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "8d81df5e-3f35-4e40-8934-8206768aa02e", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/entries?content_type=appliedMigrations&limit=1000", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":2,\"skip\":0,\"limit\":1000,\"items\":[{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"5UALu1mPBVs3arGpz6BQOS\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:13.646Z\",\"updatedAt\":\"2023-06-26T13:47:13.646Z\",\"environment\":{\"sys\":{\"id\":\"master\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}},{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"6iq3xP0EsGS9NzJoWvyblp\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:12.064Z\",\"updatedAt\":\"2023-06-26T13:47:12.064Z\",\"environment\":{\"sys\":{\"id\":\"master\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}}]}\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "fba5a1c6-ec3d-49e5-ab8f-e8cd4acc4e7b", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"total\":3,\n \"limit\":25,\n \"skip\":0,\n \"sys\":{\n \"type\":\"Array\"\n },\n \"items\":[\n {\n \"name\":\"test\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"test\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-08T12:21:36Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-08T12:21:36Z\",\n \"aliases\":[]\n }\n },\n {\n \"name\":\"2023-06-28-11-33-42\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:33:43Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:43Z\",\n \"aliases\":[\n {\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"EnvironmentAlias\",\n \"id\":\"master\"\n }\n }\n ]\n }\n },\n {\n \"name\":\"2023-06-28-11-33-42\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"master\",\n \"aliasedEnvironment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\"\n }\n },\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:33:43Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:43Z\"\n }\n }\n ]\n}\n\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "fba5a1c6-ec3d-49e5-ab8f-e8cd4acc4e7b", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"total\":3,\n \"limit\":25,\n \"skip\":0,\n \"sys\":{\n \"type\":\"Array\"\n },\n \"items\":[\n {\n \"name\":\"test\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"test\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-08T12:21:36Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-08T12:21:36Z\",\n \"aliases\":[]\n }\n },\n {\n \"name\":\"2023-06-28-11-33-42\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:33:43Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:43Z\",\n \"aliases\":[\n {\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"EnvironmentAlias\",\n \"id\":\"master\"\n }\n }\n ]\n }\n },\n {\n \"name\":\"2023-06-28-11-33-42\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"master\",\n \"aliasedEnvironment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\"\n }\n },\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:33:43Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:43Z\"\n }\n }\n ]\n}\n\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "e79173cc-349a-45fb-92b4-d47cc36ca0ff", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 201, + "statusText": "Created", + "headers": {}, + "body": "{\n \"name\":\"2023-06-28-11-35-08\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-06-28-11-35-08\",\n \"version\":1,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"queued\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:35:09Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:35:09Z\",\n \"aliases\":[]\n }\n}\n\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "e79173cc-349a-45fb-92b4-d47cc36ca0ff", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 201, + "statusText": "Created", + "headers": {}, + "body": "{\n \"name\":\"2023-06-28-11-35-08\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-06-28-11-35-08\",\n \"version\":1,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"queued\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:35:09Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:35:09Z\",\n \"aliases\":[]\n }\n}\n\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "d0bcbbe2-ac02-4547-b455-79da818c4f38", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"total\":1,\n \"limit\":25,\n \"skip\":0,\n \"sys\":{\n \"type\":\"Array\"\n },\n \"items\":[\n {\n \"name\":\"Example space token 1\",\n \"description\":\"This token is used by an example app. It is coupled with the content previews.\",\n \"accessToken\":\"c11ea00b60091e878e7966c52e1138ad3adf5ff00a99c5dde77cb05a83743045\",\n \"policies\":[\n {\n \"effect\":\"allow\",\n \"actions\":\"all\"\n }\n ],\n \"sys\":{\n \"type\":\"ApiKey\",\n \"id\":\"1Yrt2lSOGbwEjPWJVg6yJA\",\n \"version\":79,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2018-09-17T08:26:09Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:43Z\"\n },\n \"environments\":[\n {\n \"sys\":{\n \"id\":\"master\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-02-08-50-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-14-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-18-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-08-11\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-09-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-13-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-21-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-25-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-29-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-35-27\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-58-23\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-19\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-13-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-14-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-18-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-33-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-36-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-38-59\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-52-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-53-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-03-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-04-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-14-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-15-34\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-24-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-38-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-51-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-56-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-57-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-59-18\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-06\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-05-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-07-40\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-21\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-05-31\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-38-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-15-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-16-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-17-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-18-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-19-15\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-22-38\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-26-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-56-57\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-49-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-52-52\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-53-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-14-08-27-25\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-13-46-48\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-05-43\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-07-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-11-02\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-27-08-53-00\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-07-02-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-33-42\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n }\n ],\n \"preview_api_key\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"PreviewApiKey\",\n \"id\":\"1YsyWIrKbsWrbImKsd9Bqq\"\n }\n }\n }\n ]\n}\n\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "d0bcbbe2-ac02-4547-b455-79da818c4f38", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"total\":1,\n \"limit\":25,\n \"skip\":0,\n \"sys\":{\n \"type\":\"Array\"\n },\n \"items\":[\n {\n \"name\":\"Example space token 1\",\n \"description\":\"This token is used by an example app. It is coupled with the content previews.\",\n \"accessToken\":\"c11ea00b60091e878e7966c52e1138ad3adf5ff00a99c5dde77cb05a83743045\",\n \"policies\":[\n {\n \"effect\":\"allow\",\n \"actions\":\"all\"\n }\n ],\n \"sys\":{\n \"type\":\"ApiKey\",\n \"id\":\"1Yrt2lSOGbwEjPWJVg6yJA\",\n \"version\":79,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2018-09-17T08:26:09Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:43Z\"\n },\n \"environments\":[\n {\n \"sys\":{\n \"id\":\"master\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-02-08-50-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-14-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-18-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-08-11\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-09-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-13-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-21-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-25-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-29-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-35-27\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-58-23\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-19\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-13-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-14-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-18-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-33-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-36-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-38-59\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-52-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-53-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-03-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-04-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-14-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-15-34\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-24-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-38-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-51-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-56-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-57-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-59-18\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-06\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-05-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-07-40\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-21\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-05-31\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-38-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-15-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-16-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-17-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-18-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-19-15\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-22-38\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-26-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-56-57\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-49-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-52-52\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-53-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-14-08-27-25\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-13-46-48\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-05-43\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-07-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-11-02\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-27-08-53-00\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-07-02-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-33-42\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n }\n ],\n \"preview_api_key\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"PreviewApiKey\",\n \"id\":\"1YsyWIrKbsWrbImKsd9Bqq\"\n }\n }\n }\n ]\n}\n\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "3b7486ae-6894-4517-ae3d-7d911a1a079e", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys/1Yrt2lSOGbwEjPWJVg6yJA", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"name\":\"Example space token 1\",\n \"description\":\"This token is used by an example app. It is coupled with the content previews.\",\n \"accessToken\":\"c11ea00b60091e878e7966c52e1138ad3adf5ff00a99c5dde77cb05a83743045\",\n \"policies\":[\n {\n \"effect\":\"allow\",\n \"actions\":\"all\"\n }\n ],\n \"sys\":{\n \"type\":\"ApiKey\",\n \"id\":\"1Yrt2lSOGbwEjPWJVg6yJA\",\n \"version\":80,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2018-09-17T08:26:09Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:35:10Z\"\n },\n \"environments\":[\n {\n \"sys\":{\n \"id\":\"master\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-02-08-50-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-14-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-18-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-08-11\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-09-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-13-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-21-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-25-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-29-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-35-27\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-58-23\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-19\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-13-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-14-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-18-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-33-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-36-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-38-59\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-52-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-53-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-03-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-04-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-14-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-15-34\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-24-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-38-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-51-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-56-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-57-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-59-18\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-06\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-05-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-07-40\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-21\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-05-31\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-38-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-15-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-16-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-17-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-18-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-19-15\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-22-38\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-26-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-56-57\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-49-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-52-52\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-53-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-14-08-27-25\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-13-46-48\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-05-43\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-07-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-11-02\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-27-08-53-00\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-07-02-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-33-42\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-35-08\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n }\n ],\n \"preview_api_key\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"PreviewApiKey\",\n \"id\":\"1YsyWIrKbsWrbImKsd9Bqq\"\n }\n }\n}\n\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "3b7486ae-6894-4517-ae3d-7d911a1a079e", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys/1Yrt2lSOGbwEjPWJVg6yJA", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"name\":\"Example space token 1\",\n \"description\":\"This token is used by an example app. It is coupled with the content previews.\",\n \"accessToken\":\"c11ea00b60091e878e7966c52e1138ad3adf5ff00a99c5dde77cb05a83743045\",\n \"policies\":[\n {\n \"effect\":\"allow\",\n \"actions\":\"all\"\n }\n ],\n \"sys\":{\n \"type\":\"ApiKey\",\n \"id\":\"1Yrt2lSOGbwEjPWJVg6yJA\",\n \"version\":80,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2018-09-17T08:26:09Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:35:10Z\"\n },\n \"environments\":[\n {\n \"sys\":{\n \"id\":\"master\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-02-08-50-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-14-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-18-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-08-11\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-09-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-13-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-21-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-25-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-29-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-35-27\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-58-23\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-19\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-13-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-14-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-18-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-33-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-36-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-38-59\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-52-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-53-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-03-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-04-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-14-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-15-34\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-24-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-38-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-51-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-56-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-57-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-59-18\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-06\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-05-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-07-40\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-21\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-05-31\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-38-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-15-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-16-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-17-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-18-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-19-15\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-22-38\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-26-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-56-57\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-49-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-52-52\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-53-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-14-08-27-25\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-13-46-48\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-05-43\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-07-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-11-02\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-27-08-53-00\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-07-02-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-33-42\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-35-08\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n }\n ],\n \"preview_api_key\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"PreviewApiKey\",\n \"id\":\"1YsyWIrKbsWrbImKsd9Bqq\"\n }\n }\n}\n\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "8c65b449-dc76-44a2-8b59-0d0dcc370b15", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"name\":\"TypeOne\",\n \"sys\":{\n \"type\":\"Space\",\n \"id\":\"bo6ijs14u5ox\",\n \"version\":7,\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2018-09-17T08:26:06Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2022-12-15T09:11:48Z\",\n \"organization\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Organization\",\n \"id\":\"1kUUWhojvGtUmRyhXfqSwK\"\n }\n }\n }\n}\n\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "8c65b449-dc76-44a2-8b59-0d0dcc370b15", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"name\":\"TypeOne\",\n \"sys\":{\n \"type\":\"Space\",\n \"id\":\"bo6ijs14u5ox\",\n \"version\":7,\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2018-09-17T08:26:06Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2022-12-15T09:11:48Z\",\n \"organization\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Organization\",\n \"id\":\"1kUUWhojvGtUmRyhXfqSwK\"\n }\n }\n }\n}\n\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "b41964eb-1957-436b-9211-b366dc7960ff", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"name\":\"2023-06-28-11-35-08\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-06-28-11-35-08\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:35:09Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:35:09Z\",\n \"aliases\":[]\n }\n}\n\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "b41964eb-1957-436b-9211-b366dc7960ff", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"name\":\"2023-06-28-11-35-08\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-06-28-11-35-08\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:35:09Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:35:09Z\",\n \"aliases\":[]\n }\n}\n\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "08e47d19-b69c-440a-adfd-a16004a04533", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/locales", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":1,\"skip\":0,\"limit\":100,\"items\":[{\"name\":\"English (United States)\",\"internal_code\":\"en-US\",\"code\":\"en-US\",\"fallbackCode\":null,\"default\":true,\"contentManagementApi\":true,\"contentDeliveryApi\":true,\"optional\":false,\"sys\":{\"type\":\"Locale\",\"id\":\"1VDLlb9oKX4EE2oI6p9kMa\",\"version\":1,\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"environment\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Environment\",\"id\":\"2023-06-28-11-35-08\",\"uuid\":\"ddefb40d-4099-450d-8d99-49c07db971ab\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"createdAt\":\"2023-06-28T11:35:09Z\",\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedAt\":\"2023-06-28T11:35:09Z\"}}]}\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "08e47d19-b69c-440a-adfd-a16004a04533", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/locales", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":1,\"skip\":0,\"limit\":100,\"items\":[{\"name\":\"English (United States)\",\"internal_code\":\"en-US\",\"code\":\"en-US\",\"fallbackCode\":null,\"default\":true,\"contentManagementApi\":true,\"contentDeliveryApi\":true,\"optional\":false,\"sys\":{\"type\":\"Locale\",\"id\":\"1VDLlb9oKX4EE2oI6p9kMa\",\"version\":1,\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"environment\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Environment\",\"id\":\"2023-06-28-11-35-08\",\"uuid\":\"ddefb40d-4099-450d-8d99-49c07db971ab\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"createdAt\":\"2023-06-28T11:35:09Z\",\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedAt\":\"2023-06-28T11:35:09Z\"}}]}\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "5ebef955-cc3c-4a1b-95f0-85be717fecff", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/content_types/appliedMigrations", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"appliedMigrations\",\"type\":\"ContentType\",\"createdAt\":\"2023-06-02T08:50:44.787Z\",\"updatedAt\":\"2023-06-05T14:20:22.754Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"publishedVersion\":3,\"publishedAt\":\"2023-06-05T14:20:22.754Z\",\"firstPublishedAt\":\"2023-06-02T08:50:45.349Z\",\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":2,\"version\":4,\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}}},\"displayField\":\"timestamp\",\"name\":\"Applied migrations\",\"description\":\"\",\"fields\":[{\"id\":\"timestamp\",\"name\":\"Timestamp\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"name\",\"name\":\"Name\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"batch\",\"name\":\"Batch number\",\"type\":\"Integer\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "5ebef955-cc3c-4a1b-95f0-85be717fecff", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/content_types/appliedMigrations", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"appliedMigrations\",\"type\":\"ContentType\",\"createdAt\":\"2023-06-02T08:50:44.787Z\",\"updatedAt\":\"2023-06-05T14:20:22.754Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"publishedVersion\":3,\"publishedAt\":\"2023-06-05T14:20:22.754Z\",\"firstPublishedAt\":\"2023-06-02T08:50:45.349Z\",\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":2,\"version\":4,\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}}},\"displayField\":\"timestamp\",\"name\":\"Applied migrations\",\"description\":\"\",\"fields\":[{\"id\":\"timestamp\",\"name\":\"Timestamp\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"name\",\"name\":\"Name\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"batch\",\"name\":\"Batch number\",\"type\":\"Integer\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "365d4070-633f-472e-a15e-ea2f7a436ade", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/entries?content_type=appliedMigrations&limit=1000", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":2,\"skip\":0,\"limit\":1000,\"items\":[{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"5UALu1mPBVs3arGpz6BQOS\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:13.646Z\",\"updatedAt\":\"2023-06-26T13:47:13.646Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}},{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"6iq3xP0EsGS9NzJoWvyblp\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:12.064Z\",\"updatedAt\":\"2023-06-26T13:47:12.064Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}}]}\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "365d4070-633f-472e-a15e-ea2f7a436ade", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/entries?content_type=appliedMigrations&limit=1000", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":2,\"skip\":0,\"limit\":1000,\"items\":[{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"5UALu1mPBVs3arGpz6BQOS\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:13.646Z\",\"updatedAt\":\"2023-06-26T13:47:13.646Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}},{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"6iq3xP0EsGS9NzJoWvyblp\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:12.064Z\",\"updatedAt\":\"2023-06-26T13:47:12.064Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}}]}\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "e561eb47-4bd5-4ef7-b63d-88cf22d97726", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/content_types?limit=100&order=sys.createdAt&sys.id[in]=testContentType&skip=0", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":0,\"skip\":0,\"limit\":100,\"items\":[]}\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "e561eb47-4bd5-4ef7-b63d-88cf22d97726", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/content_types?limit=100&order=sys.createdAt&sys.id[in]=testContentType&skip=0", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":0,\"skip\":0,\"limit\":100,\"items\":[]}\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "a0ea8f0a-f751-4ca0-ad5e-79df3515af7f", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/locales?limit=100&order=sys.createdAt&skip=0", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":1,\"skip\":0,\"limit\":100,\"items\":[{\"name\":\"English (United States)\",\"internal_code\":\"en-US\",\"code\":\"en-US\",\"fallbackCode\":null,\"default\":true,\"contentManagementApi\":true,\"contentDeliveryApi\":true,\"optional\":false,\"sys\":{\"type\":\"Locale\",\"id\":\"1VDLlb9oKX4EE2oI6p9kMa\",\"version\":1,\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"environment\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Environment\",\"id\":\"2023-06-28-11-35-08\",\"uuid\":\"ddefb40d-4099-450d-8d99-49c07db971ab\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"createdAt\":\"2023-06-28T11:35:09Z\",\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedAt\":\"2023-06-28T11:35:09Z\"}}]}\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "a0ea8f0a-f751-4ca0-ad5e-79df3515af7f", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/locales?limit=100&order=sys.createdAt&skip=0", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":1,\"skip\":0,\"limit\":100,\"items\":[{\"name\":\"English (United States)\",\"internal_code\":\"en-US\",\"code\":\"en-US\",\"fallbackCode\":null,\"default\":true,\"contentManagementApi\":true,\"contentDeliveryApi\":true,\"optional\":false,\"sys\":{\"type\":\"Locale\",\"id\":\"1VDLlb9oKX4EE2oI6p9kMa\",\"version\":1,\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"environment\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Environment\",\"id\":\"2023-06-28-11-35-08\",\"uuid\":\"ddefb40d-4099-450d-8d99-49c07db971ab\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"createdAt\":\"2023-06-28T11:35:09Z\",\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedAt\":\"2023-06-28T11:35:09Z\"}}]}\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "b47a6409-6e98-4cff-879f-b57d04557735", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/content_types/testContentType", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 201, + "statusText": "Created", + "headers": {}, + "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"testContentType\",\"type\":\"ContentType\",\"createdAt\":\"2023-06-28T11:35:12.987Z\",\"updatedAt\":\"2023-06-28T11:35:12.987Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1},\"displayField\":\"testContentId\",\"name\":\"Test content type\",\"description\":\"\",\"fields\":[{\"id\":\"testContentId\",\"name\":\"test content id\",\"type\":\"Symbol\",\"localized\":false,\"required\":false,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "b47a6409-6e98-4cff-879f-b57d04557735", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/content_types/testContentType", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 201, + "statusText": "Created", + "headers": {}, + "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"testContentType\",\"type\":\"ContentType\",\"createdAt\":\"2023-06-28T11:35:12.987Z\",\"updatedAt\":\"2023-06-28T11:35:12.987Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1},\"displayField\":\"testContentId\",\"name\":\"Test content type\",\"description\":\"\",\"fields\":[{\"id\":\"testContentId\",\"name\":\"test content id\",\"type\":\"Symbol\",\"localized\":false,\"required\":false,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "8511b7a4-f2a9-4e63-bc3d-5e0ddd58922b", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/content_types/testContentType/published", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"testContentType\",\"type\":\"ContentType\",\"createdAt\":\"2023-06-28T11:35:12.987Z\",\"updatedAt\":\"2023-06-28T11:35:13.333Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":1,\"version\":2,\"firstPublishedAt\":\"2023-06-28T11:35:13.333Z\",\"publishedAt\":\"2023-06-28T11:35:13.333Z\",\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedVersion\":1},\"displayField\":\"testContentId\",\"name\":\"Test content type\",\"description\":\"\",\"fields\":[{\"id\":\"testContentId\",\"name\":\"test content id\",\"type\":\"Symbol\",\"localized\":false,\"required\":false,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "8511b7a4-f2a9-4e63-bc3d-5e0ddd58922b", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/content_types/testContentType/published", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"testContentType\",\"type\":\"ContentType\",\"createdAt\":\"2023-06-28T11:35:12.987Z\",\"updatedAt\":\"2023-06-28T11:35:13.333Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":1,\"version\":2,\"firstPublishedAt\":\"2023-06-28T11:35:13.333Z\",\"publishedAt\":\"2023-06-28T11:35:13.333Z\",\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedVersion\":1},\"displayField\":\"testContentId\",\"name\":\"Test content type\",\"description\":\"\",\"fields\":[{\"id\":\"testContentId\",\"name\":\"test content id\",\"type\":\"Symbol\",\"localized\":false,\"required\":false,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "67fc175a-b526-452d-9a54-0b2ff02d8220", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/entries?content_type=appliedMigrations&limit=1000", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":2,\"skip\":0,\"limit\":1000,\"items\":[{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"5UALu1mPBVs3arGpz6BQOS\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:13.646Z\",\"updatedAt\":\"2023-06-26T13:47:13.646Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}},{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"6iq3xP0EsGS9NzJoWvyblp\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:12.064Z\",\"updatedAt\":\"2023-06-26T13:47:12.064Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}}]}\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "67fc175a-b526-452d-9a54-0b2ff02d8220", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/entries?content_type=appliedMigrations&limit=1000", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":2,\"skip\":0,\"limit\":1000,\"items\":[{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"5UALu1mPBVs3arGpz6BQOS\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:13.646Z\",\"updatedAt\":\"2023-06-26T13:47:13.646Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}},{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"6iq3xP0EsGS9NzJoWvyblp\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:12.064Z\",\"updatedAt\":\"2023-06-26T13:47:12.064Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}}]}\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "0d39b744-d4a2-4cdf-83f4-3dd333cbc6ff", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/entries", + "method": "POST", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 201, + "statusText": "Created", + "headers": {}, + "body": "{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"P9aHLvrSfpLvqzb7o280G\",\"type\":\"Entry\",\"createdAt\":\"2023-06-28T11:35:14.661Z\",\"updatedAt\":\"2023-06-28T11:35:14.661Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230609122547608\"},\"name\":{\"en-US\":\"new-migration\"},\"batch\":{\"en-US\":2}}}\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "0d39b744-d4a2-4cdf-83f4-3dd333cbc6ff", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/entries", + "method": "POST", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 201, + "statusText": "Created", + "headers": {}, + "body": "{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"P9aHLvrSfpLvqzb7o280G\",\"type\":\"Entry\",\"createdAt\":\"2023-06-28T11:35:14.661Z\",\"updatedAt\":\"2023-06-28T11:35:14.661Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230609122547608\"},\"name\":{\"en-US\":\"new-migration\"},\"batch\":{\"en-US\":2}}}\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "213af63a-1f1d-4f83-b73c-918370c5dc1c", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/entries/P9aHLvrSfpLvqzb7o280G/published", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"P9aHLvrSfpLvqzb7o280G\",\"type\":\"Entry\",\"createdAt\":\"2023-06-28T11:35:14.661Z\",\"updatedAt\":\"2023-06-28T11:35:15.127Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"publishedVersion\":1,\"publishedAt\":\"2023-06-28T11:35:15.127Z\",\"firstPublishedAt\":\"2023-06-28T11:35:15.127Z\",\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":1,\"version\":2,\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230609122547608\"},\"name\":{\"en-US\":\"new-migration\"},\"batch\":{\"en-US\":2}}}\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "213af63a-1f1d-4f83-b73c-918370c5dc1c", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/entries/P9aHLvrSfpLvqzb7o280G/published", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"P9aHLvrSfpLvqzb7o280G\",\"type\":\"Entry\",\"createdAt\":\"2023-06-28T11:35:14.661Z\",\"updatedAt\":\"2023-06-28T11:35:15.127Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"publishedVersion\":1,\"publishedAt\":\"2023-06-28T11:35:15.127Z\",\"firstPublishedAt\":\"2023-06-28T11:35:15.127Z\",\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":1,\"version\":2,\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230609122547608\"},\"name\":{\"en-US\":\"new-migration\"},\"batch\":{\"en-US\":2}}}\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "325bf698-c653-485d-8b43-be9eabba0385", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"sys\":{\n \"type\":\"EnvironmentAlias\",\n \"id\":\"master\",\n \"version\":16,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-05T12:35:02Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:50Z\"\n },\n \"environment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\"\n }\n }\n}\n\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "325bf698-c653-485d-8b43-be9eabba0385", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"sys\":{\n \"type\":\"EnvironmentAlias\",\n \"id\":\"master\",\n \"version\":16,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-05T12:35:02Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:50Z\"\n },\n \"environment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\"\n }\n }\n}\n\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "8167a755-0632-4844-af70-68648a070854", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"sys\":{\n \"type\":\"EnvironmentAlias\",\n \"id\":\"master\",\n \"version\":16,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-05T12:35:02Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:50Z\"\n },\n \"environment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\"\n }\n }\n}\n\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "8167a755-0632-4844-af70-68648a070854", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"sys\":{\n \"type\":\"EnvironmentAlias\",\n \"id\":\"master\",\n \"version\":16,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-05T12:35:02Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:50Z\"\n },\n \"environment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\"\n }\n }\n}\n\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "940c76a8-b061-4c0a-a62b-c55782adebff", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"sys\":{\n \"type\":\"EnvironmentAlias\",\n \"id\":\"master\",\n \"version\":17,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-05T12:35:02Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:35:16Z\"\n },\n \"environment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-06-28-11-35-08\"\n }\n }\n}\n\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "940c76a8-b061-4c0a-a62b-c55782adebff", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"sys\":{\n \"type\":\"EnvironmentAlias\",\n \"id\":\"master\",\n \"version\":17,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-05T12:35:02Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:35:16Z\"\n },\n \"environment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-06-28-11-35-08\"\n }\n }\n}\n\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "c685f24a-6c53-4f02-8d2f-71f1b054e920", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-33-42", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"name\":\"2023-06-28-11-33-42\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:33:43Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:43Z\",\n \"aliases\":[]\n }\n}\n\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "c685f24a-6c53-4f02-8d2f-71f1b054e920", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-33-42", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"name\":\"2023-06-28-11-33-42\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:33:43Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:43Z\",\n \"aliases\":[]\n }\n}\n\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "0115a323-ff93-4404-9a0a-8ab0801abf87", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-33-42", + "method": "DELETE", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 204, + "statusText": "No Content", + "headers": {}, + "body": "" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "0115a323-ff93-4404-9a0a-8ab0801abf87", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-33-42", + "method": "DELETE", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 204, + "statusText": "No Content", + "headers": {}, + "body": "" + } + ] + } +] \ No newline at end of file diff --git a/mocks/contentful/handlers/migrate/uniqueRequests.txt b/mocks/contentful/handlers/migrate/uniqueRequests.txt new file mode 100644 index 0000000..437d29b --- /dev/null +++ b/mocks/contentful/handlers/migrate/uniqueRequests.txt @@ -0,0 +1,6 @@ + + +GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/environment_aliases/master +PUT request to https://api.contentful.com/spaces/TEST_SPACE_ID/environment_aliases/master +GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-29-08-45-03 +DELETE request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-29-08-45-03 \ No newline at end of file diff --git a/src/migrator.js b/src/migrator.js index 06609a8..5ade0ed 100644 --- a/src/migrator.js +++ b/src/migrator.js @@ -70,6 +70,7 @@ const getMigrationsToHandle = async (space, options = {}) => { } const getAppliedMigrations = async (space) => { + //seems to crash here? const migratedTimestamps = await getMigratedTimestamps(space) return fs .readdirSync(MIGRATIONS_DIR) From 470390b4cd3d8961d75119a7aae38ae7724938ca Mon Sep 17 00:00:00 2001 From: driatic Date: Fri, 14 Jul 2023 15:45:33 +0200 Subject: [PATCH 4/6] feat: second stab at migrate command test --- __tests__/migrate.test.js | 55 +- bin/cmp.js | 2 +- .../handlers/migrate/allRequestsPerformed.txt | 156 + .../migrate/applyOneMigrationHandler.js | 3249 ++++++++--------- mocks/contentful/handlers/migrate/log.txt | 153 + .../migrate/requestsHandledByMockServer.txt | 30 + .../migrate/traffic-1689326672640.json | 3062 ++++++++++++++++ .../all requests for one migration.txt | 0 .../migrate_old/applyOneMigrationHandler.js | 2134 +++++++++++ .../traffic-1687952117250.json | 0 .../uniqueRequests.txt | 0 11 files changed, 7030 insertions(+), 1811 deletions(-) create mode 100644 mocks/contentful/handlers/migrate/allRequestsPerformed.txt create mode 100644 mocks/contentful/handlers/migrate/log.txt create mode 100644 mocks/contentful/handlers/migrate/requestsHandledByMockServer.txt create mode 100644 mocks/contentful/handlers/migrate/traffic-1689326672640.json rename mocks/contentful/handlers/{migrate => migrate_old}/all requests for one migration.txt (100%) create mode 100644 mocks/contentful/handlers/migrate_old/applyOneMigrationHandler.js rename mocks/contentful/handlers/{migrate => migrate_old}/traffic-1687952117250.json (100%) rename mocks/contentful/handlers/{migrate => migrate_old}/uniqueRequests.txt (100%) diff --git a/__tests__/migrate.test.js b/__tests__/migrate.test.js index 84b8598..01df510 100644 --- a/__tests__/migrate.test.js +++ b/__tests__/migrate.test.js @@ -21,59 +21,22 @@ describe('migrate', () => { closeMockedContentfulApi() })*/ - it('should migrate if force flag is true', async () => { + it('should initially create a table for Applied Migrations', async () => { + //todo: this test will actually perform 2 migrations: + //todo: 1 for applied migrations table + //:todo 1 for test content type + setupMockedContentfulApi(applyOneMigrationHandler) const stdout = extractLogLinesFromConsole() createSimpleMigrationFile() await migrateCommand({ force: true }) - - expect(stdout).toContain('About to apply the following migrations:') + //The following migration has been planned + //Publish Content Type appliedMigrations + expect(stdout).toContain('`Applied migrations` type not found. Creating it.') + //expect(stdout).toContain('About to apply the following migrations:') //expect(stdout).toContain("🎉 Migration successful") closeMockedContentfulApi() }) }) - -/* - About to apply the following migrations: - 20230609122547608 - new-migration - - Creating environment 2023-06-28-11-35-08. - Environment 2023-06-28-11-35-08 created. - Updating api key access to new env 2023-06-28-11-35-08. - - Api key access to new env 2023-06-28-11-35-08 updated. - - Migrating. - - The following migration has been planned - -Environment: 2023-06-28-11-35-08 - -Create Content Type testContentType -- name: "Test content type" -- description: "" -- displayField: "testContentId" - -Create field testContentId -- name: "test content id" -- type: "Symbol" - -Publish Content Type testContentType -❯ Create Content Type testContentType - ⠋ Making requests (1/2) -❯ Create Content Type testContentType -❯ Create Content Type testContentType - ⠸ Making requests (2/2) -❯ Create Content Type testContentType -✔ Create Content Type testContentType -🎉 Migration successful - - Migrated. - Switching environment alias. - - Environment alias switched successfully. - handling exit - -*/ diff --git a/bin/cmp.js b/bin/cmp.js index 0bdecae..82e7dc4 100755 --- a/bin/cmp.js +++ b/bin/cmp.js @@ -2,7 +2,7 @@ //todo: remove, only for testing const { setupInterceptorServer } = require('../traffic/interceptor') -setupInterceptorServer({ logUnhandledRequests: true }) +setupInterceptorServer({ logUnhandledRequests: true, logBypassedTraffic: true, saveTrafficToFile: true }) require('yargs') .usage('Contentful migration tooling.') diff --git a/mocks/contentful/handlers/migrate/allRequestsPerformed.txt b/mocks/contentful/handlers/migrate/allRequestsPerformed.txt new file mode 100644 index 0000000..f7bc4a6 --- /dev/null +++ b/mocks/contentful/handlers/migrate/allRequestsPerformed.txt @@ -0,0 +1,156 @@ +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox + +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master + +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/locales +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/locales +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/locales + +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types/appliedMigrations +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types/appliedMigrations +* receiving status 404 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types/appliedMigrations +`Applied migrations` type not found. Creating it. + +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types?limit=100&order=sys.createdAt&sys.id[in]=appliedMigrations&skip=0 +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types?limit=100&order=sys.createdAt&sys.id[in]=appliedMigrations&skip=0 +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types?limit=100&order=sys.createdAt&sys.id[in]=appliedMigrations&skip=0 + +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/locales?limit=100&order=sys.createdAt&skip=0 +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/locales?limit=100&order=sys.createdAt&skip=0 +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/locales?limit=100&order=sys.createdAt&skip=0 + +The following migration has been planned + +Environment: master + +Create Content Type appliedMigrations + - name: "Applied migrations" + - displayField: "timestamp" + + Create field timestamp + - name: "Timestamp" + - type: "Symbol" + - required: true + + Create field name + - name: "Name" + - type: "Symbol" + - required: true + + Create field batch + - name: "Batch number" + - type: "Integer" + - required: true + +Publish Content Type appliedMigrations +❯ Create Content Type appliedMigrations + ⠋ Making requests (1/2) + › PUT /content_types/appliedMigrations at V0 +* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/env❯ Create Content Type appliedMigrations + ⠦ Making requests (1/2) +❯ Create Content Type appliedMigrations + ⠦ Making requests (2/2) + › PUT /content_types/appliedMigrations/published at V1 +* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/env✔ Create Content Type appliedMigrations +🎉 Migration successful +`Applied migrations` type created. +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/entries?content_type=appliedMigrations&limit=1000 +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/entries?content_type=appliedMigrations&limit=1000 +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types/appliedMigrations/published +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/entries?content_type=appliedMigrations&limit=1000 +About to apply the following migrations: + 20230609122547608 - new-migration +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments +Creating environment 2023-07-14-09-24-23. +* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23 +* Found an unhandled PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23 +* receiving status 201 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23 +Environment 2023-07-14-09-24-23 created. +Updating api key access to new env 2023-07-14-09-24-23. +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys +* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys/1Yrt2lSOGbwEjPWJVg6yJA +* Found an unhandled PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys/1Yrt2lSOGbwEjPWJVg6yJA +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys/1Yrt2lSOGbwEjPWJVg6yJA +Api key access to new env 2023-07-14-09-24-23 updated. +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23 +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23 +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23 +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/locales +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/locales +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/locales +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/content_types/appliedMigrations +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/content_types/appliedMigrations +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/content_types/appliedMigrations +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries?content_type=appliedMigrations&limit=1000 +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries?content_type=appliedMigrations&limit=1000 +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries?content_type=appliedMigrations&limit=1000 +Migrating. +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/content_types?limit=100&order=sys.createdAt&sys.id[in]=testContentType&skip=0 +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/content_types?limit=100&order=sys.createdAt&sys.id[in]=testContentType&skip=0 +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/content_types?limit=100&order=sys.createdAt&sys.id[in]=testContentType&skip=0 +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/locales?limit=100&order=sys.createdAt&skip=0 +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/locales?limit=100&order=sys.createdAt&skip=0 +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/locales?limit=100&order=sys.createdAt&skip=0 +The following migration has been planned + +Environment: 2023-07-14-09-24-23 + +Create Content Type testContentType + - name: "Test content type" + - description: "" + - displayField: "testContentId" + + Create field testContentId + - name: "test content id" + - type: "Symbol" + +Publish Content Type testContentType +❯ Create Content Type testContentType + ⠋ Making requests (1/2) + › PUT /content_types/testContentType at V0 +* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/env❯ Create Content Type testContentType + ⠸ Making requests (1/2) +❯ Create Content Type testContentType + ⠸ Making requests (2/2) + › PUT /content_types/testContentType/published at V1 +* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/env❯ Create Content Type testContentType + ⠧ Making requests (2/2) +✔ Create Content Type testContentType +🎉 Migration successful +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries?content_type=appliedMigrations&limit=1000 +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries?content_type=appliedMigrations&limit=1000 +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries?content_type=appliedMigrations&limit=1000 +* intercepting POST request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries +* Found an unhandled POST request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries +* receiving status 201 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries +* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries/4Z82uIue7f5KTUjGfmsSyg/published +* Found an unhandled PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries/4Z82uIue7f5KTUjGfmsSyg/published +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries/4Z82uIue7f5KTUjGfmsSyg/published +Migrated. +Switching environment alias. +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master +* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master +* Found an unhandled PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-12-23 +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-12-23 +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-12-23 +* intercepting DELETE request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-12-23 +* Found an unhandled DELETE request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-12-23 +* receiving status 204 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-12-23 diff --git a/mocks/contentful/handlers/migrate/applyOneMigrationHandler.js b/mocks/contentful/handlers/migrate/applyOneMigrationHandler.js index e45b156..7feb4c0 100644 --- a/mocks/contentful/handlers/migrate/applyOneMigrationHandler.js +++ b/mocks/contentful/handlers/migrate/applyOneMigrationHandler.js @@ -1,2134 +1,1855 @@ -const {rest} = require("msw"); -const {baseURL} = require("../../baseContentfulHandler"); +const { rest } = require('msw') +const { baseURL } = require('../../baseContentfulHandler') const timestampPattern = /\d{4}-\d{2}-\d{2}-\d{2}-\d{2}-\d{2}$/ module.exports.applyOneMigrationHandler = [ - //todo: diff check response type, might differ between subsequent requests - //todo: also handle response with query params: entries?content_type=appliedMigrations&limit=1000 + //initial request to get the applied migrations content type + //will return 404 initially since it does not exist rest.get(`${baseURL}/environments/master/content_types/appliedMigrations`, (req, res, ctx) => { return res( - ctx.status(200), + ctx.status(404), ctx.json({ - "sys": { - "space": { - "sys": { - "type": "Link", - "linkType": "Space", - "id": "TEST_SPACE_ID" - } - }, - "id": "appliedMigrations", - "type": "ContentType", - "createdAt": "2023-06-02T08:50:44.787Z", - "updatedAt": "2023-06-05T14:20:22.754Z", - "environment": { - "sys": { - "id": "master", - "type": "Link", - "linkType": "Environment" - } - }, - "publishedVersion": 3, - "publishedAt": "2023-06-05T14:20:22.754Z", - "firstPublishedAt": "2023-06-02T08:50:45.349Z", - "createdBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "updatedBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "publishedCounter": 2, - "version": 4, - "publishedBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - } + sys: { + type: 'Error', + id: 'NotFound', + }, + message: 'The resource could not be found.', + details: { + type: 'ContentType', + id: 'appliedMigrations', + environment: 'master', + space: 'TEST_SPACE_ID', }, - "displayField": "timestamp", - "name": "Applied migrations", - "description": "", - "fields": [ - { - "id": "timestamp", - "name": "Timestamp", - "type": "Symbol", - "localized": false, - "required": true, - "validations": [], - "disabled": false, - "omitted": false - }, - { - "id": "name", - "name": "Name", - "type": "Symbol", - "localized": false, - "required": true, - "validations": [], - "disabled": false, - "omitted": false - }, - { - "id": "batch", - "name": "Batch number", - "type": "Integer", - "localized": false, - "required": true, - "validations": [], - "disabled": false, - "omitted": false - } - ] - }), + requestId: '284d7c14-9b52-4655-aecb-2c6806e59106', + }) ) }), - rest.get(`${baseURL}/environments/master/entries`, (req, res, ctx) => { + + rest.get(`${baseURL}/environments/master/content_types`, (req, res, ctx) => { + console.log('QUERY: ', req.url.searchParams) + + if (req.url.searchParams.get('sys.id[in]') === 'appliedMigrations') { + return res( + ctx.status(200), + ctx.json({ + sys: { + type: 'Array', + }, + total: 0, + skip: 0, + limit: 100, + items: [], + }) + ) + } + }), + + rest.put(`${baseURL}/environments/master/content_types/appliedMigrations`, (req, res, ctx) => { + return res( + ctx.status(201), + ctx.json({ + sys: { + space: { + sys: { + type: 'Link', + linkType: 'Space', + id: 'TEST_SPACE_ID', + }, + }, + id: 'appliedMigrations', + type: 'ContentType', + createdAt: '2023-07-14T09:24:22.833Z', + updatedAt: '2023-07-14T09:24:22.833Z', + environment: { + sys: { + id: 'master', + type: 'Link', + linkType: 'Environment', + }, + }, + createdBy: { + sys: { + type: 'Link', + linkType: 'User', + id: '7fkm1bGT9u8nLkbD7Uuqsr', + }, + }, + updatedBy: { + sys: { + type: 'Link', + linkType: 'User', + id: '7fkm1bGT9u8nLkbD7Uuqsr', + }, + }, + publishedCounter: 0, + version: 1, + }, + displayField: 'timestamp', + name: 'Applied migrations', + description: null, + fields: [ + { + id: 'timestamp', + name: 'Timestamp', + type: 'Symbol', + localized: false, + required: true, + validations: [], + disabled: false, + omitted: false, + }, + { + id: 'name', + name: 'Name', + type: 'Symbol', + localized: false, + required: true, + validations: [], + disabled: false, + omitted: false, + }, + { + id: 'batch', + name: 'Batch number', + type: 'Integer', + localized: false, + required: true, + validations: [], + disabled: false, + omitted: false, + }, + ], + }) + ) + }), + + rest.put(`${baseURL}/environments/master/content_types/appliedMigrations/published`, (req, res, ctx) => { return res( ctx.status(200), ctx.json({ - "sys": { - "type": "Array" + sys: { + space: { + sys: { + type: 'Link', + linkType: 'Space', + id: 'TEST_SPACE_ID', + }, + }, + id: 'appliedMigrations', + type: 'ContentType', + createdAt: '2023-07-14T09:24:22.833Z', + updatedAt: '2023-07-14T09:24:23.228Z', + environment: { + sys: { + id: 'master', + type: 'Link', + linkType: 'Environment', + }, + }, + createdBy: { + sys: { + type: 'Link', + linkType: 'User', + id: '7fkm1bGT9u8nLkbD7Uuqsr', + }, + }, + updatedBy: { + sys: { + type: 'Link', + linkType: 'User', + id: '7fkm1bGT9u8nLkbD7Uuqsr', + }, + }, + publishedCounter: 1, + version: 2, + firstPublishedAt: '2023-07-14T09:24:23.228Z', + publishedAt: '2023-07-14T09:24:23.228Z', + publishedBy: { + sys: { + type: 'Link', + linkType: 'User', + id: '7fkm1bGT9u8nLkbD7Uuqsr', + }, + }, + publishedVersion: 1, }, - "total": 2, - "skip": 0, - "limit": 1000, - "items": [ - { - "metadata": { - "tags": [] - }, - "sys": { - "space": { - "sys": { - "type": "Link", - "linkType": "Space", - "id": "TEST_SPACE_ID" - } - }, - "id": "5UALu1mPBVs3arGpz6BQOS", - "type": "Entry", - "createdAt": "2023-06-26T13:47:13.646Z", - "updatedAt": "2023-06-26T13:47:13.646Z", - "environment": { - "sys": { - "id": "master", - "type": "Link", - "linkType": "Environment" - } - }, - "createdBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "updatedBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "publishedCounter": 0, - "version": 1, - "automationTags": [], - "contentType": { - "sys": { - "type": "Link", - "linkType": "ContentType", - "id": "appliedMigrations" - } - } - }, - "fields": { - "timestamp": { - "en-US": "20230602075003097 (1)" - }, - "name": { - "en-US": "inititial-migration" - }, - "batch": { - "en-US": 1 - } - } - }, - { - "metadata": { - "tags": [] - }, - "sys": { - "space": { - "sys": { - "type": "Link", - "linkType": "Space", - "id": "TEST_SPACE_ID" - } - }, - "id": "6iq3xP0EsGS9NzJoWvyblp", - "type": "Entry", - "createdAt": "2023-06-26T13:47:12.064Z", - "updatedAt": "2023-06-26T13:47:12.064Z", - "environment": { - "sys": { - "id": "master", - "type": "Link", - "linkType": "Environment" - } - }, - "createdBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "updatedBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "publishedCounter": 0, - "version": 1, - "automationTags": [], - "contentType": { - "sys": { - "type": "Link", - "linkType": "ContentType", - "id": "appliedMigrations" - } - } - }, - "fields": { - "timestamp": { - "en-US": "20230602075003097 (1)" - }, - "name": { - "en-US": "inititial-migration" - }, - "batch": { - "en-US": 1 - } - } - } - ] - }), + displayField: 'timestamp', + name: 'Applied migrations', + description: null, + fields: [ + { + id: 'timestamp', + name: 'Timestamp', + type: 'Symbol', + localized: false, + required: true, + validations: [], + disabled: false, + omitted: false, + }, + { + id: 'name', + name: 'Name', + type: 'Symbol', + localized: false, + required: true, + validations: [], + disabled: false, + omitted: false, + }, + { + id: 'batch', + name: 'Batch number', + type: 'Integer', + localized: false, + required: true, + validations: [], + disabled: false, + omitted: false, + }, + ], + }) ) }), + + rest.get(`${baseURL}/environments/master/entries`, (req, res, ctx) => { + if (req.url.searchParams.get('limit') === '1000' && req.url.searchParams.get('content_type') === 'appliedMigrations') { + return res( + ctx.status(200), + ctx.json({ + sys: { + type: 'Array', + }, + total: 0, + skip: 0, + limit: 1000, + items: [], + }) + ) + } + }), + rest.get(`${baseURL}/environments`, (req, res, ctx) => { return res( ctx.status(200), ctx.json({ - "total": 3, - "limit": 25, - "skip": 0, - "sys": { - "type": "Array" + total: 3, + limit: 25, + skip: 0, + sys: { + type: 'Array', }, - "items": [ - { - "name": "test", - "sys": { - "type": "Environment", - "id": "test", - "version": 3, - "space": { - "sys": { - "type": "Link", - "linkType": "Space", - "id": "TEST_SPACE_ID" - } - }, - "status": { - "sys": { - "type": "Link", - "linkType": "Status", - "id": "ready" - } - }, - "createdBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "createdAt": "2023-06-08T12:21:36Z", - "updatedBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "updatedAt": "2023-06-08T12:21:36Z", - "aliases": [] - } - }, - { - "name": "2023-06-28-11-33-42", - "sys": { - "type": "Environment", - "id": "2023-06-28-11-33-42", - "version": 3, - "space": { - "sys": { - "type": "Link", - "linkType": "Space", - "id": "TEST_SPACE_ID" - } - }, - "status": { - "sys": { - "type": "Link", - "linkType": "Status", - "id": "ready" - } - }, - "createdBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "createdAt": "2023-06-28T11:33:43Z", - "updatedBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "updatedAt": "2023-06-28T11:33:43Z", - "aliases": [ + items: [ + { + name: 'test', + sys: { + type: 'Environment', + id: 'test', + version: 3, + space: { + sys: { + type: 'Link', + linkType: 'Space', + id: 'TEST_SPACE_ID', + }, + }, + status: { + sys: { + type: 'Link', + linkType: 'Status', + id: 'ready', + }, + }, + createdBy: { + sys: { + type: 'Link', + linkType: 'User', + id: '7fkm1bGT9u8nLkbD7Uuqsr', + }, + }, + createdAt: '2023-06-08T12:21:36Z', + updatedBy: { + sys: { + type: 'Link', + linkType: 'User', + id: '7fkm1bGT9u8nLkbD7Uuqsr', + }, + }, + updatedAt: '2023-06-08T12:21:36Z', + aliases: [], + }, + }, + { + name: '2023-07-14-09-12-23', + sys: { + type: 'Environment', + id: '2023-07-14-09-12-23', + version: 3, + space: { + sys: { + type: 'Link', + linkType: 'Space', + id: 'TEST_SPACE_ID', + }, + }, + status: { + sys: { + type: 'Link', + linkType: 'Status', + id: 'ready', + }, + }, + createdBy: { + sys: { + type: 'Link', + linkType: 'User', + id: '7fkm1bGT9u8nLkbD7Uuqsr', + }, + }, + createdAt: '2023-07-14T09:12:24Z', + updatedBy: { + sys: { + type: 'Link', + linkType: 'User', + id: '7fkm1bGT9u8nLkbD7Uuqsr', + }, + }, + updatedAt: '2023-07-14T09:12:24Z', + aliases: [ { - "sys": { - "type": "Link", - "linkType": "EnvironmentAlias", - "id": "master" - } - } - ] - } - }, - { - "name": "2023-06-28-11-33-42", - "sys": { - "type": "Environment", - "id": "master", - "aliasedEnvironment": { - "sys": { - "type": "Link", - "linkType": "Environment", - "id": "2023-06-28-11-33-42" - } - }, - "version": 3, - "space": { - "sys": { - "type": "Link", - "linkType": "Space", - "id": "TEST_SPACE_ID" - } - }, - "status": { - "sys": { - "type": "Link", - "linkType": "Status", - "id": "ready" - } - }, - "createdBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "createdAt": "2023-06-28T11:33:43Z", - "updatedBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "updatedAt": "2023-06-28T11:33:43Z" - } - } - ] - }), + sys: { + type: 'Link', + linkType: 'EnvironmentAlias', + id: 'master', + }, + }, + ], + }, + }, + { + name: '2023-07-14-09-12-23', + sys: { + type: 'Environment', + id: 'master', + aliasedEnvironment: { + sys: { + type: 'Link', + linkType: 'Environment', + id: '2023-07-14-09-12-23', + }, + }, + version: 3, + space: { + sys: { + type: 'Link', + linkType: 'Space', + id: 'TEST_SPACE_ID', + }, + }, + status: { + sys: { + type: 'Link', + linkType: 'Status', + id: 'ready', + }, + }, + createdBy: { + sys: { + type: 'Link', + linkType: 'User', + id: '7fkm1bGT9u8nLkbD7Uuqsr', + }, + }, + createdAt: '2023-07-14T09:12:24Z', + updatedBy: { + sys: { + type: 'Link', + linkType: 'User', + id: '7fkm1bGT9u8nLkbD7Uuqsr', + }, + }, + updatedAt: '2023-07-14T09:12:24Z', + }, + }, + ], + }) ) }), - //wildcard to handle dynamic timestamp from contentful + //https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-07-14-12-33-54 + //wildcard endpoints to match PUT environment /DATE_TIME rest.put(`${baseURL}/environments/*`, (req, res, ctx) => { return res( ctx.status(201), ctx.json({ - "name": "2023-06-28-11-35-08", - "sys": { - "type": "Environment", - "id": "2023-06-28-11-35-08", - "version": 1, - "space": { - "sys": { - "type": "Link", - "linkType": "Space", - "id": "TEST_SPACE_ID" - } - }, - "status": { - "sys": { - "type": "Link", - "linkType": "Status", - "id": "queued" - } - }, - "createdBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "createdAt": "2023-06-28T11:35:09Z", - "updatedBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "updatedAt": "2023-06-28T11:35:09Z", - "aliases": [] - } - }), + name: '2023-07-14-09-24-23', + sys: { + type: 'Environment', + id: '2023-07-14-09-24-23', + version: 1, + space: { + sys: { + type: 'Link', + linkType: 'Space', + id: 'TEST_SPACE_ID', + }, + }, + status: { + sys: { + type: 'Link', + linkType: 'Status', + id: 'queued', + }, + }, + createdBy: { + sys: { + type: 'Link', + linkType: 'User', + id: '7fkm1bGT9u8nLkbD7Uuqsr', + }, + }, + createdAt: '2023-07-14T09:24:24Z', + updatedBy: { + sys: { + type: 'Link', + linkType: 'User', + id: '7fkm1bGT9u8nLkbD7Uuqsr', + }, + }, + updatedAt: '2023-07-14T09:24:24Z', + aliases: [], + }, + }) ) }), + //* intercepting GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-07-14-09-24-23/locales + rest.get(`${baseURL}/environments/*/locales`, (req, res, ctx) => { + return res( + ctx.status(200), + ctx.json({ + sys: { + type: 'Array', + }, + total: 1, + skip: 0, + limit: 100, + items: [ + { + name: 'English (United States)', + internal_code: 'en-US', + code: 'en-US', + fallbackCode: null, + default: true, + contentManagementApi: true, + contentDeliveryApi: true, + optional: false, + sys: { + type: 'Locale', + id: '1VDLlb9oKX4EE2oI6p9kMa', + version: 1, + space: { + sys: { + type: 'Link', + linkType: 'Space', + id: 'bo6ijs14u5ox', + }, + }, + environment: { + sys: { + type: 'Link', + linkType: 'Environment', + id: '2023-07-14-09-24-23', + uuid: '496f71bd-6cb5-49c7-8ddc-c9f857c1a212', + }, + }, + createdBy: { + sys: { + type: 'Link', + linkType: 'User', + id: '7fkm1bGT9u8nLkbD7Uuqsr', + }, + }, + createdAt: '2023-07-14T09:24:24Z', + updatedBy: { + sys: { + type: 'Link', + linkType: 'User', + id: '7fkm1bGT9u8nLkbD7Uuqsr', + }, + }, + updatedAt: '2023-07-14T09:24:24Z', + }, + }, + ], + }) + ) + }), + //wildcard endpoints to match GET environment /DATE_TIME + rest.get(`${baseURL}/environments/*`, (req, res, ctx) => { + return res( + ctx.status(200), + ctx.json({ + name: '2023-07-14-09-24-23', + sys: { + type: 'Environment', + id: '2023-07-14-09-24-23', + version: 3, + space: { + sys: { + type: 'Link', + linkType: 'Space', + id: 'TEST_SPACE_ID', + }, + }, + status: { + sys: { + type: 'Link', + linkType: 'Status', + id: 'ready', + }, + }, + createdBy: { + sys: { + type: 'Link', + linkType: 'User', + id: '7fkm1bGT9u8nLkbD7Uuqsr', + }, + }, + createdAt: '2023-07-14T09:24:24Z', + updatedBy: { + sys: { + type: 'Link', + linkType: 'User', + id: '7fkm1bGT9u8nLkbD7Uuqsr', + }, + }, + updatedAt: '2023-07-14T09:24:25Z', + aliases: [], + }, + }) + ) + }), + + //* Found an unhandled GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/api_keys rest.get(`${baseURL}/api_keys`, (req, res, ctx) => { return res( ctx.status(200), ctx.json({ - "total": 1, - "limit": 25, - "skip": 0, - "sys": { - "type": "Array" + total: 1, + limit: 25, + skip: 0, + sys: { + type: 'Array', }, - "items": [ + items: [ { - "name": "Example space token 1", - "description": "This token is used by an example app. It is coupled with the content previews.", - "accessToken": "c11ea00b60091e878e7966c52e1138ad3adf5ff00a99c5dde77cb05a83743045", - "policies": [ + name: 'Example space token 1', + description: 'This token is used by an example app. It is coupled with the content previews.', + accessToken: 'c11ea00b60091e878e7966c52e1138ad3adf5ff00a99c5dde77cb05a83743045', + policies: [ { - "effect": "allow", - "actions": "all" - } + effect: 'allow', + actions: 'all', + }, ], - "sys": { - "type": "ApiKey", - "id": "1Yrt2lSOGbwEjPWJVg6yJA", - "version": 79, - "space": { - "sys": { - "type": "Link", - "linkType": "Space", - "id": "TEST_SPACE_ID" - } + sys: { + type: 'ApiKey', + id: '1Yrt2lSOGbwEjPWJVg6yJA', + version: 86, + space: { + sys: { + type: 'Link', + linkType: 'Space', + id: 'TEST_SPACE_ID', + }, + }, + createdBy: { + sys: { + type: 'Link', + linkType: 'User', + id: '7fkm1bGT9u8nLkbD7Uuqsr', + }, + }, + createdAt: '2018-09-17T08:26:09Z', + updatedBy: { + sys: { + type: 'Link', + linkType: 'User', + id: '7fkm1bGT9u8nLkbD7Uuqsr', + }, + }, + updatedAt: '2023-07-14T09:12:25Z', + }, + environments: [ + { + sys: { + id: 'master', + type: 'Link', + linkType: 'Environment', + }, + }, + { + sys: { + id: '2023-06-02-08-50-46', + type: 'Link', + linkType: 'Environment', + }, }, - "createdBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } + { + sys: { + id: '2023-06-05-11-14-05', + type: 'Link', + linkType: 'Environment', + }, }, - "createdAt": "2018-09-17T08:26:09Z", - "updatedBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } + { + sys: { + id: '2023-06-05-11-18-44', + type: 'Link', + linkType: 'Environment', + }, + }, + { + sys: { + id: '2023-06-05-11-19-09', + type: 'Link', + linkType: 'Environment', + }, + }, + { + sys: { + id: '2023-06-05-11-19-33', + type: 'Link', + linkType: 'Environment', + }, }, - "updatedAt": "2023-06-28T11:33:43Z" - }, - "environments": [ { - "sys": { - "id": "master", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-12-08-11', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-02-08-50-46", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-12-09-36', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-11-14-05", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-12-13-09', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-11-18-44", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-12-21-53', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-11-19-09", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-12-25-50', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-11-19-33", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-12-29-49', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-12-08-11", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-12-30-33', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-12-09-36", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-12-30-50', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-12-13-09", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-12-35-27', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-12-21-53", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-12-58-23', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-12-25-50", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-14-10-01', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-12-29-49", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-14-10-44', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-12-30-33", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-14-12-01', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-12-30-50", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-14-12-19', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-12-35-27", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-14-12-46', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-12-58-23", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-14-13-12', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-14-10-01", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-14-14-12', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-14-10-44", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-14-18-45', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-14-12-01", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-14-33-50', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-14-12-19", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-14-35-12', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-14-12-46", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-14-35-50', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-14-13-12", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-14-36-46', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-14-14-12", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-14-38-59', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-14-18-45", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-14-40-09', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-14-33-50", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-14-40-30', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-14-35-12", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-14-52-54', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-14-35-50", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-14-53-49', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-14-36-46", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-15-03-45', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-14-38-59", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-15-04-30', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-14-40-09", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-15-14-56', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-14-40-30", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-15-15-34', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-14-52-54", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-15-24-35', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-14-53-49", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-15-25-05', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-15-03-45", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-15-25-47', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-15-04-30", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-15-38-32', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-15-14-56", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-15-51-32', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-15-15-34", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-15-56-58', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-15-24-35", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-15-57-36', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-15-25-05", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-15-59-18', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-15-25-47", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-16-02-06', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-15-38-32", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-16-02-58', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-15-51-32", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-16-05-53', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-15-56-58", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-16-07-40', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-15-57-36", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-07-07-23-21', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-15-59-18", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-07-07-23-46', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-16-02-06", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-07-08-05-31', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-16-02-58", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-07-08-38-35', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-16-05-53", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-08-08-08-37', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-16-07-40", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-08-08-08-56', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-07-07-23-21", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-09-12-15-50', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-07-07-23-46", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-09-12-16-29', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-07-08-05-31", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-09-12-17-53', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-07-08-38-35", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-09-12-18-54', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-08-08-08-37", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-09-12-19-15', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-08-08-08-56", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-09-12-22-38', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-09-12-15-50", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-09-12-26-32', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-09-12-16-29", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-09-12-56-57', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-09-12-17-53", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-09-13-49-12', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-09-12-18-54", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-09-13-52-52', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-09-12-19-15", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-09-13-53-47', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-09-12-22-38", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-14-08-27-25', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-09-12-26-32", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-26-13-46-48', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-09-12-56-57", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-26-14-05-43', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-09-13-49-12", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-26-14-07-29', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-09-13-52-52", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-26-14-11-02', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-09-13-53-47", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-26-14-12-01', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-14-08-27-25", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-26-14-12-36', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-26-13-46-48", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-27-08-53-00', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-26-14-05-43", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-28-07-02-37', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-26-14-07-29", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-28-11-32-12', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-26-14-11-02", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-28-11-32-44', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-26-14-12-01", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-28-11-33-42', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-26-14-12-36", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-28-11-35-08', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-27-08-53-00", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-29-08-45-03', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-28-07-02-37", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-29-08-45-20', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-28-11-32-12", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: 'test-env', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-28-11-32-44", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-07-14-08-51-57', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-28-11-33-42", - "type": "Link", - "linkType": "Environment" - } - } + sys: { + id: '2023-07-14-09-11-59', + type: 'Link', + linkType: 'Environment', + }, + }, + { + sys: { + id: '2023-07-14-09-12-23', + type: 'Link', + linkType: 'Environment', + }, + }, ], - "preview_api_key": { - "sys": { - "type": "Link", - "linkType": "PreviewApiKey", - "id": "1YsyWIrKbsWrbImKsd9Bqq" - } - } - } - ] - }), + preview_api_key: { + sys: { + type: 'Link', + linkType: 'PreviewApiKey', + id: '1YsyWIrKbsWrbImKsd9Bqq', + }, + }, + }, + ], + }) ) }), - //wildcard to handle api_key PUT request with dynamic timestamp - rest.put(`${baseURL}/api_keys/*`, (req, res, ctx) => { + //wildcard for dynamic api key + rest.put(`${baseURL}/api_keys/1Yrt2lSOGbwEjPWJVg6yJA`, (req, res, ctx) => { return res( - ctx.status(201), + ctx.status(200), ctx.json({ - "name": "Example space token 1", - "description": "This token is used by an example app. It is coupled with the content previews.", - "accessToken": "c11ea00b60091e878e7966c52e1138ad3adf5ff00a99c5dde77cb05a83743045", - "policies": [ - { - "effect": "allow", - "actions": "all" - } + name: 'Example space token 1', + description: 'This token is used by an example app. It is coupled with the content previews.', + accessToken: 'c11ea00b60091e878e7966c52e1138ad3adf5ff00a99c5dde77cb05a83743045', + policies: [ + { + effect: 'allow', + actions: 'all', + }, ], - "sys": { - "type": "ApiKey", - "id": "1Yrt2lSOGbwEjPWJVg6yJA", - "version": 80, - "space": { - "sys": { - "type": "Link", - "linkType": "Space", - "id": "TEST_SPACE_ID" - } - }, - "createdBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "createdAt": "2018-09-17T08:26:09Z", - "updatedBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "updatedAt": "2023-06-28T11:35:10Z" + sys: { + type: 'ApiKey', + id: '1Yrt2lSOGbwEjPWJVg6yJA', + version: 87, + space: { + sys: { + type: 'Link', + linkType: 'Space', + id: 'TEST_SPACE_ID', + }, + }, + createdBy: { + sys: { + type: 'Link', + linkType: 'User', + id: '7fkm1bGT9u8nLkbD7Uuqsr', + }, + }, + createdAt: '2018-09-17T08:26:09Z', + updatedBy: { + sys: { + type: 'Link', + linkType: 'User', + id: '7fkm1bGT9u8nLkbD7Uuqsr', + }, + }, + updatedAt: '2023-07-14T09:24:25Z', }, - "environments": [ + environments: [ + { + sys: { + id: 'master', + type: 'Link', + linkType: 'Environment', + }, + }, + { + sys: { + id: '2023-06-02-08-50-46', + type: 'Link', + linkType: 'Environment', + }, + }, + { + sys: { + id: '2023-06-05-11-14-05', + type: 'Link', + linkType: 'Environment', + }, + }, + { + sys: { + id: '2023-06-05-11-18-44', + type: 'Link', + linkType: 'Environment', + }, + }, + { + sys: { + id: '2023-06-05-11-19-09', + type: 'Link', + linkType: 'Environment', + }, + }, { - "sys": { - "id": "master", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-11-19-33', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-02-08-50-46", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-12-08-11', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-11-14-05", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-12-09-36', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-11-18-44", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-12-13-09', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-11-19-09", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-12-21-53', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-11-19-33", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-12-25-50', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-12-08-11", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-12-29-49', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-12-09-36", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-12-30-33', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-12-13-09", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-12-30-50', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-12-21-53", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-12-35-27', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-12-25-50", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-12-58-23', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-12-29-49", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-14-10-01', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-12-30-33", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-14-10-44', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-12-30-50", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-14-12-01', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-12-35-27", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-14-12-19', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-12-58-23", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-14-12-46', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-14-10-01", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-14-13-12', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-14-10-44", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-14-14-12', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-14-12-01", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-14-18-45', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-14-12-19", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-14-33-50', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-14-12-46", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-14-35-12', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-14-13-12", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-14-35-50', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-14-14-12", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-14-36-46', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-14-18-45", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-14-38-59', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-14-33-50", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-14-40-09', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-14-35-12", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-14-40-30', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-14-35-50", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-14-52-54', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-14-36-46", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-14-53-49', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-14-38-59", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-15-03-45', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-14-40-09", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-15-04-30', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-14-40-30", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-15-14-56', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-14-52-54", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-15-15-34', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-14-53-49", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-15-24-35', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-15-03-45", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-15-25-05', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-15-04-30", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-15-25-47', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-15-14-56", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-15-38-32', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-15-15-34", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-15-51-32', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-15-24-35", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-15-56-58', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-15-25-05", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-15-57-36', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-15-25-47", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-15-59-18', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-15-38-32", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-16-02-06', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-15-51-32", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-16-02-58', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-15-56-58", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-16-05-53', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-15-57-36", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-05-16-07-40', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-15-59-18", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-07-07-23-21', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-16-02-06", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-07-07-23-46', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-16-02-58", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-07-08-05-31', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-16-05-53", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-07-08-38-35', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-05-16-07-40", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-08-08-08-37', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-07-07-23-21", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-08-08-08-56', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-07-07-23-46", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-09-12-15-50', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-07-08-05-31", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-09-12-16-29', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-07-08-38-35", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-09-12-17-53', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-08-08-08-37", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-09-12-18-54', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-08-08-08-56", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-09-12-19-15', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-09-12-15-50", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-09-12-22-38', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-09-12-16-29", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-09-12-26-32', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-09-12-17-53", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-09-12-56-57', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-09-12-18-54", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-09-13-49-12', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-09-12-19-15", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-09-13-52-52', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-09-12-22-38", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-09-13-53-47', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-09-12-26-32", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-14-08-27-25', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-09-12-56-57", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-26-13-46-48', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-09-13-49-12", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-26-14-05-43', + type: 'Link', + linkType: 'Environment', + }, + }, + { + sys: { + id: '2023-06-26-14-07-29', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-09-13-52-52", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-26-14-11-02', + type: 'Link', + linkType: 'Environment', + }, + }, + { + sys: { + id: '2023-06-26-14-12-01', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-09-13-53-47", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-26-14-12-36', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-14-08-27-25", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-27-08-53-00', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-26-13-46-48", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-28-07-02-37', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-26-14-05-43", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-28-11-32-12', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-26-14-07-29", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-28-11-32-44', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-26-14-11-02", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-28-11-33-42', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-26-14-12-01", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-28-11-35-08', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-26-14-12-36", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-29-08-45-03', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-27-08-53-00", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-06-29-08-45-20', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-28-07-02-37", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: 'test-env', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-28-11-32-12", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-07-14-08-51-57', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-28-11-32-44", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-07-14-09-11-59', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-28-11-33-42", - "type": "Link", - "linkType": "Environment" - } + sys: { + id: '2023-07-14-09-12-23', + type: 'Link', + linkType: 'Environment', + }, }, { - "sys": { - "id": "2023-06-28-11-35-08", - "type": "Link", - "linkType": "Environment" - } - } + sys: { + id: '2023-07-14-09-24-23', + type: 'Link', + linkType: 'Environment', + }, + }, ], - "preview_api_key": { - "sys": { - "type": "Link", - "linkType": "PreviewApiKey", - "id": "1YsyWIrKbsWrbImKsd9Bqq" - } - } - }), - ) - }), - - rest.get(`${baseURL}/environments/*/locales`, (req, res, ctx) => { - return res( - ctx.status(200), - ctx.json({ - "sys": { - "type": "Array" - }, - "total": 1, - "skip": 0, - "limit": 100, - "items": [ - { - "name": "English (United States)", - "internal_code": "en-US", - "code": "en-US", - "fallbackCode": null, - "default": true, - "contentManagementApi": true, - "contentDeliveryApi": true, - "optional": false, - "sys": { - "type": "Locale", - "id": "1VDLlb9oKX4EE2oI6p9kMa", - "version": 1, - "space": { - "sys": { - "type": "Link", - "linkType": "Space", - "id": "TEST_SPACE_ID" - } - }, - "environment": { - "sys": { - "type": "Link", - "linkType": "Environment", - "id": "2023-06-28-11-35-08", - "uuid": "ddefb40d-4099-450d-8d99-49c07db971ab" - } - }, - "createdBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "createdAt": "2023-06-28T11:35:09Z", - "updatedBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "updatedAt": "2023-06-28T11:35:09Z" - } - } - ] - }), - ) - }), - - //todo: GET /locales?limit=100&order=sys.createdAt&skip=0 - - //todo: POST /entries - rest.post(`${baseURL}/environments/*/entries`, (req, res, ctx) => { - return res( - ctx.status(200), - ctx.json({ - "metadata": { - "tags": [] - }, - "sys": { - "space": { - "sys": { - "type": "Link", - "linkType": "Space", - "id": "bo6ijs14u5ox" - } - }, - "id": "P9aHLvrSfpLvqzb7o280G", - "type": "Entry", - "createdAt": "2023-06-28T11:35:14.661Z", - "updatedAt": "2023-06-28T11:35:14.661Z", - "environment": { - "sys": { - "id": "2023-06-28-11-35-08", - "type": "Link", - "linkType": "Environment" - } - }, - "createdBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "updatedBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "publishedCounter": 0, - "version": 1, - "automationTags": [], - "contentType": { - "sys": { - "type": "Link", - "linkType": "ContentType", - "id": "appliedMigrations" - } - } - }, - "fields": { - "timestamp": { - "en-US": "20230609122547608" - }, - "name": { - "en-US": "new-migration" - }, - "batch": { - "en-US": 2 - } - } - }), - ) - }), - - //todo: PUT https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-29-08-45-20/entries/2WP3BQMevIXiCXPA6GCIPH/published - rest.put(`${baseURL}/environments/*/entries/*/published`, (req, res, ctx) => { - return res( - ctx.status(201), - ctx.json({ - "metadata": { - "tags": [] - }, - "sys": { - "space": { - "sys": { - "type": "Link", - "linkType": "Space", - "id": "bo6ijs14u5ox" - } - }, - "id": "P9aHLvrSfpLvqzb7o280G", - "type": "Entry", - "createdAt": "2023-06-28T11:35:14.661Z", - "updatedAt": "2023-06-28T11:35:15.127Z", - "environment": { - "sys": { - "id": "2023-06-28-11-35-08", - "type": "Link", - "linkType": "Environment" - } - }, - "publishedVersion": 1, - "publishedAt": "2023-06-28T11:35:15.127Z", - "firstPublishedAt": "2023-06-28T11:35:15.127Z", - "createdBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "updatedBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "publishedCounter": 1, - "version": 2, - "publishedBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "automationTags": [], - "contentType": { - "sys": { - "type": "Link", - "linkType": "ContentType", - "id": "appliedMigrations" - } - } + preview_api_key: { + sys: { + type: 'Link', + linkType: 'PreviewApiKey', + id: '1YsyWIrKbsWrbImKsd9Bqq', + }, }, - "fields": { - "timestamp": { - "en-US": "20230609122547608" - }, - "name": { - "en-US": "new-migration" - }, - "batch": { - "en-US": 2 - } - } - }), + }) ) }), - //wildcard to handle environments GET request with dynamic timestamp - //https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08 - rest.get(`${baseURL}/environments/*`, (req, res, ctx) => { - return res( - ctx.status(200), - ctx.json({ - "name": "2023-06-28-11-35-08", - "sys": { - "type": "Environment", - "id": "2023-06-28-11-35-08", - "version": 3, - "space": { - "sys": { - "type": "Link", - "linkType": "Space", - "id": "TEST_SPACE_ID" - } - }, - "status": { - "sys": { - "type": "Link", - "linkType": "Status", - "id": "ready" - } - }, - "createdBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "createdAt": "2023-06-28T11:35:09Z", - "updatedBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "updatedAt": "2023-06-28T11:35:09Z", - "aliases": [] - } - }), - ) - }), - - //Found an unhandled DELETE request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08 - //wildcard to handle environments DELETE request with dynamic timestamp rest.delete(`${baseURL}/environments/*`, (req, res, ctx) => { - - console.log("HITTING DELETE") - return res( - ctx.status(204), - ctx.json({ - "name": "2023-06-28-11-35-08", - "sys": { - "type": "Environment", - "id": "2023-06-28-11-35-08", - "version": 3, - "space": { - "sys": { - "type": "Link", - "linkType": "Space", - "id": "TEST_SPACE_ID" - } - }, - "status": { - "sys": { - "type": "Link", - "linkType": "Status", - "id": "ready" - } - }, - "createdBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "createdAt": "2023-06-28T11:35:09Z", - "updatedBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "updatedAt": "2023-06-28T11:35:09Z", - "aliases": [] - } - }), - ) + console.log('HITTING DELETE!!!!') + return res(ctx.status(204)) }), ] - - - -let responses = [ -/* { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master/content_types/appliedMigrations", - "method": "GET", - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"appliedMigrations\",\"type\":\"ContentType\",\"createdAt\":\"2023-06-02T08:50:44.787Z\",\"updatedAt\":\"2023-06-05T14:20:22.754Z\",\"environment\":{\"sys\":{\"id\":\"master\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"publishedVersion\":3,\"publishedAt\":\"2023-06-05T14:20:22.754Z\",\"firstPublishedAt\":\"2023-06-02T08:50:45.349Z\",\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":2,\"version\":4,\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}}},\"displayField\":\"timestamp\",\"name\":\"Applied migrations\",\"description\":\"\",\"fields\":[{\"id\":\"timestamp\",\"name\":\"Timestamp\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"name\",\"name\":\"Name\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"batch\",\"name\":\"Batch number\",\"type\":\"Integer\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" - },*/ -/* { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master/entries?content_type=appliedMigrations&limit=1000", - "method": "GET", - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"sys\":{\"type\":\"Array\"},\"total\":2,\"skip\":0,\"limit\":1000,\"items\":[{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"5UALu1mPBVs3arGpz6BQOS\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:13.646Z\",\"updatedAt\":\"2023-06-26T13:47:13.646Z\",\"environment\":{\"sys\":{\"id\":\"master\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}},{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"6iq3xP0EsGS9NzJoWvyblp\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:12.064Z\",\"updatedAt\":\"2023-06-26T13:47:12.064Z\",\"environment\":{\"sys\":{\"id\":\"master\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}}]}\n" - },*/ - /*{ - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments", - "method": "GET", - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\n \"total\":3,\n \"limit\":25,\n \"skip\":0,\n \"sys\":{\n \"type\":\"Array\"\n },\n \"items\":[\n {\n \"name\":\"test\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"test\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-08T12:21:36Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-08T12:21:36Z\",\n \"aliases\":[]\n }\n },\n {\n \"name\":\"2023-06-28-11-33-42\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:33:43Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:43Z\",\n \"aliases\":[\n {\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"EnvironmentAlias\",\n \"id\":\"master\"\n }\n }\n ]\n }\n },\n {\n \"name\":\"2023-06-28-11-33-42\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"master\",\n \"aliasedEnvironment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\"\n }\n },\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:33:43Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:43Z\"\n }\n }\n ]\n}\n\n" - },*/ - /*{ - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08", - "method": "PUT", - "status": 201, - "statusText": "Created", - "headers": {}, - "body": "{\n \"name\":\"2023-06-28-11-35-08\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-06-28-11-35-08\",\n \"version\":1,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"queued\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:35:09Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:35:09Z\",\n \"aliases\":[]\n }\n}\n\n" - },*/ -/* { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/api_keys", - "method": "GET", - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\n \"total\":1,\n \"limit\":25,\n \"skip\":0,\n \"sys\":{\n \"type\":\"Array\"\n },\n \"items\":[\n {\n \"name\":\"Example space token 1\",\n \"description\":\"This token is used by an example app. It is coupled with the content previews.\",\n \"accessToken\":\"c11ea00b60091e878e7966c52e1138ad3adf5ff00a99c5dde77cb05a83743045\",\n \"policies\":[\n {\n \"effect\":\"allow\",\n \"actions\":\"all\"\n }\n ],\n \"sys\":{\n \"type\":\"ApiKey\",\n \"id\":\"1Yrt2lSOGbwEjPWJVg6yJA\",\n \"version\":79,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2018-09-17T08:26:09Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:43Z\"\n },\n \"environments\":[\n {\n \"sys\":{\n \"id\":\"master\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-02-08-50-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-14-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-18-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-08-11\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-09-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-13-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-21-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-25-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-29-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-35-27\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-58-23\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-19\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-13-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-14-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-18-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-33-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-36-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-38-59\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-52-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-53-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-03-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-04-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-14-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-15-34\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-24-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-38-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-51-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-56-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-57-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-59-18\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-06\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-05-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-07-40\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-21\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-05-31\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-38-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-15-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-16-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-17-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-18-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-19-15\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-22-38\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-26-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-56-57\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-49-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-52-52\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-53-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-14-08-27-25\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-13-46-48\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-05-43\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-07-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-11-02\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-27-08-53-00\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-07-02-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-33-42\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n }\n ],\n \"preview_api_key\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"PreviewApiKey\",\n \"id\":\"1YsyWIrKbsWrbImKsd9Bqq\"\n }\n }\n }\n ]\n}\n\n" - },*/ - { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/api_keys/1Yrt2lSOGbwEjPWJVg6yJA", - "method": "PUT", - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\n \"name\":\"Example space token 1\",\n \"description\":\"This token is used by an example app. It is coupled with the content previews.\",\n \"accessToken\":\"c11ea00b60091e878e7966c52e1138ad3adf5ff00a99c5dde77cb05a83743045\",\n \"policies\":[\n {\n \"effect\":\"allow\",\n \"actions\":\"all\"\n }\n ],\n \"sys\":{\n \"type\":\"ApiKey\",\n \"id\":\"1Yrt2lSOGbwEjPWJVg6yJA\",\n \"version\":80,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2018-09-17T08:26:09Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:35:10Z\"\n },\n \"environments\":[\n {\n \"sys\":{\n \"id\":\"master\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-02-08-50-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-14-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-18-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-08-11\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-09-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-13-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-21-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-25-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-29-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-35-27\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-58-23\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-19\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-13-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-14-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-18-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-33-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-36-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-38-59\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-52-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-53-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-03-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-04-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-14-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-15-34\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-24-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-38-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-51-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-56-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-57-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-59-18\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-06\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-05-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-07-40\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-21\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-05-31\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-38-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-15-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-16-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-17-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-18-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-19-15\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-22-38\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-26-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-56-57\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-49-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-52-52\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-53-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-14-08-27-25\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-13-46-48\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-05-43\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-07-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-11-02\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-27-08-53-00\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-07-02-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-33-42\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-35-08\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n }\n ],\n \"preview_api_key\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"PreviewApiKey\",\n \"id\":\"1YsyWIrKbsWrbImKsd9Bqq\"\n }\n }\n}\n\n" - }, - { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID", - "method": "GET", - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\n \"name\":\"TypeOne\",\n \"sys\":{\n \"type\":\"Space\",\n \"id\":\"TEST_SPACE_ID\",\n \"version\":7,\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2018-09-17T08:26:06Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2022-12-15T09:11:48Z\",\n \"organization\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Organization\",\n \"id\":\"1kUUWhojvGtUmRyhXfqSwK\"\n }\n }\n }\n}\n\n" - }, -/* { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08", - "method": "GET", - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\n \"name\":\"2023-06-28-11-35-08\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-06-28-11-35-08\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:35:09Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:35:09Z\",\n \"aliases\":[]\n }\n}\n\n" - },*/ -/* { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/locales", - "method": "GET", - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"sys\":{\"type\":\"Array\"},\"total\":1,\"skip\":0,\"limit\":100,\"items\":[{\"name\":\"English (United States)\",\"internal_code\":\"en-US\",\"code\":\"en-US\",\"fallbackCode\":null,\"default\":true,\"contentManagementApi\":true,\"contentDeliveryApi\":true,\"optional\":false,\"sys\":{\"type\":\"Locale\",\"id\":\"1VDLlb9oKX4EE2oI6p9kMa\",\"version\":1,\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"environment\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Environment\",\"id\":\"2023-06-28-11-35-08\",\"uuid\":\"ddefb40d-4099-450d-8d99-49c07db971ab\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"createdAt\":\"2023-06-28T11:35:09Z\",\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedAt\":\"2023-06-28T11:35:09Z\"}}]}\n" - },*/ - { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/content_types/appliedMigrations", - "method": "GET", - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"appliedMigrations\",\"type\":\"ContentType\",\"createdAt\":\"2023-06-02T08:50:44.787Z\",\"updatedAt\":\"2023-06-05T14:20:22.754Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"publishedVersion\":3,\"publishedAt\":\"2023-06-05T14:20:22.754Z\",\"firstPublishedAt\":\"2023-06-02T08:50:45.349Z\",\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":2,\"version\":4,\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}}},\"displayField\":\"timestamp\",\"name\":\"Applied migrations\",\"description\":\"\",\"fields\":[{\"id\":\"timestamp\",\"name\":\"Timestamp\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"name\",\"name\":\"Name\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"batch\",\"name\":\"Batch number\",\"type\":\"Integer\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" - }, - { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/entries?content_type=appliedMigrations&limit=1000", - "method": "GET", - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"sys\":{\"type\":\"Array\"},\"total\":2,\"skip\":0,\"limit\":1000,\"items\":[{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"5UALu1mPBVs3arGpz6BQOS\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:13.646Z\",\"updatedAt\":\"2023-06-26T13:47:13.646Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}},{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"6iq3xP0EsGS9NzJoWvyblp\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:12.064Z\",\"updatedAt\":\"2023-06-26T13:47:12.064Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}}]}\n" - }, - { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/content_types?limit=100&order=sys.createdAt&sys.id[in]=testContentType&skip=0", - "method": "GET", - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"sys\":{\"type\":\"Array\"},\"total\":0,\"skip\":0,\"limit\":100,\"items\":[]}\n" - }, - { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/locales?limit=100&order=sys.createdAt&skip=0", - "method": "GET", - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"sys\":{\"type\":\"Array\"},\"total\":1,\"skip\":0,\"limit\":100,\"items\":[{\"name\":\"English (United States)\",\"internal_code\":\"en-US\",\"code\":\"en-US\",\"fallbackCode\":null,\"default\":true,\"contentManagementApi\":true,\"contentDeliveryApi\":true,\"optional\":false,\"sys\":{\"type\":\"Locale\",\"id\":\"1VDLlb9oKX4EE2oI6p9kMa\",\"version\":1,\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"environment\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Environment\",\"id\":\"2023-06-28-11-35-08\",\"uuid\":\"ddefb40d-4099-450d-8d99-49c07db971ab\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"createdAt\":\"2023-06-28T11:35:09Z\",\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedAt\":\"2023-06-28T11:35:09Z\"}}]}\n" - }, - { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/content_types/testContentType", - "method": "PUT", - "status": 201, - "statusText": "Created", - "headers": {}, - "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"testContentType\",\"type\":\"ContentType\",\"createdAt\":\"2023-06-28T11:35:12.987Z\",\"updatedAt\":\"2023-06-28T11:35:12.987Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1},\"displayField\":\"testContentId\",\"name\":\"Test content type\",\"description\":\"\",\"fields\":[{\"id\":\"testContentId\",\"name\":\"test content id\",\"type\":\"Symbol\",\"localized\":false,\"required\":false,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" - }, - { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/content_types/testContentType/published", - "method": "PUT", - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"testContentType\",\"type\":\"ContentType\",\"createdAt\":\"2023-06-28T11:35:12.987Z\",\"updatedAt\":\"2023-06-28T11:35:13.333Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":1,\"version\":2,\"firstPublishedAt\":\"2023-06-28T11:35:13.333Z\",\"publishedAt\":\"2023-06-28T11:35:13.333Z\",\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedVersion\":1},\"displayField\":\"testContentId\",\"name\":\"Test content type\",\"description\":\"\",\"fields\":[{\"id\":\"testContentId\",\"name\":\"test content id\",\"type\":\"Symbol\",\"localized\":false,\"required\":false,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" - }, - { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/entries?content_type=appliedMigrations&limit=1000", - "method": "GET", - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"sys\":{\"type\":\"Array\"},\"total\":2,\"skip\":0,\"limit\":1000,\"items\":[{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"5UALu1mPBVs3arGpz6BQOS\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:13.646Z\",\"updatedAt\":\"2023-06-26T13:47:13.646Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}},{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"6iq3xP0EsGS9NzJoWvyblp\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:12.064Z\",\"updatedAt\":\"2023-06-26T13:47:12.064Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}}]}\n" - }, - { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/entries", - "method": "POST", - "status": 201, - "statusText": "Created", - "headers": {}, - "body": "{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"P9aHLvrSfpLvqzb7o280G\",\"type\":\"Entry\",\"createdAt\":\"2023-06-28T11:35:14.661Z\",\"updatedAt\":\"2023-06-28T11:35:14.661Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230609122547608\"},\"name\":{\"en-US\":\"new-migration\"},\"batch\":{\"en-US\":2}}}\n" - }, - { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/entries/P9aHLvrSfpLvqzb7o280G/published", - "method": "PUT", - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"P9aHLvrSfpLvqzb7o280G\",\"type\":\"Entry\",\"createdAt\":\"2023-06-28T11:35:14.661Z\",\"updatedAt\":\"2023-06-28T11:35:15.127Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"publishedVersion\":1,\"publishedAt\":\"2023-06-28T11:35:15.127Z\",\"firstPublishedAt\":\"2023-06-28T11:35:15.127Z\",\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":1,\"version\":2,\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230609122547608\"},\"name\":{\"en-US\":\"new-migration\"},\"batch\":{\"en-US\":2}}}\n" - }, - { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environment_aliases/master", - "method": "GET", - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\n \"sys\":{\n \"type\":\"EnvironmentAlias\",\n \"id\":\"master\",\n \"version\":16,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-05T12:35:02Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:50Z\"\n },\n \"environment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\"\n }\n }\n}\n\n" - }, - { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environment_aliases/master", - "method": "GET", - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\n \"sys\":{\n \"type\":\"EnvironmentAlias\",\n \"id\":\"master\",\n \"version\":16,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-05T12:35:02Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:50Z\"\n },\n \"environment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\"\n }\n }\n}\n\n" - }, - { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environment_aliases/master", - "method": "PUT", - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\n \"sys\":{\n \"type\":\"EnvironmentAlias\",\n \"id\":\"master\",\n \"version\":17,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-05T12:35:02Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:35:16Z\"\n },\n \"environment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-06-28-11-35-08\"\n }\n }\n}\n\n" - }, - { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-33-42", - "method": "GET", - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\n \"name\":\"2023-06-28-11-33-42\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:33:43Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:43Z\",\n \"aliases\":[]\n }\n}\n\n" - }, - { - "id": "0115a323-ff93-4404-9a0a-8ab0801abf87", - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-33-42", - "status": 204, - "statusText": "No Content", - "headers": {}, - "body": "" - } -] diff --git a/mocks/contentful/handlers/migrate/log.txt b/mocks/contentful/handlers/migrate/log.txt new file mode 100644 index 0000000..73c86f9 --- /dev/null +++ b/mocks/contentful/handlers/migrate/log.txt @@ -0,0 +1,153 @@ +setting up network traffic interceptor server +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/locales +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/locales +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/locales +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types/appliedMigrations +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types/appliedMigrations +* receiving status 404 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types/appliedMigrations +`Applied migrations` type not found. Creating it. +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types?limit=100&order=sys.createdAt&sys.id[in]=appliedMigrations&skip=0 +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types?limit=100&order=sys.createdAt&sys.id[in]=appliedMigrations&skip=0 +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types?limit=100&order=sys.createdAt&sys.id[in]=appliedMigrations&skip=0 +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/locales?limit=100&order=sys.createdAt&skip=0 +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/locales?limit=100&order=sys.createdAt&skip=0 +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/locales?limit=100&order=sys.createdAt&skip=0 +The following migration has been planned + +Environment: master + +Create Content Type appliedMigrations + - name: "Applied migrations" + - displayField: "timestamp" + + Create field timestamp + - name: "Timestamp" + - type: "Symbol" + - required: true + + Create field name + - name: "Name" + - type: "Symbol" + - required: true + + Create field batch + - name: "Batch number" + - type: "Integer" + - required: true + +Publish Content Type appliedMigrations +❯ Create Content Type appliedMigrations + ⠋ Making requests (1/2) + › PUT /content_types/appliedMigrations at V0 +* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/env❯ Create Content Type appliedMigrations + ⠦ Making requests (1/2) +❯ Create Content Type appliedMigrations + ⠦ Making requests (2/2) + › PUT /content_types/appliedMigrations/published at V1 +* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/env✔ Create Content Type appliedMigrations +🎉 Migration successful +`Applied migrations` type created. +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/entries?content_type=appliedMigrations&limit=1000 +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/entries?content_type=appliedMigrations&limit=1000 +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types/appliedMigrations/published +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/entries?content_type=appliedMigrations&limit=1000 +About to apply the following migrations: + 20230609122547608 - new-migration +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments +Creating environment 2023-07-14-09-24-23. +* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23 +* Found an unhandled PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23 +* receiving status 201 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23 +Environment 2023-07-14-09-24-23 created. +Updating api key access to new env 2023-07-14-09-24-23. +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys +* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys/1Yrt2lSOGbwEjPWJVg6yJA +* Found an unhandled PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys/1Yrt2lSOGbwEjPWJVg6yJA +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys/1Yrt2lSOGbwEjPWJVg6yJA +Api key access to new env 2023-07-14-09-24-23 updated. +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23 +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23 +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23 +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/locales +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/locales +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/locales +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/content_types/appliedMigrations +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/content_types/appliedMigrations +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/content_types/appliedMigrations +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries?content_type=appliedMigrations&limit=1000 +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries?content_type=appliedMigrations&limit=1000 +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries?content_type=appliedMigrations&limit=1000 +Migrating. +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/content_types?limit=100&order=sys.createdAt&sys.id[in]=testContentType&skip=0 +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/content_types?limit=100&order=sys.createdAt&sys.id[in]=testContentType&skip=0 +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/content_types?limit=100&order=sys.createdAt&sys.id[in]=testContentType&skip=0 +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/locales?limit=100&order=sys.createdAt&skip=0 +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/locales?limit=100&order=sys.createdAt&skip=0 +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/locales?limit=100&order=sys.createdAt&skip=0 +The following migration has been planned + +Environment: 2023-07-14-09-24-23 + +Create Content Type testContentType + - name: "Test content type" + - description: "" + - displayField: "testContentId" + + Create field testContentId + - name: "test content id" + - type: "Symbol" + +Publish Content Type testContentType +❯ Create Content Type testContentType + ⠋ Making requests (1/2) + › PUT /content_types/testContentType at V0 +* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/env❯ Create Content Type testContentType + ⠸ Making requests (1/2) +❯ Create Content Type testContentType + ⠸ Making requests (2/2) + › PUT /content_types/testContentType/published at V1 +* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/env❯ Create Content Type testContentType + ⠧ Making requests (2/2) +✔ Create Content Type testContentType +🎉 Migration successful +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries?content_type=appliedMigrations&limit=1000 +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries?content_type=appliedMigrations&limit=1000 +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries?content_type=appliedMigrations&limit=1000 +* intercepting POST request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries +* Found an unhandled POST request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries +* receiving status 201 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries +* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries/4Z82uIue7f5KTUjGfmsSyg/published +* Found an unhandled PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries/4Z82uIue7f5KTUjGfmsSyg/published +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries/4Z82uIue7f5KTUjGfmsSyg/published +Migrated. +Switching environment alias. +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master +* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master +* Found an unhandled PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-12-23 +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-12-23 +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-12-23 +* intercepting DELETE request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-12-23 +* Found an unhandled DELETE request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-12-23 +* receiving status 204 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-12-23 +Environment alias switched successfully. +handling exit diff --git a/mocks/contentful/handlers/migrate/requestsHandledByMockServer.txt b/mocks/contentful/handlers/migrate/requestsHandledByMockServer.txt new file mode 100644 index 0000000..b33a237 --- /dev/null +++ b/mocks/contentful/handlers/migrate/requestsHandledByMockServer.txt @@ -0,0 +1,30 @@ +* intercepting GET request to https://api.contentful.com/spaces/TEST_SPACE_ID +* Found an unhandled GET request to https://api.contentful.com/spaces/TEST_SPACE_ID +* receiving status 200 from https://api.contentful.com/spaces/TEST_SPACE_ID + +* intercepting GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master +* Found an unhandled GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master +* receiving status 200 from https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master + +* intercepting GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master/locales +* Found an unhandled GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master/locales +* receiving status 200 from https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master/locales +*********************** + + + + + + +* intercepting GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master/content_types/appliedMigrations +* Found an unhandled GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master/content_types/appliedMigrations +* receiving status 404 from https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master/content_types/appliedMigrations +`Applied migrations` type not found. Creating it. + +* intercepting GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master/content_types?limit=100&order=sys.createdAt&sys.id[in]=appliedMigrations&skip=0 +* Found an unhandled GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master/content_types?limit=100&order=sys.createdAt&sys.id[in]=appliedMigrations&skip=0 +* receiving status 200 from https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master/content_types?limit=100&order=sys.createdAt&sys.id[in]=appliedMigrations&skip=0 + +* intercepting GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master/locales?limit=100&order=sys.createdAt&skip=0 +* Found an unhandled GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master/locales?limit=100&order=sys.createdAt&skip=0 +* receiving status 200 from https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master/locales?limit=100&order=sys.createdAt&skip=0 diff --git a/mocks/contentful/handlers/migrate/traffic-1689326672640.json b/mocks/contentful/handlers/migrate/traffic-1689326672640.json new file mode 100644 index 0000000..1f5f433 --- /dev/null +++ b/mocks/contentful/handlers/migrate/traffic-1689326672640.json @@ -0,0 +1,3062 @@ +[ + { + "request": [ + { + "_bodyUsed": false, + "id": "8d321ca3-ac65-4ed3-b6e3-0bbd648610c1", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ], + "response": [ + { + "_bodyUsed": false, + "id": "8d321ca3-ac65-4ed3-b6e3-0bbd648610c1", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "8d321ca3-ac65-4ed3-b6e3-0bbd648610c1", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"name\":\"TypeOne\",\n \"sys\":{\n \"type\":\"Space\",\n \"id\":\"bo6ijs14u5ox\",\n \"version\":7,\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2018-09-17T08:26:06Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2022-12-15T09:11:48Z\",\n \"organization\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Organization\",\n \"id\":\"1kUUWhojvGtUmRyhXfqSwK\"\n }\n }\n }\n}\n\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "8d321ca3-ac65-4ed3-b6e3-0bbd648610c1", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"name\":\"TypeOne\",\n \"sys\":{\n \"type\":\"Space\",\n \"id\":\"bo6ijs14u5ox\",\n \"version\":7,\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2018-09-17T08:26:06Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2022-12-15T09:11:48Z\",\n \"organization\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Organization\",\n \"id\":\"1kUUWhojvGtUmRyhXfqSwK\"\n }\n }\n }\n}\n\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "372153b0-6e71-43a1-8d65-cbaf796add6e", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ], + "response": [ + { + "_bodyUsed": false, + "id": "372153b0-6e71-43a1-8d65-cbaf796add6e", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "372153b0-6e71-43a1-8d65-cbaf796add6e", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"name\":\"2023-07-14-09-12-23\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"master\",\n \"aliasedEnvironment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-07-14-09-12-23\"\n }\n },\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-07-14T09:12:24Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-07-14T09:12:24Z\"\n }\n}\n\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "372153b0-6e71-43a1-8d65-cbaf796add6e", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"name\":\"2023-07-14-09-12-23\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"master\",\n \"aliasedEnvironment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-07-14-09-12-23\"\n }\n },\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-07-14T09:12:24Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-07-14T09:12:24Z\"\n }\n}\n\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "274f012a-378a-41d7-a20f-7c7a6d3b87e2", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/locales", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ], + "response": [ + { + "_bodyUsed": false, + "id": "274f012a-378a-41d7-a20f-7c7a6d3b87e2", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/locales", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "274f012a-378a-41d7-a20f-7c7a6d3b87e2", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/locales", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":1,\"skip\":0,\"limit\":100,\"items\":[{\"name\":\"English (United States)\",\"internal_code\":\"en-US\",\"code\":\"en-US\",\"fallbackCode\":null,\"default\":true,\"contentManagementApi\":true,\"contentDeliveryApi\":true,\"optional\":false,\"sys\":{\"type\":\"Locale\",\"id\":\"1VDLlb9oKX4EE2oI6p9kMa\",\"version\":1,\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"environment\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Environment\",\"id\":\"2023-07-14-09-12-23\",\"uuid\":\"7a45d084-1419-4ae1-b1d4-996d47e44c5a\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"createdAt\":\"2023-07-14T09:12:24Z\",\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedAt\":\"2023-07-14T09:12:24Z\"}}]}\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "274f012a-378a-41d7-a20f-7c7a6d3b87e2", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/locales", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":1,\"skip\":0,\"limit\":100,\"items\":[{\"name\":\"English (United States)\",\"internal_code\":\"en-US\",\"code\":\"en-US\",\"fallbackCode\":null,\"default\":true,\"contentManagementApi\":true,\"contentDeliveryApi\":true,\"optional\":false,\"sys\":{\"type\":\"Locale\",\"id\":\"1VDLlb9oKX4EE2oI6p9kMa\",\"version\":1,\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"environment\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Environment\",\"id\":\"2023-07-14-09-12-23\",\"uuid\":\"7a45d084-1419-4ae1-b1d4-996d47e44c5a\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"createdAt\":\"2023-07-14T09:12:24Z\",\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedAt\":\"2023-07-14T09:12:24Z\"}}]}\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "f6a649cb-1b7c-4cf3-918f-e17091cf9515", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types/appliedMigrations", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ], + "response": [ + { + "_bodyUsed": false, + "id": "f6a649cb-1b7c-4cf3-918f-e17091cf9515", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types/appliedMigrations", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "f6a649cb-1b7c-4cf3-918f-e17091cf9515", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types/appliedMigrations", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 404, + "statusText": "Not Found", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Error\",\"id\":\"NotFound\"},\"message\":\"The resource could not be found.\",\"details\":{\"type\":\"ContentType\",\"id\":\"appliedMigrations\",\"environment\":\"master\",\"space\":\"bo6ijs14u5ox\"},\"requestId\":\"284d7c14-9b52-4655-aecb-2c6806e59106\"}\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "f6a649cb-1b7c-4cf3-918f-e17091cf9515", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types/appliedMigrations", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 404, + "statusText": "Not Found", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Error\",\"id\":\"NotFound\"},\"message\":\"The resource could not be found.\",\"details\":{\"type\":\"ContentType\",\"id\":\"appliedMigrations\",\"environment\":\"master\",\"space\":\"bo6ijs14u5ox\"},\"requestId\":\"284d7c14-9b52-4655-aecb-2c6806e59106\"}\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "2012229b-379d-4d8a-907d-a90553f2e522", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types?limit=100&order=sys.createdAt&sys.id[in]=appliedMigrations&skip=0", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ], + "response": [ + { + "_bodyUsed": false, + "id": "2012229b-379d-4d8a-907d-a90553f2e522", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types?limit=100&order=sys.createdAt&sys.id[in]=appliedMigrations&skip=0", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "2012229b-379d-4d8a-907d-a90553f2e522", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types?limit=100&order=sys.createdAt&sys.id[in]=appliedMigrations&skip=0", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":0,\"skip\":0,\"limit\":100,\"items\":[]}\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "2012229b-379d-4d8a-907d-a90553f2e522", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types?limit=100&order=sys.createdAt&sys.id[in]=appliedMigrations&skip=0", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":0,\"skip\":0,\"limit\":100,\"items\":[]}\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "beff124d-f4cc-4515-ace3-11d6f5abe0d3", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/locales?limit=100&order=sys.createdAt&skip=0", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ], + "response": [ + { + "_bodyUsed": false, + "id": "beff124d-f4cc-4515-ace3-11d6f5abe0d3", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/locales?limit=100&order=sys.createdAt&skip=0", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "beff124d-f4cc-4515-ace3-11d6f5abe0d3", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/locales?limit=100&order=sys.createdAt&skip=0", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":1,\"skip\":0,\"limit\":100,\"items\":[{\"name\":\"English (United States)\",\"internal_code\":\"en-US\",\"code\":\"en-US\",\"fallbackCode\":null,\"default\":true,\"contentManagementApi\":true,\"contentDeliveryApi\":true,\"optional\":false,\"sys\":{\"type\":\"Locale\",\"id\":\"1VDLlb9oKX4EE2oI6p9kMa\",\"version\":1,\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"environment\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Environment\",\"id\":\"2023-07-14-09-12-23\",\"uuid\":\"7a45d084-1419-4ae1-b1d4-996d47e44c5a\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"createdAt\":\"2023-07-14T09:12:24Z\",\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedAt\":\"2023-07-14T09:12:24Z\"}}]}\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "beff124d-f4cc-4515-ace3-11d6f5abe0d3", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/locales?limit=100&order=sys.createdAt&skip=0", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":1,\"skip\":0,\"limit\":100,\"items\":[{\"name\":\"English (United States)\",\"internal_code\":\"en-US\",\"code\":\"en-US\",\"fallbackCode\":null,\"default\":true,\"contentManagementApi\":true,\"contentDeliveryApi\":true,\"optional\":false,\"sys\":{\"type\":\"Locale\",\"id\":\"1VDLlb9oKX4EE2oI6p9kMa\",\"version\":1,\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"environment\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Environment\",\"id\":\"2023-07-14-09-12-23\",\"uuid\":\"7a45d084-1419-4ae1-b1d4-996d47e44c5a\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"createdAt\":\"2023-07-14T09:12:24Z\",\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedAt\":\"2023-07-14T09:12:24Z\"}}]}\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "580fe90b-1bf9-49ad-9746-62a63291b2d5", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types/appliedMigrations", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ], + "response": [ + { + "_bodyUsed": false, + "id": "580fe90b-1bf9-49ad-9746-62a63291b2d5", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types/appliedMigrations", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "580fe90b-1bf9-49ad-9746-62a63291b2d5", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types/appliedMigrations", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 201, + "statusText": "Created", + "headers": {}, + "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"appliedMigrations\",\"type\":\"ContentType\",\"createdAt\":\"2023-07-14T09:24:22.833Z\",\"updatedAt\":\"2023-07-14T09:24:22.833Z\",\"environment\":{\"sys\":{\"id\":\"master\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1},\"displayField\":\"timestamp\",\"name\":\"Applied migrations\",\"description\":null,\"fields\":[{\"id\":\"timestamp\",\"name\":\"Timestamp\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"name\",\"name\":\"Name\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"batch\",\"name\":\"Batch number\",\"type\":\"Integer\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "580fe90b-1bf9-49ad-9746-62a63291b2d5", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types/appliedMigrations", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 201, + "statusText": "Created", + "headers": {}, + "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"appliedMigrations\",\"type\":\"ContentType\",\"createdAt\":\"2023-07-14T09:24:22.833Z\",\"updatedAt\":\"2023-07-14T09:24:22.833Z\",\"environment\":{\"sys\":{\"id\":\"master\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1},\"displayField\":\"timestamp\",\"name\":\"Applied migrations\",\"description\":null,\"fields\":[{\"id\":\"timestamp\",\"name\":\"Timestamp\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"name\",\"name\":\"Name\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"batch\",\"name\":\"Batch number\",\"type\":\"Integer\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "a35cbd1d-9d45-4740-9739-722439524851", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types/appliedMigrations/published", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ], + "response": [ + { + "_bodyUsed": false, + "id": "a35cbd1d-9d45-4740-9739-722439524851", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types/appliedMigrations/published", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "18fb29bd-f456-482b-a789-ac150f01d04a", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/entries?content_type=appliedMigrations&limit=1000", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ], + "response": [ + { + "_bodyUsed": false, + "id": "18fb29bd-f456-482b-a789-ac150f01d04a", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/entries?content_type=appliedMigrations&limit=1000", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "a35cbd1d-9d45-4740-9739-722439524851", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types/appliedMigrations/published", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"appliedMigrations\",\"type\":\"ContentType\",\"createdAt\":\"2023-07-14T09:24:22.833Z\",\"updatedAt\":\"2023-07-14T09:24:23.228Z\",\"environment\":{\"sys\":{\"id\":\"master\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":1,\"version\":2,\"firstPublishedAt\":\"2023-07-14T09:24:23.228Z\",\"publishedAt\":\"2023-07-14T09:24:23.228Z\",\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedVersion\":1},\"displayField\":\"timestamp\",\"name\":\"Applied migrations\",\"description\":null,\"fields\":[{\"id\":\"timestamp\",\"name\":\"Timestamp\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"name\",\"name\":\"Name\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"batch\",\"name\":\"Batch number\",\"type\":\"Integer\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "a35cbd1d-9d45-4740-9739-722439524851", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types/appliedMigrations/published", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"appliedMigrations\",\"type\":\"ContentType\",\"createdAt\":\"2023-07-14T09:24:22.833Z\",\"updatedAt\":\"2023-07-14T09:24:23.228Z\",\"environment\":{\"sys\":{\"id\":\"master\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":1,\"version\":2,\"firstPublishedAt\":\"2023-07-14T09:24:23.228Z\",\"publishedAt\":\"2023-07-14T09:24:23.228Z\",\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedVersion\":1},\"displayField\":\"timestamp\",\"name\":\"Applied migrations\",\"description\":null,\"fields\":[{\"id\":\"timestamp\",\"name\":\"Timestamp\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"name\",\"name\":\"Name\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"batch\",\"name\":\"Batch number\",\"type\":\"Integer\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "18fb29bd-f456-482b-a789-ac150f01d04a", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/entries?content_type=appliedMigrations&limit=1000", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":0,\"skip\":0,\"limit\":1000,\"items\":[]}\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "18fb29bd-f456-482b-a789-ac150f01d04a", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/entries?content_type=appliedMigrations&limit=1000", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":0,\"skip\":0,\"limit\":1000,\"items\":[]}\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "616b04e4-a32d-4b5a-905c-fb00b982afe5", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ], + "response": [ + { + "_bodyUsed": false, + "id": "616b04e4-a32d-4b5a-905c-fb00b982afe5", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "616b04e4-a32d-4b5a-905c-fb00b982afe5", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"total\":3,\n \"limit\":25,\n \"skip\":0,\n \"sys\":{\n \"type\":\"Array\"\n },\n \"items\":[\n {\n \"name\":\"test\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"test\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-08T12:21:36Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-08T12:21:36Z\",\n \"aliases\":[]\n }\n },\n {\n \"name\":\"2023-07-14-09-12-23\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-07-14-09-12-23\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-07-14T09:12:24Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-07-14T09:12:24Z\",\n \"aliases\":[\n {\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"EnvironmentAlias\",\n \"id\":\"master\"\n }\n }\n ]\n }\n },\n {\n \"name\":\"2023-07-14-09-12-23\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"master\",\n \"aliasedEnvironment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-07-14-09-12-23\"\n }\n },\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-07-14T09:12:24Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-07-14T09:12:24Z\"\n }\n }\n ]\n}\n\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "616b04e4-a32d-4b5a-905c-fb00b982afe5", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"total\":3,\n \"limit\":25,\n \"skip\":0,\n \"sys\":{\n \"type\":\"Array\"\n },\n \"items\":[\n {\n \"name\":\"test\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"test\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-08T12:21:36Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-08T12:21:36Z\",\n \"aliases\":[]\n }\n },\n {\n \"name\":\"2023-07-14-09-12-23\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-07-14-09-12-23\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-07-14T09:12:24Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-07-14T09:12:24Z\",\n \"aliases\":[\n {\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"EnvironmentAlias\",\n \"id\":\"master\"\n }\n }\n ]\n }\n },\n {\n \"name\":\"2023-07-14-09-12-23\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"master\",\n \"aliasedEnvironment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-07-14-09-12-23\"\n }\n },\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-07-14T09:12:24Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-07-14T09:12:24Z\"\n }\n }\n ]\n}\n\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "5294e0c9-bba1-4644-a4ce-03e616ad73a9", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ], + "response": [ + { + "_bodyUsed": false, + "id": "5294e0c9-bba1-4644-a4ce-03e616ad73a9", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "5294e0c9-bba1-4644-a4ce-03e616ad73a9", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 201, + "statusText": "Created", + "headers": {}, + "body": "{\n \"name\":\"2023-07-14-09-24-23\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-07-14-09-24-23\",\n \"version\":1,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"queued\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-07-14T09:24:24Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-07-14T09:24:24Z\",\n \"aliases\":[]\n }\n}\n\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "5294e0c9-bba1-4644-a4ce-03e616ad73a9", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 201, + "statusText": "Created", + "headers": {}, + "body": "{\n \"name\":\"2023-07-14-09-24-23\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-07-14-09-24-23\",\n \"version\":1,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"queued\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-07-14T09:24:24Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-07-14T09:24:24Z\",\n \"aliases\":[]\n }\n}\n\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "7d6f1133-804b-4f0c-8ff0-24a65edd15fb", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ], + "response": [ + { + "_bodyUsed": false, + "id": "7d6f1133-804b-4f0c-8ff0-24a65edd15fb", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "7d6f1133-804b-4f0c-8ff0-24a65edd15fb", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"total\":1,\n \"limit\":25,\n \"skip\":0,\n \"sys\":{\n \"type\":\"Array\"\n },\n \"items\":[\n {\n \"name\":\"Example space token 1\",\n \"description\":\"This token is used by an example app. It is coupled with the content previews.\",\n \"accessToken\":\"c11ea00b60091e878e7966c52e1138ad3adf5ff00a99c5dde77cb05a83743045\",\n \"policies\":[\n {\n \"effect\":\"allow\",\n \"actions\":\"all\"\n }\n ],\n \"sys\":{\n \"type\":\"ApiKey\",\n \"id\":\"1Yrt2lSOGbwEjPWJVg6yJA\",\n \"version\":86,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2018-09-17T08:26:09Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-07-14T09:12:25Z\"\n },\n \"environments\":[\n {\n \"sys\":{\n \"id\":\"master\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-02-08-50-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-14-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-18-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-08-11\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-09-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-13-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-21-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-25-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-29-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-35-27\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-58-23\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-19\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-13-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-14-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-18-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-33-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-36-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-38-59\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-52-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-53-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-03-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-04-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-14-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-15-34\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-24-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-38-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-51-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-56-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-57-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-59-18\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-06\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-05-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-07-40\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-21\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-05-31\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-38-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-15-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-16-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-17-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-18-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-19-15\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-22-38\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-26-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-56-57\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-49-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-52-52\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-53-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-14-08-27-25\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-13-46-48\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-05-43\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-07-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-11-02\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-27-08-53-00\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-07-02-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-33-42\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-35-08\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-29-08-45-03\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-29-08-45-20\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"test-env\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-07-14-08-51-57\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-07-14-09-11-59\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-07-14-09-12-23\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n }\n ],\n \"preview_api_key\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"PreviewApiKey\",\n \"id\":\"1YsyWIrKbsWrbImKsd9Bqq\"\n }\n }\n }\n ]\n}\n\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "7d6f1133-804b-4f0c-8ff0-24a65edd15fb", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"total\":1,\n \"limit\":25,\n \"skip\":0,\n \"sys\":{\n \"type\":\"Array\"\n },\n \"items\":[\n {\n \"name\":\"Example space token 1\",\n \"description\":\"This token is used by an example app. It is coupled with the content previews.\",\n \"accessToken\":\"c11ea00b60091e878e7966c52e1138ad3adf5ff00a99c5dde77cb05a83743045\",\n \"policies\":[\n {\n \"effect\":\"allow\",\n \"actions\":\"all\"\n }\n ],\n \"sys\":{\n \"type\":\"ApiKey\",\n \"id\":\"1Yrt2lSOGbwEjPWJVg6yJA\",\n \"version\":86,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2018-09-17T08:26:09Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-07-14T09:12:25Z\"\n },\n \"environments\":[\n {\n \"sys\":{\n \"id\":\"master\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-02-08-50-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-14-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-18-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-08-11\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-09-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-13-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-21-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-25-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-29-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-35-27\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-58-23\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-19\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-13-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-14-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-18-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-33-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-36-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-38-59\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-52-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-53-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-03-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-04-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-14-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-15-34\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-24-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-38-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-51-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-56-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-57-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-59-18\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-06\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-05-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-07-40\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-21\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-05-31\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-38-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-15-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-16-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-17-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-18-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-19-15\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-22-38\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-26-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-56-57\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-49-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-52-52\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-53-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-14-08-27-25\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-13-46-48\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-05-43\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-07-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-11-02\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-27-08-53-00\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-07-02-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-33-42\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-35-08\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-29-08-45-03\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-29-08-45-20\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"test-env\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-07-14-08-51-57\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-07-14-09-11-59\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-07-14-09-12-23\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n }\n ],\n \"preview_api_key\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"PreviewApiKey\",\n \"id\":\"1YsyWIrKbsWrbImKsd9Bqq\"\n }\n }\n }\n ]\n}\n\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "ddadeccf-9671-4bd6-b3d8-ea5c106186b1", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys/1Yrt2lSOGbwEjPWJVg6yJA", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ], + "response": [ + { + "_bodyUsed": false, + "id": "ddadeccf-9671-4bd6-b3d8-ea5c106186b1", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys/1Yrt2lSOGbwEjPWJVg6yJA", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "ddadeccf-9671-4bd6-b3d8-ea5c106186b1", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys/1Yrt2lSOGbwEjPWJVg6yJA", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"name\":\"Example space token 1\",\n \"description\":\"This token is used by an example app. It is coupled with the content previews.\",\n \"accessToken\":\"c11ea00b60091e878e7966c52e1138ad3adf5ff00a99c5dde77cb05a83743045\",\n \"policies\":[\n {\n \"effect\":\"allow\",\n \"actions\":\"all\"\n }\n ],\n \"sys\":{\n \"type\":\"ApiKey\",\n \"id\":\"1Yrt2lSOGbwEjPWJVg6yJA\",\n \"version\":87,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2018-09-17T08:26:09Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-07-14T09:24:25Z\"\n },\n \"environments\":[\n {\n \"sys\":{\n \"id\":\"master\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-02-08-50-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-14-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-18-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-08-11\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-09-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-13-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-21-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-25-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-29-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-35-27\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-58-23\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-19\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-13-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-14-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-18-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-33-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-36-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-38-59\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-52-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-53-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-03-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-04-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-14-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-15-34\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-24-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-38-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-51-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-56-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-57-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-59-18\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-06\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-05-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-07-40\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-21\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-05-31\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-38-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-15-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-16-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-17-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-18-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-19-15\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-22-38\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-26-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-56-57\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-49-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-52-52\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-53-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-14-08-27-25\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-13-46-48\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-05-43\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-07-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-11-02\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-27-08-53-00\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-07-02-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-33-42\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-35-08\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-29-08-45-03\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-29-08-45-20\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"test-env\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-07-14-08-51-57\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-07-14-09-11-59\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-07-14-09-12-23\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-07-14-09-24-23\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n }\n ],\n \"preview_api_key\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"PreviewApiKey\",\n \"id\":\"1YsyWIrKbsWrbImKsd9Bqq\"\n }\n }\n}\n\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "ddadeccf-9671-4bd6-b3d8-ea5c106186b1", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys/1Yrt2lSOGbwEjPWJVg6yJA", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"name\":\"Example space token 1\",\n \"description\":\"This token is used by an example app. It is coupled with the content previews.\",\n \"accessToken\":\"c11ea00b60091e878e7966c52e1138ad3adf5ff00a99c5dde77cb05a83743045\",\n \"policies\":[\n {\n \"effect\":\"allow\",\n \"actions\":\"all\"\n }\n ],\n \"sys\":{\n \"type\":\"ApiKey\",\n \"id\":\"1Yrt2lSOGbwEjPWJVg6yJA\",\n \"version\":87,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2018-09-17T08:26:09Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-07-14T09:24:25Z\"\n },\n \"environments\":[\n {\n \"sys\":{\n \"id\":\"master\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-02-08-50-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-14-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-18-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-08-11\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-09-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-13-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-21-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-25-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-29-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-35-27\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-58-23\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-19\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-13-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-14-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-18-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-33-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-36-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-38-59\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-52-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-53-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-03-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-04-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-14-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-15-34\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-24-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-38-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-51-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-56-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-57-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-59-18\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-06\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-05-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-07-40\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-21\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-05-31\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-38-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-15-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-16-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-17-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-18-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-19-15\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-22-38\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-26-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-56-57\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-49-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-52-52\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-53-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-14-08-27-25\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-13-46-48\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-05-43\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-07-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-11-02\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-27-08-53-00\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-07-02-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-33-42\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-35-08\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-29-08-45-03\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-29-08-45-20\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"test-env\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-07-14-08-51-57\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-07-14-09-11-59\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-07-14-09-12-23\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-07-14-09-24-23\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n }\n ],\n \"preview_api_key\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"PreviewApiKey\",\n \"id\":\"1YsyWIrKbsWrbImKsd9Bqq\"\n }\n }\n}\n\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "38981120-6f37-4ed6-bdd9-153b10e8e79f", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ], + "response": [ + { + "_bodyUsed": false, + "id": "38981120-6f37-4ed6-bdd9-153b10e8e79f", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "38981120-6f37-4ed6-bdd9-153b10e8e79f", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"name\":\"TypeOne\",\n \"sys\":{\n \"type\":\"Space\",\n \"id\":\"bo6ijs14u5ox\",\n \"version\":7,\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2018-09-17T08:26:06Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2022-12-15T09:11:48Z\",\n \"organization\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Organization\",\n \"id\":\"1kUUWhojvGtUmRyhXfqSwK\"\n }\n }\n }\n}\n\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "38981120-6f37-4ed6-bdd9-153b10e8e79f", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"name\":\"TypeOne\",\n \"sys\":{\n \"type\":\"Space\",\n \"id\":\"bo6ijs14u5ox\",\n \"version\":7,\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2018-09-17T08:26:06Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2022-12-15T09:11:48Z\",\n \"organization\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Organization\",\n \"id\":\"1kUUWhojvGtUmRyhXfqSwK\"\n }\n }\n }\n}\n\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "f030efc9-91c0-4c33-90ca-0164e17c25a4", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ], + "response": [ + { + "_bodyUsed": false, + "id": "f030efc9-91c0-4c33-90ca-0164e17c25a4", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "f030efc9-91c0-4c33-90ca-0164e17c25a4", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"name\":\"2023-07-14-09-24-23\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-07-14-09-24-23\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-07-14T09:24:24Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-07-14T09:24:25Z\",\n \"aliases\":[]\n }\n}\n\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "f030efc9-91c0-4c33-90ca-0164e17c25a4", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"name\":\"2023-07-14-09-24-23\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-07-14-09-24-23\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-07-14T09:24:24Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-07-14T09:24:25Z\",\n \"aliases\":[]\n }\n}\n\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "10ad8b7f-c9e9-479a-b41d-2a93d47f882d", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/locales", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ], + "response": [ + { + "_bodyUsed": false, + "id": "10ad8b7f-c9e9-479a-b41d-2a93d47f882d", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/locales", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "10ad8b7f-c9e9-479a-b41d-2a93d47f882d", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/locales", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":1,\"skip\":0,\"limit\":100,\"items\":[{\"name\":\"English (United States)\",\"internal_code\":\"en-US\",\"code\":\"en-US\",\"fallbackCode\":null,\"default\":true,\"contentManagementApi\":true,\"contentDeliveryApi\":true,\"optional\":false,\"sys\":{\"type\":\"Locale\",\"id\":\"1VDLlb9oKX4EE2oI6p9kMa\",\"version\":1,\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"environment\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Environment\",\"id\":\"2023-07-14-09-24-23\",\"uuid\":\"496f71bd-6cb5-49c7-8ddc-c9f857c1a212\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"createdAt\":\"2023-07-14T09:24:24Z\",\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedAt\":\"2023-07-14T09:24:24Z\"}}]}\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "10ad8b7f-c9e9-479a-b41d-2a93d47f882d", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/locales", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":1,\"skip\":0,\"limit\":100,\"items\":[{\"name\":\"English (United States)\",\"internal_code\":\"en-US\",\"code\":\"en-US\",\"fallbackCode\":null,\"default\":true,\"contentManagementApi\":true,\"contentDeliveryApi\":true,\"optional\":false,\"sys\":{\"type\":\"Locale\",\"id\":\"1VDLlb9oKX4EE2oI6p9kMa\",\"version\":1,\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"environment\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Environment\",\"id\":\"2023-07-14-09-24-23\",\"uuid\":\"496f71bd-6cb5-49c7-8ddc-c9f857c1a212\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"createdAt\":\"2023-07-14T09:24:24Z\",\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedAt\":\"2023-07-14T09:24:24Z\"}}]}\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "8a64479b-494c-4179-a195-cedc6e7c1f38", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/content_types/appliedMigrations", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ], + "response": [ + { + "_bodyUsed": false, + "id": "8a64479b-494c-4179-a195-cedc6e7c1f38", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/content_types/appliedMigrations", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "8a64479b-494c-4179-a195-cedc6e7c1f38", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/content_types/appliedMigrations", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"appliedMigrations\",\"type\":\"ContentType\",\"createdAt\":\"2023-07-14T09:24:22.833Z\",\"updatedAt\":\"2023-07-14T09:24:23.228Z\",\"environment\":{\"sys\":{\"id\":\"2023-07-14-09-24-23\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"publishedVersion\":1,\"publishedAt\":\"2023-07-14T09:24:23.228Z\",\"firstPublishedAt\":\"2023-07-14T09:24:23.228Z\",\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":1,\"version\":2,\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}}},\"displayField\":\"timestamp\",\"name\":\"Applied migrations\",\"description\":null,\"fields\":[{\"id\":\"timestamp\",\"name\":\"Timestamp\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"name\",\"name\":\"Name\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"batch\",\"name\":\"Batch number\",\"type\":\"Integer\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "8a64479b-494c-4179-a195-cedc6e7c1f38", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/content_types/appliedMigrations", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"appliedMigrations\",\"type\":\"ContentType\",\"createdAt\":\"2023-07-14T09:24:22.833Z\",\"updatedAt\":\"2023-07-14T09:24:23.228Z\",\"environment\":{\"sys\":{\"id\":\"2023-07-14-09-24-23\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"publishedVersion\":1,\"publishedAt\":\"2023-07-14T09:24:23.228Z\",\"firstPublishedAt\":\"2023-07-14T09:24:23.228Z\",\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":1,\"version\":2,\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}}},\"displayField\":\"timestamp\",\"name\":\"Applied migrations\",\"description\":null,\"fields\":[{\"id\":\"timestamp\",\"name\":\"Timestamp\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"name\",\"name\":\"Name\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"batch\",\"name\":\"Batch number\",\"type\":\"Integer\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "f2129345-f674-4988-af9b-6f95f8903989", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries?content_type=appliedMigrations&limit=1000", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ], + "response": [ + { + "_bodyUsed": false, + "id": "f2129345-f674-4988-af9b-6f95f8903989", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries?content_type=appliedMigrations&limit=1000", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "f2129345-f674-4988-af9b-6f95f8903989", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries?content_type=appliedMigrations&limit=1000", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":0,\"skip\":0,\"limit\":1000,\"items\":[]}\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "f2129345-f674-4988-af9b-6f95f8903989", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries?content_type=appliedMigrations&limit=1000", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":0,\"skip\":0,\"limit\":1000,\"items\":[]}\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "46ab6273-192e-4c6c-8772-c94e8f1ce88d", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/content_types?limit=100&order=sys.createdAt&sys.id[in]=testContentType&skip=0", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ], + "response": [ + { + "_bodyUsed": false, + "id": "46ab6273-192e-4c6c-8772-c94e8f1ce88d", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/content_types?limit=100&order=sys.createdAt&sys.id[in]=testContentType&skip=0", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "46ab6273-192e-4c6c-8772-c94e8f1ce88d", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/content_types?limit=100&order=sys.createdAt&sys.id[in]=testContentType&skip=0", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":0,\"skip\":0,\"limit\":100,\"items\":[]}\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "46ab6273-192e-4c6c-8772-c94e8f1ce88d", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/content_types?limit=100&order=sys.createdAt&sys.id[in]=testContentType&skip=0", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":0,\"skip\":0,\"limit\":100,\"items\":[]}\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "1834b940-1140-4728-8994-9c049e10cffa", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/locales?limit=100&order=sys.createdAt&skip=0", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ], + "response": [ + { + "_bodyUsed": false, + "id": "1834b940-1140-4728-8994-9c049e10cffa", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/locales?limit=100&order=sys.createdAt&skip=0", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "1834b940-1140-4728-8994-9c049e10cffa", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/locales?limit=100&order=sys.createdAt&skip=0", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":1,\"skip\":0,\"limit\":100,\"items\":[{\"name\":\"English (United States)\",\"internal_code\":\"en-US\",\"code\":\"en-US\",\"fallbackCode\":null,\"default\":true,\"contentManagementApi\":true,\"contentDeliveryApi\":true,\"optional\":false,\"sys\":{\"type\":\"Locale\",\"id\":\"1VDLlb9oKX4EE2oI6p9kMa\",\"version\":1,\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"environment\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Environment\",\"id\":\"2023-07-14-09-24-23\",\"uuid\":\"496f71bd-6cb5-49c7-8ddc-c9f857c1a212\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"createdAt\":\"2023-07-14T09:24:24Z\",\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedAt\":\"2023-07-14T09:24:24Z\"}}]}\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "1834b940-1140-4728-8994-9c049e10cffa", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/locales?limit=100&order=sys.createdAt&skip=0", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":1,\"skip\":0,\"limit\":100,\"items\":[{\"name\":\"English (United States)\",\"internal_code\":\"en-US\",\"code\":\"en-US\",\"fallbackCode\":null,\"default\":true,\"contentManagementApi\":true,\"contentDeliveryApi\":true,\"optional\":false,\"sys\":{\"type\":\"Locale\",\"id\":\"1VDLlb9oKX4EE2oI6p9kMa\",\"version\":1,\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"environment\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Environment\",\"id\":\"2023-07-14-09-24-23\",\"uuid\":\"496f71bd-6cb5-49c7-8ddc-c9f857c1a212\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"createdAt\":\"2023-07-14T09:24:24Z\",\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedAt\":\"2023-07-14T09:24:24Z\"}}]}\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "0cc52d25-2e43-4685-bb7f-54d395796276", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/content_types/testContentType", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ], + "response": [ + { + "_bodyUsed": false, + "id": "0cc52d25-2e43-4685-bb7f-54d395796276", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/content_types/testContentType", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "0cc52d25-2e43-4685-bb7f-54d395796276", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/content_types/testContentType", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 201, + "statusText": "Created", + "headers": {}, + "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"testContentType\",\"type\":\"ContentType\",\"createdAt\":\"2023-07-14T09:24:28.687Z\",\"updatedAt\":\"2023-07-14T09:24:28.687Z\",\"environment\":{\"sys\":{\"id\":\"2023-07-14-09-24-23\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1},\"displayField\":\"testContentId\",\"name\":\"Test content type\",\"description\":\"\",\"fields\":[{\"id\":\"testContentId\",\"name\":\"test content id\",\"type\":\"Symbol\",\"localized\":false,\"required\":false,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "0cc52d25-2e43-4685-bb7f-54d395796276", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/content_types/testContentType", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 201, + "statusText": "Created", + "headers": {}, + "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"testContentType\",\"type\":\"ContentType\",\"createdAt\":\"2023-07-14T09:24:28.687Z\",\"updatedAt\":\"2023-07-14T09:24:28.687Z\",\"environment\":{\"sys\":{\"id\":\"2023-07-14-09-24-23\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1},\"displayField\":\"testContentId\",\"name\":\"Test content type\",\"description\":\"\",\"fields\":[{\"id\":\"testContentId\",\"name\":\"test content id\",\"type\":\"Symbol\",\"localized\":false,\"required\":false,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "fcf7964e-9592-44a4-8418-718bb471c2e6", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/content_types/testContentType/published", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ], + "response": [ + { + "_bodyUsed": false, + "id": "fcf7964e-9592-44a4-8418-718bb471c2e6", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/content_types/testContentType/published", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "fcf7964e-9592-44a4-8418-718bb471c2e6", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/content_types/testContentType/published", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"testContentType\",\"type\":\"ContentType\",\"createdAt\":\"2023-07-14T09:24:28.687Z\",\"updatedAt\":\"2023-07-14T09:24:29.070Z\",\"environment\":{\"sys\":{\"id\":\"2023-07-14-09-24-23\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":1,\"version\":2,\"firstPublishedAt\":\"2023-07-14T09:24:29.070Z\",\"publishedAt\":\"2023-07-14T09:24:29.070Z\",\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedVersion\":1},\"displayField\":\"testContentId\",\"name\":\"Test content type\",\"description\":\"\",\"fields\":[{\"id\":\"testContentId\",\"name\":\"test content id\",\"type\":\"Symbol\",\"localized\":false,\"required\":false,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "fcf7964e-9592-44a4-8418-718bb471c2e6", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/content_types/testContentType/published", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"testContentType\",\"type\":\"ContentType\",\"createdAt\":\"2023-07-14T09:24:28.687Z\",\"updatedAt\":\"2023-07-14T09:24:29.070Z\",\"environment\":{\"sys\":{\"id\":\"2023-07-14-09-24-23\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":1,\"version\":2,\"firstPublishedAt\":\"2023-07-14T09:24:29.070Z\",\"publishedAt\":\"2023-07-14T09:24:29.070Z\",\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedVersion\":1},\"displayField\":\"testContentId\",\"name\":\"Test content type\",\"description\":\"\",\"fields\":[{\"id\":\"testContentId\",\"name\":\"test content id\",\"type\":\"Symbol\",\"localized\":false,\"required\":false,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "861e01df-bfbc-487b-adad-2e096920dd14", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries?content_type=appliedMigrations&limit=1000", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ], + "response": [ + { + "_bodyUsed": false, + "id": "861e01df-bfbc-487b-adad-2e096920dd14", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries?content_type=appliedMigrations&limit=1000", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "861e01df-bfbc-487b-adad-2e096920dd14", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries?content_type=appliedMigrations&limit=1000", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":0,\"skip\":0,\"limit\":1000,\"items\":[]}\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "861e01df-bfbc-487b-adad-2e096920dd14", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries?content_type=appliedMigrations&limit=1000", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":0,\"skip\":0,\"limit\":1000,\"items\":[]}\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "c373de8a-d8b3-4e6a-a6fb-add9a82761f8", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries", + "method": "POST", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ], + "response": [ + { + "_bodyUsed": false, + "id": "c373de8a-d8b3-4e6a-a6fb-add9a82761f8", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries", + "method": "POST", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "c373de8a-d8b3-4e6a-a6fb-add9a82761f8", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries", + "method": "POST", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 201, + "statusText": "Created", + "headers": {}, + "body": "{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"4Z82uIue7f5KTUjGfmsSyg\",\"type\":\"Entry\",\"createdAt\":\"2023-07-14T09:24:30.285Z\",\"updatedAt\":\"2023-07-14T09:24:30.285Z\",\"environment\":{\"sys\":{\"id\":\"2023-07-14-09-24-23\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230609122547608\"},\"name\":{\"en-US\":\"new-migration\"},\"batch\":{\"en-US\":1}}}\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "c373de8a-d8b3-4e6a-a6fb-add9a82761f8", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries", + "method": "POST", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 201, + "statusText": "Created", + "headers": {}, + "body": "{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"4Z82uIue7f5KTUjGfmsSyg\",\"type\":\"Entry\",\"createdAt\":\"2023-07-14T09:24:30.285Z\",\"updatedAt\":\"2023-07-14T09:24:30.285Z\",\"environment\":{\"sys\":{\"id\":\"2023-07-14-09-24-23\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230609122547608\"},\"name\":{\"en-US\":\"new-migration\"},\"batch\":{\"en-US\":1}}}\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "4bd0f737-c601-42c2-a6b5-952c4c0b2500", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries/4Z82uIue7f5KTUjGfmsSyg/published", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ], + "response": [ + { + "_bodyUsed": false, + "id": "4bd0f737-c601-42c2-a6b5-952c4c0b2500", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries/4Z82uIue7f5KTUjGfmsSyg/published", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "4bd0f737-c601-42c2-a6b5-952c4c0b2500", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries/4Z82uIue7f5KTUjGfmsSyg/published", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"4Z82uIue7f5KTUjGfmsSyg\",\"type\":\"Entry\",\"createdAt\":\"2023-07-14T09:24:30.285Z\",\"updatedAt\":\"2023-07-14T09:24:30.641Z\",\"environment\":{\"sys\":{\"id\":\"2023-07-14-09-24-23\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"publishedVersion\":1,\"publishedAt\":\"2023-07-14T09:24:30.641Z\",\"firstPublishedAt\":\"2023-07-14T09:24:30.641Z\",\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":1,\"version\":2,\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230609122547608\"},\"name\":{\"en-US\":\"new-migration\"},\"batch\":{\"en-US\":1}}}\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "4bd0f737-c601-42c2-a6b5-952c4c0b2500", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries/4Z82uIue7f5KTUjGfmsSyg/published", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"4Z82uIue7f5KTUjGfmsSyg\",\"type\":\"Entry\",\"createdAt\":\"2023-07-14T09:24:30.285Z\",\"updatedAt\":\"2023-07-14T09:24:30.641Z\",\"environment\":{\"sys\":{\"id\":\"2023-07-14-09-24-23\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"publishedVersion\":1,\"publishedAt\":\"2023-07-14T09:24:30.641Z\",\"firstPublishedAt\":\"2023-07-14T09:24:30.641Z\",\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":1,\"version\":2,\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230609122547608\"},\"name\":{\"en-US\":\"new-migration\"},\"batch\":{\"en-US\":1}}}\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "229e4420-e7ad-4995-8639-fef787a0116e", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ], + "response": [ + { + "_bodyUsed": false, + "id": "229e4420-e7ad-4995-8639-fef787a0116e", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "229e4420-e7ad-4995-8639-fef787a0116e", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"sys\":{\n \"type\":\"EnvironmentAlias\",\n \"id\":\"master\",\n \"version\":21,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-05T12:35:02Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-07-14T09:12:32Z\"\n },\n \"environment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-07-14-09-12-23\"\n }\n }\n}\n\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "229e4420-e7ad-4995-8639-fef787a0116e", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"sys\":{\n \"type\":\"EnvironmentAlias\",\n \"id\":\"master\",\n \"version\":21,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-05T12:35:02Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-07-14T09:12:32Z\"\n },\n \"environment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-07-14-09-12-23\"\n }\n }\n}\n\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "d8c6239a-f9a7-4621-bcd3-cf768f3278ef", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ], + "response": [ + { + "_bodyUsed": false, + "id": "d8c6239a-f9a7-4621-bcd3-cf768f3278ef", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "d8c6239a-f9a7-4621-bcd3-cf768f3278ef", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"sys\":{\n \"type\":\"EnvironmentAlias\",\n \"id\":\"master\",\n \"version\":21,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-05T12:35:02Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-07-14T09:12:32Z\"\n },\n \"environment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-07-14-09-12-23\"\n }\n }\n}\n\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "d8c6239a-f9a7-4621-bcd3-cf768f3278ef", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"sys\":{\n \"type\":\"EnvironmentAlias\",\n \"id\":\"master\",\n \"version\":21,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-05T12:35:02Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-07-14T09:12:32Z\"\n },\n \"environment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-07-14-09-12-23\"\n }\n }\n}\n\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "0a43754b-30ff-4af0-95fa-28bcd5d01113", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ], + "response": [ + { + "_bodyUsed": false, + "id": "0a43754b-30ff-4af0-95fa-28bcd5d01113", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "0a43754b-30ff-4af0-95fa-28bcd5d01113", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"sys\":{\n \"type\":\"EnvironmentAlias\",\n \"id\":\"master\",\n \"version\":22,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-05T12:35:02Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-07-14T09:24:31Z\"\n },\n \"environment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-07-14-09-24-23\"\n }\n }\n}\n\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "0a43754b-30ff-4af0-95fa-28bcd5d01113", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master", + "method": "PUT", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"sys\":{\n \"type\":\"EnvironmentAlias\",\n \"id\":\"master\",\n \"version\":22,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-05T12:35:02Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-07-14T09:24:31Z\"\n },\n \"environment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-07-14-09-24-23\"\n }\n }\n}\n\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "fe6cc64a-90a1-44d0-a4ab-05c35e80f662", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-12-23", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ], + "response": [ + { + "_bodyUsed": false, + "id": "fe6cc64a-90a1-44d0-a4ab-05c35e80f662", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-12-23", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "fe6cc64a-90a1-44d0-a4ab-05c35e80f662", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-12-23", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"name\":\"2023-07-14-09-12-23\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-07-14-09-12-23\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-07-14T09:12:24Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-07-14T09:12:24Z\",\n \"aliases\":[]\n }\n}\n\n" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "fe6cc64a-90a1-44d0-a4ab-05c35e80f662", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-12-23", + "method": "GET", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"name\":\"2023-07-14-09-12-23\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-07-14-09-12-23\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-07-14T09:12:24Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-07-14T09:12:24Z\",\n \"aliases\":[]\n }\n}\n\n" + } + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "556a4b62-837b-400e-8eff-800ba8fd5eab", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-12-23", + "method": "DELETE", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ], + "response": [ + { + "_bodyUsed": false, + "id": "556a4b62-837b-400e-8eff-800ba8fd5eab", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-12-23", + "method": "DELETE", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + null + ] + }, + { + "request": [ + { + "_bodyUsed": false, + "id": "556a4b62-837b-400e-8eff-800ba8fd5eab", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-12-23", + "method": "DELETE", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 204, + "statusText": "No Content", + "headers": {}, + "body": "" + } + ], + "response": [ + { + "_bodyUsed": false, + "id": "556a4b62-837b-400e-8eff-800ba8fd5eab", + "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-12-23", + "method": "DELETE", + "headers": {}, + "credentials": "same-origin", + "_body": {}, + "cache": "default", + "destination": "", + "integrity": "", + "keepalive": false, + "mode": "cors", + "priority": "auto", + "redirect": "follow", + "referrer": "", + "referrerPolicy": "no-referrer", + "cookies": {} + }, + { + "status": 204, + "statusText": "No Content", + "headers": {}, + "body": "" + } + ] + } +] \ No newline at end of file diff --git a/mocks/contentful/handlers/migrate/all requests for one migration.txt b/mocks/contentful/handlers/migrate_old/all requests for one migration.txt similarity index 100% rename from mocks/contentful/handlers/migrate/all requests for one migration.txt rename to mocks/contentful/handlers/migrate_old/all requests for one migration.txt diff --git a/mocks/contentful/handlers/migrate_old/applyOneMigrationHandler.js b/mocks/contentful/handlers/migrate_old/applyOneMigrationHandler.js new file mode 100644 index 0000000..e45b156 --- /dev/null +++ b/mocks/contentful/handlers/migrate_old/applyOneMigrationHandler.js @@ -0,0 +1,2134 @@ +const {rest} = require("msw"); +const {baseURL} = require("../../baseContentfulHandler"); + +const timestampPattern = /\d{4}-\d{2}-\d{2}-\d{2}-\d{2}-\d{2}$/ +module.exports.applyOneMigrationHandler = [ + //todo: diff check response type, might differ between subsequent requests + //todo: also handle response with query params: entries?content_type=appliedMigrations&limit=1000 + rest.get(`${baseURL}/environments/master/content_types/appliedMigrations`, (req, res, ctx) => { + return res( + ctx.status(200), + ctx.json({ + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "TEST_SPACE_ID" + } + }, + "id": "appliedMigrations", + "type": "ContentType", + "createdAt": "2023-06-02T08:50:44.787Z", + "updatedAt": "2023-06-05T14:20:22.754Z", + "environment": { + "sys": { + "id": "master", + "type": "Link", + "linkType": "Environment" + } + }, + "publishedVersion": 3, + "publishedAt": "2023-06-05T14:20:22.754Z", + "firstPublishedAt": "2023-06-02T08:50:45.349Z", + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "publishedCounter": 2, + "version": 4, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + } + }, + "displayField": "timestamp", + "name": "Applied migrations", + "description": "", + "fields": [ + { + "id": "timestamp", + "name": "Timestamp", + "type": "Symbol", + "localized": false, + "required": true, + "validations": [], + "disabled": false, + "omitted": false + }, + { + "id": "name", + "name": "Name", + "type": "Symbol", + "localized": false, + "required": true, + "validations": [], + "disabled": false, + "omitted": false + }, + { + "id": "batch", + "name": "Batch number", + "type": "Integer", + "localized": false, + "required": true, + "validations": [], + "disabled": false, + "omitted": false + } + ] + }), + ) + }), + rest.get(`${baseURL}/environments/master/entries`, (req, res, ctx) => { + return res( + ctx.status(200), + ctx.json({ + "sys": { + "type": "Array" + }, + "total": 2, + "skip": 0, + "limit": 1000, + "items": [ + { + "metadata": { + "tags": [] + }, + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "TEST_SPACE_ID" + } + }, + "id": "5UALu1mPBVs3arGpz6BQOS", + "type": "Entry", + "createdAt": "2023-06-26T13:47:13.646Z", + "updatedAt": "2023-06-26T13:47:13.646Z", + "environment": { + "sys": { + "id": "master", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "publishedCounter": 0, + "version": 1, + "automationTags": [], + "contentType": { + "sys": { + "type": "Link", + "linkType": "ContentType", + "id": "appliedMigrations" + } + } + }, + "fields": { + "timestamp": { + "en-US": "20230602075003097 (1)" + }, + "name": { + "en-US": "inititial-migration" + }, + "batch": { + "en-US": 1 + } + } + }, + { + "metadata": { + "tags": [] + }, + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "TEST_SPACE_ID" + } + }, + "id": "6iq3xP0EsGS9NzJoWvyblp", + "type": "Entry", + "createdAt": "2023-06-26T13:47:12.064Z", + "updatedAt": "2023-06-26T13:47:12.064Z", + "environment": { + "sys": { + "id": "master", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "publishedCounter": 0, + "version": 1, + "automationTags": [], + "contentType": { + "sys": { + "type": "Link", + "linkType": "ContentType", + "id": "appliedMigrations" + } + } + }, + "fields": { + "timestamp": { + "en-US": "20230602075003097 (1)" + }, + "name": { + "en-US": "inititial-migration" + }, + "batch": { + "en-US": 1 + } + } + } + ] + }), + ) + }), + rest.get(`${baseURL}/environments`, (req, res, ctx) => { + return res( + ctx.status(200), + ctx.json({ + "total": 3, + "limit": 25, + "skip": 0, + "sys": { + "type": "Array" + }, + "items": [ + { + "name": "test", + "sys": { + "type": "Environment", + "id": "test", + "version": 3, + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "TEST_SPACE_ID" + } + }, + "status": { + "sys": { + "type": "Link", + "linkType": "Status", + "id": "ready" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "createdAt": "2023-06-08T12:21:36Z", + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "updatedAt": "2023-06-08T12:21:36Z", + "aliases": [] + } + }, + { + "name": "2023-06-28-11-33-42", + "sys": { + "type": "Environment", + "id": "2023-06-28-11-33-42", + "version": 3, + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "TEST_SPACE_ID" + } + }, + "status": { + "sys": { + "type": "Link", + "linkType": "Status", + "id": "ready" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "createdAt": "2023-06-28T11:33:43Z", + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "updatedAt": "2023-06-28T11:33:43Z", + "aliases": [ + { + "sys": { + "type": "Link", + "linkType": "EnvironmentAlias", + "id": "master" + } + } + ] + } + }, + { + "name": "2023-06-28-11-33-42", + "sys": { + "type": "Environment", + "id": "master", + "aliasedEnvironment": { + "sys": { + "type": "Link", + "linkType": "Environment", + "id": "2023-06-28-11-33-42" + } + }, + "version": 3, + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "TEST_SPACE_ID" + } + }, + "status": { + "sys": { + "type": "Link", + "linkType": "Status", + "id": "ready" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "createdAt": "2023-06-28T11:33:43Z", + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "updatedAt": "2023-06-28T11:33:43Z" + } + } + ] + }), + ) + }), + + //wildcard to handle dynamic timestamp from contentful + rest.put(`${baseURL}/environments/*`, (req, res, ctx) => { + return res( + ctx.status(201), + ctx.json({ + "name": "2023-06-28-11-35-08", + "sys": { + "type": "Environment", + "id": "2023-06-28-11-35-08", + "version": 1, + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "TEST_SPACE_ID" + } + }, + "status": { + "sys": { + "type": "Link", + "linkType": "Status", + "id": "queued" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "createdAt": "2023-06-28T11:35:09Z", + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "updatedAt": "2023-06-28T11:35:09Z", + "aliases": [] + } + }), + ) + }), + + rest.get(`${baseURL}/api_keys`, (req, res, ctx) => { + return res( + ctx.status(200), + ctx.json({ + "total": 1, + "limit": 25, + "skip": 0, + "sys": { + "type": "Array" + }, + "items": [ + { + "name": "Example space token 1", + "description": "This token is used by an example app. It is coupled with the content previews.", + "accessToken": "c11ea00b60091e878e7966c52e1138ad3adf5ff00a99c5dde77cb05a83743045", + "policies": [ + { + "effect": "allow", + "actions": "all" + } + ], + "sys": { + "type": "ApiKey", + "id": "1Yrt2lSOGbwEjPWJVg6yJA", + "version": 79, + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "TEST_SPACE_ID" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "createdAt": "2018-09-17T08:26:09Z", + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "updatedAt": "2023-06-28T11:33:43Z" + }, + "environments": [ + { + "sys": { + "id": "master", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-02-08-50-46", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-11-14-05", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-11-18-44", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-11-19-09", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-11-19-33", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-08-11", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-09-36", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-13-09", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-21-53", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-25-50", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-29-49", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-30-33", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-30-50", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-35-27", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-58-23", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-10-01", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-10-44", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-12-01", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-12-19", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-12-46", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-13-12", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-14-12", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-18-45", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-33-50", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-35-12", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-35-50", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-36-46", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-38-59", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-40-09", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-40-30", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-52-54", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-53-49", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-03-45", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-04-30", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-14-56", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-15-34", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-24-35", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-25-05", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-25-47", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-38-32", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-51-32", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-56-58", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-57-36", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-59-18", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-16-02-06", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-16-02-58", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-16-05-53", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-16-07-40", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-07-07-23-21", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-07-07-23-46", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-07-08-05-31", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-07-08-38-35", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-08-08-08-37", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-08-08-08-56", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-12-15-50", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-12-16-29", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-12-17-53", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-12-18-54", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-12-19-15", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-12-22-38", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-12-26-32", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-12-56-57", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-13-49-12", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-13-52-52", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-13-53-47", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-14-08-27-25", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-26-13-46-48", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-26-14-05-43", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-26-14-07-29", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-26-14-11-02", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-26-14-12-01", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-26-14-12-36", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-27-08-53-00", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-28-07-02-37", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-28-11-32-12", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-28-11-32-44", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-28-11-33-42", + "type": "Link", + "linkType": "Environment" + } + } + ], + "preview_api_key": { + "sys": { + "type": "Link", + "linkType": "PreviewApiKey", + "id": "1YsyWIrKbsWrbImKsd9Bqq" + } + } + } + ] + }), + ) + }), + + //wildcard to handle api_key PUT request with dynamic timestamp + rest.put(`${baseURL}/api_keys/*`, (req, res, ctx) => { + return res( + ctx.status(201), + ctx.json({ + "name": "Example space token 1", + "description": "This token is used by an example app. It is coupled with the content previews.", + "accessToken": "c11ea00b60091e878e7966c52e1138ad3adf5ff00a99c5dde77cb05a83743045", + "policies": [ + { + "effect": "allow", + "actions": "all" + } + ], + "sys": { + "type": "ApiKey", + "id": "1Yrt2lSOGbwEjPWJVg6yJA", + "version": 80, + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "TEST_SPACE_ID" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "createdAt": "2018-09-17T08:26:09Z", + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "updatedAt": "2023-06-28T11:35:10Z" + }, + "environments": [ + { + "sys": { + "id": "master", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-02-08-50-46", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-11-14-05", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-11-18-44", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-11-19-09", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-11-19-33", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-08-11", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-09-36", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-13-09", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-21-53", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-25-50", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-29-49", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-30-33", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-30-50", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-35-27", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-12-58-23", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-10-01", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-10-44", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-12-01", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-12-19", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-12-46", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-13-12", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-14-12", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-18-45", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-33-50", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-35-12", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-35-50", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-36-46", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-38-59", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-40-09", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-40-30", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-52-54", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-14-53-49", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-03-45", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-04-30", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-14-56", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-15-34", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-24-35", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-25-05", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-25-47", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-38-32", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-51-32", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-56-58", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-57-36", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-15-59-18", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-16-02-06", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-16-02-58", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-16-05-53", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-05-16-07-40", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-07-07-23-21", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-07-07-23-46", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-07-08-05-31", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-07-08-38-35", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-08-08-08-37", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-08-08-08-56", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-12-15-50", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-12-16-29", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-12-17-53", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-12-18-54", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-12-19-15", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-12-22-38", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-12-26-32", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-12-56-57", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-13-49-12", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-13-52-52", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-09-13-53-47", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-14-08-27-25", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-26-13-46-48", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-26-14-05-43", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-26-14-07-29", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-26-14-11-02", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-26-14-12-01", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-26-14-12-36", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-27-08-53-00", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-28-07-02-37", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-28-11-32-12", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-28-11-32-44", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-28-11-33-42", + "type": "Link", + "linkType": "Environment" + } + }, + { + "sys": { + "id": "2023-06-28-11-35-08", + "type": "Link", + "linkType": "Environment" + } + } + ], + "preview_api_key": { + "sys": { + "type": "Link", + "linkType": "PreviewApiKey", + "id": "1YsyWIrKbsWrbImKsd9Bqq" + } + } + }), + ) + }), + + rest.get(`${baseURL}/environments/*/locales`, (req, res, ctx) => { + return res( + ctx.status(200), + ctx.json({ + "sys": { + "type": "Array" + }, + "total": 1, + "skip": 0, + "limit": 100, + "items": [ + { + "name": "English (United States)", + "internal_code": "en-US", + "code": "en-US", + "fallbackCode": null, + "default": true, + "contentManagementApi": true, + "contentDeliveryApi": true, + "optional": false, + "sys": { + "type": "Locale", + "id": "1VDLlb9oKX4EE2oI6p9kMa", + "version": 1, + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "TEST_SPACE_ID" + } + }, + "environment": { + "sys": { + "type": "Link", + "linkType": "Environment", + "id": "2023-06-28-11-35-08", + "uuid": "ddefb40d-4099-450d-8d99-49c07db971ab" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "createdAt": "2023-06-28T11:35:09Z", + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "updatedAt": "2023-06-28T11:35:09Z" + } + } + ] + }), + ) + }), + + //todo: GET /locales?limit=100&order=sys.createdAt&skip=0 + + //todo: POST /entries + rest.post(`${baseURL}/environments/*/entries`, (req, res, ctx) => { + return res( + ctx.status(200), + ctx.json({ + "metadata": { + "tags": [] + }, + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bo6ijs14u5ox" + } + }, + "id": "P9aHLvrSfpLvqzb7o280G", + "type": "Entry", + "createdAt": "2023-06-28T11:35:14.661Z", + "updatedAt": "2023-06-28T11:35:14.661Z", + "environment": { + "sys": { + "id": "2023-06-28-11-35-08", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "publishedCounter": 0, + "version": 1, + "automationTags": [], + "contentType": { + "sys": { + "type": "Link", + "linkType": "ContentType", + "id": "appliedMigrations" + } + } + }, + "fields": { + "timestamp": { + "en-US": "20230609122547608" + }, + "name": { + "en-US": "new-migration" + }, + "batch": { + "en-US": 2 + } + } + }), + ) + }), + + //todo: PUT https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-29-08-45-20/entries/2WP3BQMevIXiCXPA6GCIPH/published + rest.put(`${baseURL}/environments/*/entries/*/published`, (req, res, ctx) => { + return res( + ctx.status(201), + ctx.json({ + "metadata": { + "tags": [] + }, + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bo6ijs14u5ox" + } + }, + "id": "P9aHLvrSfpLvqzb7o280G", + "type": "Entry", + "createdAt": "2023-06-28T11:35:14.661Z", + "updatedAt": "2023-06-28T11:35:15.127Z", + "environment": { + "sys": { + "id": "2023-06-28-11-35-08", + "type": "Link", + "linkType": "Environment" + } + }, + "publishedVersion": 1, + "publishedAt": "2023-06-28T11:35:15.127Z", + "firstPublishedAt": "2023-06-28T11:35:15.127Z", + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "publishedCounter": 1, + "version": 2, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "automationTags": [], + "contentType": { + "sys": { + "type": "Link", + "linkType": "ContentType", + "id": "appliedMigrations" + } + } + }, + "fields": { + "timestamp": { + "en-US": "20230609122547608" + }, + "name": { + "en-US": "new-migration" + }, + "batch": { + "en-US": 2 + } + } + }), + ) + }), + + //wildcard to handle environments GET request with dynamic timestamp + //https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08 + rest.get(`${baseURL}/environments/*`, (req, res, ctx) => { + return res( + ctx.status(200), + ctx.json({ + "name": "2023-06-28-11-35-08", + "sys": { + "type": "Environment", + "id": "2023-06-28-11-35-08", + "version": 3, + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "TEST_SPACE_ID" + } + }, + "status": { + "sys": { + "type": "Link", + "linkType": "Status", + "id": "ready" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "createdAt": "2023-06-28T11:35:09Z", + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "updatedAt": "2023-06-28T11:35:09Z", + "aliases": [] + } + }), + ) + }), + + //Found an unhandled DELETE request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08 + //wildcard to handle environments DELETE request with dynamic timestamp + rest.delete(`${baseURL}/environments/*`, (req, res, ctx) => { + + console.log("HITTING DELETE") + return res( + ctx.status(204), + ctx.json({ + "name": "2023-06-28-11-35-08", + "sys": { + "type": "Environment", + "id": "2023-06-28-11-35-08", + "version": 3, + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "TEST_SPACE_ID" + } + }, + "status": { + "sys": { + "type": "Link", + "linkType": "Status", + "id": "ready" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "createdAt": "2023-06-28T11:35:09Z", + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "7fkm1bGT9u8nLkbD7Uuqsr" + } + }, + "updatedAt": "2023-06-28T11:35:09Z", + "aliases": [] + } + }), + ) + }), +] + + + +let responses = [ +/* { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master/content_types/appliedMigrations", + "method": "GET", + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"appliedMigrations\",\"type\":\"ContentType\",\"createdAt\":\"2023-06-02T08:50:44.787Z\",\"updatedAt\":\"2023-06-05T14:20:22.754Z\",\"environment\":{\"sys\":{\"id\":\"master\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"publishedVersion\":3,\"publishedAt\":\"2023-06-05T14:20:22.754Z\",\"firstPublishedAt\":\"2023-06-02T08:50:45.349Z\",\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":2,\"version\":4,\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}}},\"displayField\":\"timestamp\",\"name\":\"Applied migrations\",\"description\":\"\",\"fields\":[{\"id\":\"timestamp\",\"name\":\"Timestamp\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"name\",\"name\":\"Name\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"batch\",\"name\":\"Batch number\",\"type\":\"Integer\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" + },*/ +/* { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master/entries?content_type=appliedMigrations&limit=1000", + "method": "GET", + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":2,\"skip\":0,\"limit\":1000,\"items\":[{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"5UALu1mPBVs3arGpz6BQOS\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:13.646Z\",\"updatedAt\":\"2023-06-26T13:47:13.646Z\",\"environment\":{\"sys\":{\"id\":\"master\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}},{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"6iq3xP0EsGS9NzJoWvyblp\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:12.064Z\",\"updatedAt\":\"2023-06-26T13:47:12.064Z\",\"environment\":{\"sys\":{\"id\":\"master\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}}]}\n" + },*/ + /*{ + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments", + "method": "GET", + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"total\":3,\n \"limit\":25,\n \"skip\":0,\n \"sys\":{\n \"type\":\"Array\"\n },\n \"items\":[\n {\n \"name\":\"test\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"test\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-08T12:21:36Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-08T12:21:36Z\",\n \"aliases\":[]\n }\n },\n {\n \"name\":\"2023-06-28-11-33-42\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:33:43Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:43Z\",\n \"aliases\":[\n {\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"EnvironmentAlias\",\n \"id\":\"master\"\n }\n }\n ]\n }\n },\n {\n \"name\":\"2023-06-28-11-33-42\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"master\",\n \"aliasedEnvironment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\"\n }\n },\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:33:43Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:43Z\"\n }\n }\n ]\n}\n\n" + },*/ + /*{ + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08", + "method": "PUT", + "status": 201, + "statusText": "Created", + "headers": {}, + "body": "{\n \"name\":\"2023-06-28-11-35-08\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-06-28-11-35-08\",\n \"version\":1,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"queued\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:35:09Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:35:09Z\",\n \"aliases\":[]\n }\n}\n\n" + },*/ +/* { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/api_keys", + "method": "GET", + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"total\":1,\n \"limit\":25,\n \"skip\":0,\n \"sys\":{\n \"type\":\"Array\"\n },\n \"items\":[\n {\n \"name\":\"Example space token 1\",\n \"description\":\"This token is used by an example app. It is coupled with the content previews.\",\n \"accessToken\":\"c11ea00b60091e878e7966c52e1138ad3adf5ff00a99c5dde77cb05a83743045\",\n \"policies\":[\n {\n \"effect\":\"allow\",\n \"actions\":\"all\"\n }\n ],\n \"sys\":{\n \"type\":\"ApiKey\",\n \"id\":\"1Yrt2lSOGbwEjPWJVg6yJA\",\n \"version\":79,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2018-09-17T08:26:09Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:43Z\"\n },\n \"environments\":[\n {\n \"sys\":{\n \"id\":\"master\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-02-08-50-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-14-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-18-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-08-11\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-09-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-13-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-21-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-25-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-29-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-35-27\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-58-23\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-19\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-13-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-14-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-18-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-33-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-36-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-38-59\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-52-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-53-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-03-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-04-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-14-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-15-34\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-24-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-38-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-51-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-56-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-57-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-59-18\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-06\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-05-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-07-40\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-21\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-05-31\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-38-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-15-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-16-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-17-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-18-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-19-15\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-22-38\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-26-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-56-57\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-49-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-52-52\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-53-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-14-08-27-25\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-13-46-48\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-05-43\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-07-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-11-02\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-27-08-53-00\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-07-02-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-33-42\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n }\n ],\n \"preview_api_key\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"PreviewApiKey\",\n \"id\":\"1YsyWIrKbsWrbImKsd9Bqq\"\n }\n }\n }\n ]\n}\n\n" + },*/ + { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/api_keys/1Yrt2lSOGbwEjPWJVg6yJA", + "method": "PUT", + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"name\":\"Example space token 1\",\n \"description\":\"This token is used by an example app. It is coupled with the content previews.\",\n \"accessToken\":\"c11ea00b60091e878e7966c52e1138ad3adf5ff00a99c5dde77cb05a83743045\",\n \"policies\":[\n {\n \"effect\":\"allow\",\n \"actions\":\"all\"\n }\n ],\n \"sys\":{\n \"type\":\"ApiKey\",\n \"id\":\"1Yrt2lSOGbwEjPWJVg6yJA\",\n \"version\":80,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2018-09-17T08:26:09Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:35:10Z\"\n },\n \"environments\":[\n {\n \"sys\":{\n \"id\":\"master\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-02-08-50-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-14-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-18-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-08-11\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-09-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-13-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-21-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-25-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-29-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-35-27\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-58-23\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-19\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-13-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-14-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-18-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-33-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-36-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-38-59\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-52-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-53-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-03-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-04-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-14-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-15-34\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-24-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-38-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-51-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-56-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-57-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-59-18\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-06\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-05-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-07-40\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-21\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-05-31\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-38-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-15-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-16-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-17-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-18-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-19-15\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-22-38\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-26-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-56-57\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-49-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-52-52\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-53-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-14-08-27-25\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-13-46-48\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-05-43\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-07-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-11-02\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-27-08-53-00\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-07-02-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-33-42\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-35-08\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n }\n ],\n \"preview_api_key\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"PreviewApiKey\",\n \"id\":\"1YsyWIrKbsWrbImKsd9Bqq\"\n }\n }\n}\n\n" + }, + { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID", + "method": "GET", + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"name\":\"TypeOne\",\n \"sys\":{\n \"type\":\"Space\",\n \"id\":\"TEST_SPACE_ID\",\n \"version\":7,\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2018-09-17T08:26:06Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2022-12-15T09:11:48Z\",\n \"organization\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Organization\",\n \"id\":\"1kUUWhojvGtUmRyhXfqSwK\"\n }\n }\n }\n}\n\n" + }, +/* { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08", + "method": "GET", + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"name\":\"2023-06-28-11-35-08\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-06-28-11-35-08\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:35:09Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:35:09Z\",\n \"aliases\":[]\n }\n}\n\n" + },*/ +/* { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/locales", + "method": "GET", + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":1,\"skip\":0,\"limit\":100,\"items\":[{\"name\":\"English (United States)\",\"internal_code\":\"en-US\",\"code\":\"en-US\",\"fallbackCode\":null,\"default\":true,\"contentManagementApi\":true,\"contentDeliveryApi\":true,\"optional\":false,\"sys\":{\"type\":\"Locale\",\"id\":\"1VDLlb9oKX4EE2oI6p9kMa\",\"version\":1,\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"environment\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Environment\",\"id\":\"2023-06-28-11-35-08\",\"uuid\":\"ddefb40d-4099-450d-8d99-49c07db971ab\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"createdAt\":\"2023-06-28T11:35:09Z\",\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedAt\":\"2023-06-28T11:35:09Z\"}}]}\n" + },*/ + { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/content_types/appliedMigrations", + "method": "GET", + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"appliedMigrations\",\"type\":\"ContentType\",\"createdAt\":\"2023-06-02T08:50:44.787Z\",\"updatedAt\":\"2023-06-05T14:20:22.754Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"publishedVersion\":3,\"publishedAt\":\"2023-06-05T14:20:22.754Z\",\"firstPublishedAt\":\"2023-06-02T08:50:45.349Z\",\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":2,\"version\":4,\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}}},\"displayField\":\"timestamp\",\"name\":\"Applied migrations\",\"description\":\"\",\"fields\":[{\"id\":\"timestamp\",\"name\":\"Timestamp\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"name\",\"name\":\"Name\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"batch\",\"name\":\"Batch number\",\"type\":\"Integer\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" + }, + { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/entries?content_type=appliedMigrations&limit=1000", + "method": "GET", + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":2,\"skip\":0,\"limit\":1000,\"items\":[{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"5UALu1mPBVs3arGpz6BQOS\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:13.646Z\",\"updatedAt\":\"2023-06-26T13:47:13.646Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}},{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"6iq3xP0EsGS9NzJoWvyblp\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:12.064Z\",\"updatedAt\":\"2023-06-26T13:47:12.064Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}}]}\n" + }, + { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/content_types?limit=100&order=sys.createdAt&sys.id[in]=testContentType&skip=0", + "method": "GET", + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":0,\"skip\":0,\"limit\":100,\"items\":[]}\n" + }, + { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/locales?limit=100&order=sys.createdAt&skip=0", + "method": "GET", + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":1,\"skip\":0,\"limit\":100,\"items\":[{\"name\":\"English (United States)\",\"internal_code\":\"en-US\",\"code\":\"en-US\",\"fallbackCode\":null,\"default\":true,\"contentManagementApi\":true,\"contentDeliveryApi\":true,\"optional\":false,\"sys\":{\"type\":\"Locale\",\"id\":\"1VDLlb9oKX4EE2oI6p9kMa\",\"version\":1,\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"environment\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Environment\",\"id\":\"2023-06-28-11-35-08\",\"uuid\":\"ddefb40d-4099-450d-8d99-49c07db971ab\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"createdAt\":\"2023-06-28T11:35:09Z\",\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedAt\":\"2023-06-28T11:35:09Z\"}}]}\n" + }, + { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/content_types/testContentType", + "method": "PUT", + "status": 201, + "statusText": "Created", + "headers": {}, + "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"testContentType\",\"type\":\"ContentType\",\"createdAt\":\"2023-06-28T11:35:12.987Z\",\"updatedAt\":\"2023-06-28T11:35:12.987Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1},\"displayField\":\"testContentId\",\"name\":\"Test content type\",\"description\":\"\",\"fields\":[{\"id\":\"testContentId\",\"name\":\"test content id\",\"type\":\"Symbol\",\"localized\":false,\"required\":false,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" + }, + { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/content_types/testContentType/published", + "method": "PUT", + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"testContentType\",\"type\":\"ContentType\",\"createdAt\":\"2023-06-28T11:35:12.987Z\",\"updatedAt\":\"2023-06-28T11:35:13.333Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":1,\"version\":2,\"firstPublishedAt\":\"2023-06-28T11:35:13.333Z\",\"publishedAt\":\"2023-06-28T11:35:13.333Z\",\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedVersion\":1},\"displayField\":\"testContentId\",\"name\":\"Test content type\",\"description\":\"\",\"fields\":[{\"id\":\"testContentId\",\"name\":\"test content id\",\"type\":\"Symbol\",\"localized\":false,\"required\":false,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" + }, + { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/entries?content_type=appliedMigrations&limit=1000", + "method": "GET", + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"sys\":{\"type\":\"Array\"},\"total\":2,\"skip\":0,\"limit\":1000,\"items\":[{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"5UALu1mPBVs3arGpz6BQOS\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:13.646Z\",\"updatedAt\":\"2023-06-26T13:47:13.646Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}},{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"6iq3xP0EsGS9NzJoWvyblp\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:12.064Z\",\"updatedAt\":\"2023-06-26T13:47:12.064Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}}]}\n" + }, + { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/entries", + "method": "POST", + "status": 201, + "statusText": "Created", + "headers": {}, + "body": "{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"P9aHLvrSfpLvqzb7o280G\",\"type\":\"Entry\",\"createdAt\":\"2023-06-28T11:35:14.661Z\",\"updatedAt\":\"2023-06-28T11:35:14.661Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230609122547608\"},\"name\":{\"en-US\":\"new-migration\"},\"batch\":{\"en-US\":2}}}\n" + }, + { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/entries/P9aHLvrSfpLvqzb7o280G/published", + "method": "PUT", + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"P9aHLvrSfpLvqzb7o280G\",\"type\":\"Entry\",\"createdAt\":\"2023-06-28T11:35:14.661Z\",\"updatedAt\":\"2023-06-28T11:35:15.127Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"publishedVersion\":1,\"publishedAt\":\"2023-06-28T11:35:15.127Z\",\"firstPublishedAt\":\"2023-06-28T11:35:15.127Z\",\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":1,\"version\":2,\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230609122547608\"},\"name\":{\"en-US\":\"new-migration\"},\"batch\":{\"en-US\":2}}}\n" + }, + { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environment_aliases/master", + "method": "GET", + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"sys\":{\n \"type\":\"EnvironmentAlias\",\n \"id\":\"master\",\n \"version\":16,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-05T12:35:02Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:50Z\"\n },\n \"environment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\"\n }\n }\n}\n\n" + }, + { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environment_aliases/master", + "method": "GET", + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"sys\":{\n \"type\":\"EnvironmentAlias\",\n \"id\":\"master\",\n \"version\":16,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-05T12:35:02Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:50Z\"\n },\n \"environment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\"\n }\n }\n}\n\n" + }, + { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environment_aliases/master", + "method": "PUT", + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"sys\":{\n \"type\":\"EnvironmentAlias\",\n \"id\":\"master\",\n \"version\":17,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-05T12:35:02Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:35:16Z\"\n },\n \"environment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-06-28-11-35-08\"\n }\n }\n}\n\n" + }, + { + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-33-42", + "method": "GET", + "status": 200, + "statusText": "OK", + "headers": {}, + "body": "{\n \"name\":\"2023-06-28-11-33-42\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:33:43Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:43Z\",\n \"aliases\":[]\n }\n}\n\n" + }, + { + "id": "0115a323-ff93-4404-9a0a-8ab0801abf87", + "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-33-42", + "status": 204, + "statusText": "No Content", + "headers": {}, + "body": "" + } +] diff --git a/mocks/contentful/handlers/migrate/traffic-1687952117250.json b/mocks/contentful/handlers/migrate_old/traffic-1687952117250.json similarity index 100% rename from mocks/contentful/handlers/migrate/traffic-1687952117250.json rename to mocks/contentful/handlers/migrate_old/traffic-1687952117250.json diff --git a/mocks/contentful/handlers/migrate/uniqueRequests.txt b/mocks/contentful/handlers/migrate_old/uniqueRequests.txt similarity index 100% rename from mocks/contentful/handlers/migrate/uniqueRequests.txt rename to mocks/contentful/handlers/migrate_old/uniqueRequests.txt From 1bf0cdd12440ecce536093ccdde228fe2980e569 Mon Sep 17 00:00:00 2001 From: driatic Date: Sun, 16 Jul 2023 12:55:49 +0200 Subject: [PATCH 5/6] feat: wip not working --- .../migrate/allRequestsPerformedSimple.txt | 76 +++++++++++++++++++ .../migrate/applyOneMigrationHandler.js | 2 + .../handlers/migrate/testLogWithError.txt | 20 +++++ 3 files changed, 98 insertions(+) create mode 100644 mocks/contentful/handlers/migrate/allRequestsPerformedSimple.txt create mode 100644 mocks/contentful/handlers/migrate/testLogWithError.txt diff --git a/mocks/contentful/handlers/migrate/allRequestsPerformedSimple.txt b/mocks/contentful/handlers/migrate/allRequestsPerformedSimple.txt new file mode 100644 index 0000000..8bf6c29 --- /dev/null +++ b/mocks/contentful/handlers/migrate/allRequestsPerformedSimple.txt @@ -0,0 +1,76 @@ +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/locales +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types/appliedMigrations +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types?limit=100&order=sys.createdAt&sys.id[in]=appliedMigrations&skip=0 +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/locales?limit=100&order=sys.createdAt&skip=0 +* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/env❯ Create Content Type appliedMigrations +* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/env✔ Create Content Type appliedMigrations +🎉 Migration successful + + +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/entries?content_type=appliedMigrations&limit=1000 +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments +* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23 +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys +* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys/1Yrt2lSOGbwEjPWJVg6yJA +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23 +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/locales +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/content_types/appliedMigrations +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries?content_type=appliedMigrations&limit=1000 +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/content_types?limit=100&order=sys.createdAt&sys.id[in]=testContentType&skip=0 +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/locales?limit=100&order=sys.createdAt&skip=0 + +The following migration has been planned + +Environment: 2023-07-14-09-24-23 + +Create Content Type testContentType + - name: "Test content type" + - description: "" + - displayField: "testContentId" + + Create field testContentId + - name: "test content id" + - type: "Symbol" + +Publish Content Type testContentType +❯ Create Content Type testContentType + ⠋ Making requests (1/2) + › PUT /content_types/testContentType at V0 +* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/env❯ Create Content Type testContentType + ⠸ Making requests (1/2) +❯ Create Content Type testContentType + ⠸ Making requests (2/2) + › PUT /content_types/testContentType/published at V1 +* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/env❯ Create Content Type testContentType + ⠧ Making requests (2/2) +✔ Create Content Type testContentType +🎉 Migration successful +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries?content_type=appliedMigrations&limit=1000 +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries?content_type=appliedMigrations&limit=1000 +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries?content_type=appliedMigrations&limit=1000 +* intercepting POST request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries +* Found an unhandled POST request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries +* receiving status 201 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries +* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries/4Z82uIue7f5KTUjGfmsSyg/published +* Found an unhandled PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries/4Z82uIue7f5KTUjGfmsSyg/published +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries/4Z82uIue7f5KTUjGfmsSyg/published +Migrated. +Switching environment alias. +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master +* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master +* Found an unhandled PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master +* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-12-23 +* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-12-23 +* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-12-23 +* intercepting DELETE request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-12-23 +* Found an unhandled DELETE request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-12-23 +* receiving status 204 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-12-23 diff --git a/mocks/contentful/handlers/migrate/applyOneMigrationHandler.js b/mocks/contentful/handlers/migrate/applyOneMigrationHandler.js index 7feb4c0..4f375cb 100644 --- a/mocks/contentful/handlers/migrate/applyOneMigrationHandler.js +++ b/mocks/contentful/handlers/migrate/applyOneMigrationHandler.js @@ -425,6 +425,8 @@ module.exports.applyOneMigrationHandler = [ //* intercepting GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-07-14-09-24-23/locales rest.get(`${baseURL}/environments/*/locales`, (req, res, ctx) => { + //todo: not handled ? * intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/locales?limit=100&order=sys.createdAt&skip=0 + return res( ctx.status(200), ctx.json({ diff --git a/mocks/contentful/handlers/migrate/testLogWithError.txt b/mocks/contentful/handlers/migrate/testLogWithError.txt new file mode 100644 index 0000000..8b75ede --- /dev/null +++ b/mocks/contentful/handlers/migrate/testLogWithError.txt @@ -0,0 +1,20 @@ +* intercepting GET request to https://api.contentful.com/spaces/TEST_SPACE_ID +* intercepting GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master +* intercepting GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master/locales +* intercepting GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master/content_types/appliedMigrations +* intercepting GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master/content_types?limit=100&order=sys.createdAt&sys.id[in]=appliedMigrations&skip=0 +* intercepting GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master/locales?limit=100&order=sys.createdAt&skip=0 +* intercepting PUT request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master/content_types/appliedMigrations +* intercepting PUT request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master/content_types/appliedMigrations/published +* intercepting GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master/entries?content_type=appliedMigrations&limit=1000 +* intercepting GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments +* intercepting PUT request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-07-14-14-24-54 +* intercepting GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/api_keys +* intercepting PUT request to https://api.contentful.com/spaces/TEST_SPACE_ID/api_keys/1Yrt2lSOGbwEjPWJVg6yJA +* intercepting GET request to https://api.contentful.com/spaces/TEST_SPACE_ID +* intercepting GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-07-14-14-24-54 +* intercepting GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-07-14-09-24-23/locales +* intercepting GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-07-14-09-24-23/content_types/appliedMigrations +* intercepting GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-07-14-09-24-23/entries?content_type=appliedMigrations&limit=1000 +* intercepting GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-07-14-14-24-54 +* intercepting DELETE request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-07-14-09-24-23 From e322273786eb35236ef766ffe49741298cdf7609 Mon Sep 17 00:00:00 2001 From: driatic Date: Fri, 21 Jul 2023 14:49:32 +0200 Subject: [PATCH 6/6] fix: clean --- .../migrate/allRequestsPerformedSimple.txt | 76 - .../migrate/applyOneMigrationHandler.js | 23 +- mocks/contentful/handlers/migrate/log.txt | 153 -- .../migrate/requestsHandledByMockServer.txt | 30 - .../all requests for one migration.txt | 24 - .../migrate_old/applyOneMigrationHandler.js | 2134 ----------------- .../migrate_old/traffic-1687952117250.json | 1290 ---------- .../handlers/migrate_old/uniqueRequests.txt | 6 - 8 files changed, 11 insertions(+), 3725 deletions(-) delete mode 100644 mocks/contentful/handlers/migrate/allRequestsPerformedSimple.txt delete mode 100644 mocks/contentful/handlers/migrate/log.txt delete mode 100644 mocks/contentful/handlers/migrate/requestsHandledByMockServer.txt delete mode 100644 mocks/contentful/handlers/migrate_old/all requests for one migration.txt delete mode 100644 mocks/contentful/handlers/migrate_old/applyOneMigrationHandler.js delete mode 100644 mocks/contentful/handlers/migrate_old/traffic-1687952117250.json delete mode 100644 mocks/contentful/handlers/migrate_old/uniqueRequests.txt diff --git a/mocks/contentful/handlers/migrate/allRequestsPerformedSimple.txt b/mocks/contentful/handlers/migrate/allRequestsPerformedSimple.txt deleted file mode 100644 index 8bf6c29..0000000 --- a/mocks/contentful/handlers/migrate/allRequestsPerformedSimple.txt +++ /dev/null @@ -1,76 +0,0 @@ -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/locales -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types/appliedMigrations -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types?limit=100&order=sys.createdAt&sys.id[in]=appliedMigrations&skip=0 -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/locales?limit=100&order=sys.createdAt&skip=0 -* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/env❯ Create Content Type appliedMigrations -* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/env✔ Create Content Type appliedMigrations -🎉 Migration successful - - -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/entries?content_type=appliedMigrations&limit=1000 -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments -* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23 -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys -* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys/1Yrt2lSOGbwEjPWJVg6yJA -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23 -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/locales -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/content_types/appliedMigrations -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries?content_type=appliedMigrations&limit=1000 -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/content_types?limit=100&order=sys.createdAt&sys.id[in]=testContentType&skip=0 -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/locales?limit=100&order=sys.createdAt&skip=0 - -The following migration has been planned - -Environment: 2023-07-14-09-24-23 - -Create Content Type testContentType - - name: "Test content type" - - description: "" - - displayField: "testContentId" - - Create field testContentId - - name: "test content id" - - type: "Symbol" - -Publish Content Type testContentType -❯ Create Content Type testContentType - ⠋ Making requests (1/2) - › PUT /content_types/testContentType at V0 -* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/env❯ Create Content Type testContentType - ⠸ Making requests (1/2) -❯ Create Content Type testContentType - ⠸ Making requests (2/2) - › PUT /content_types/testContentType/published at V1 -* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/env❯ Create Content Type testContentType - ⠧ Making requests (2/2) -✔ Create Content Type testContentType -🎉 Migration successful -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries?content_type=appliedMigrations&limit=1000 -* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries?content_type=appliedMigrations&limit=1000 -* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries?content_type=appliedMigrations&limit=1000 -* intercepting POST request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries -* Found an unhandled POST request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries -* receiving status 201 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries -* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries/4Z82uIue7f5KTUjGfmsSyg/published -* Found an unhandled PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries/4Z82uIue7f5KTUjGfmsSyg/published -* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries/4Z82uIue7f5KTUjGfmsSyg/published -Migrated. -Switching environment alias. -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master -* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master -* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master -* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master -* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master -* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master -* Found an unhandled PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master -* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-12-23 -* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-12-23 -* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-12-23 -* intercepting DELETE request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-12-23 -* Found an unhandled DELETE request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-12-23 -* receiving status 204 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-12-23 diff --git a/mocks/contentful/handlers/migrate/applyOneMigrationHandler.js b/mocks/contentful/handlers/migrate/applyOneMigrationHandler.js index 4f375cb..3ec5243 100644 --- a/mocks/contentful/handlers/migrate/applyOneMigrationHandler.js +++ b/mocks/contentful/handlers/migrate/applyOneMigrationHandler.js @@ -21,7 +21,7 @@ module.exports.applyOneMigrationHandler = [ space: 'TEST_SPACE_ID', }, requestId: '284d7c14-9b52-4655-aecb-2c6806e59106', - }) + }), ) }), @@ -39,7 +39,7 @@ module.exports.applyOneMigrationHandler = [ skip: 0, limit: 100, items: [], - }) + }), ) } }), @@ -119,7 +119,7 @@ module.exports.applyOneMigrationHandler = [ omitted: false, }, ], - }) + }), ) }), @@ -208,7 +208,7 @@ module.exports.applyOneMigrationHandler = [ omitted: false, }, ], - }) + }), ) }), @@ -224,7 +224,7 @@ module.exports.applyOneMigrationHandler = [ skip: 0, limit: 1000, items: [], - }) + }), ) } }), @@ -372,7 +372,7 @@ module.exports.applyOneMigrationHandler = [ }, }, ], - }) + }), ) }), @@ -419,7 +419,7 @@ module.exports.applyOneMigrationHandler = [ updatedAt: '2023-07-14T09:24:24Z', aliases: [], }, - }) + }), ) }), @@ -484,7 +484,7 @@ module.exports.applyOneMigrationHandler = [ }, }, ], - }) + }), ) }), //wildcard endpoints to match GET environment /DATE_TIME @@ -529,7 +529,7 @@ module.exports.applyOneMigrationHandler = [ updatedAt: '2023-07-14T09:24:25Z', aliases: [], }, - }) + }), ) }), @@ -1189,7 +1189,7 @@ module.exports.applyOneMigrationHandler = [ }, }, ], - }) + }), ) }), @@ -1846,12 +1846,11 @@ module.exports.applyOneMigrationHandler = [ id: '1YsyWIrKbsWrbImKsd9Bqq', }, }, - }) + }), ) }), rest.delete(`${baseURL}/environments/*`, (req, res, ctx) => { - console.log('HITTING DELETE!!!!') return res(ctx.status(204)) }), ] diff --git a/mocks/contentful/handlers/migrate/log.txt b/mocks/contentful/handlers/migrate/log.txt deleted file mode 100644 index 73c86f9..0000000 --- a/mocks/contentful/handlers/migrate/log.txt +++ /dev/null @@ -1,153 +0,0 @@ -setting up network traffic interceptor server -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox -* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox -* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master -* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master -* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/locales -* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/locales -* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/locales -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types/appliedMigrations -* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types/appliedMigrations -* receiving status 404 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types/appliedMigrations -`Applied migrations` type not found. Creating it. -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types?limit=100&order=sys.createdAt&sys.id[in]=appliedMigrations&skip=0 -* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types?limit=100&order=sys.createdAt&sys.id[in]=appliedMigrations&skip=0 -* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types?limit=100&order=sys.createdAt&sys.id[in]=appliedMigrations&skip=0 -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/locales?limit=100&order=sys.createdAt&skip=0 -* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/locales?limit=100&order=sys.createdAt&skip=0 -* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/locales?limit=100&order=sys.createdAt&skip=0 -The following migration has been planned - -Environment: master - -Create Content Type appliedMigrations - - name: "Applied migrations" - - displayField: "timestamp" - - Create field timestamp - - name: "Timestamp" - - type: "Symbol" - - required: true - - Create field name - - name: "Name" - - type: "Symbol" - - required: true - - Create field batch - - name: "Batch number" - - type: "Integer" - - required: true - -Publish Content Type appliedMigrations -❯ Create Content Type appliedMigrations - ⠋ Making requests (1/2) - › PUT /content_types/appliedMigrations at V0 -* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/env❯ Create Content Type appliedMigrations - ⠦ Making requests (1/2) -❯ Create Content Type appliedMigrations - ⠦ Making requests (2/2) - › PUT /content_types/appliedMigrations/published at V1 -* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/env✔ Create Content Type appliedMigrations -🎉 Migration successful -`Applied migrations` type created. -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/entries?content_type=appliedMigrations&limit=1000 -* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/entries?content_type=appliedMigrations&limit=1000 -* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types/appliedMigrations/published -* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/entries?content_type=appliedMigrations&limit=1000 -About to apply the following migrations: - 20230609122547608 - new-migration -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments -* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments -* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments -Creating environment 2023-07-14-09-24-23. -* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23 -* Found an unhandled PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23 -* receiving status 201 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23 -Environment 2023-07-14-09-24-23 created. -Updating api key access to new env 2023-07-14-09-24-23. -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys -* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys -* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys -* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys/1Yrt2lSOGbwEjPWJVg6yJA -* Found an unhandled PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys/1Yrt2lSOGbwEjPWJVg6yJA -* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys/1Yrt2lSOGbwEjPWJVg6yJA -Api key access to new env 2023-07-14-09-24-23 updated. -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox -* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox -* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23 -* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23 -* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23 -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/locales -* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/locales -* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/locales -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/content_types/appliedMigrations -* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/content_types/appliedMigrations -* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/content_types/appliedMigrations -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries?content_type=appliedMigrations&limit=1000 -* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries?content_type=appliedMigrations&limit=1000 -* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries?content_type=appliedMigrations&limit=1000 -Migrating. -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/content_types?limit=100&order=sys.createdAt&sys.id[in]=testContentType&skip=0 -* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/content_types?limit=100&order=sys.createdAt&sys.id[in]=testContentType&skip=0 -* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/content_types?limit=100&order=sys.createdAt&sys.id[in]=testContentType&skip=0 -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/locales?limit=100&order=sys.createdAt&skip=0 -* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/locales?limit=100&order=sys.createdAt&skip=0 -* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/locales?limit=100&order=sys.createdAt&skip=0 -The following migration has been planned - -Environment: 2023-07-14-09-24-23 - -Create Content Type testContentType - - name: "Test content type" - - description: "" - - displayField: "testContentId" - - Create field testContentId - - name: "test content id" - - type: "Symbol" - -Publish Content Type testContentType -❯ Create Content Type testContentType - ⠋ Making requests (1/2) - › PUT /content_types/testContentType at V0 -* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/env❯ Create Content Type testContentType - ⠸ Making requests (1/2) -❯ Create Content Type testContentType - ⠸ Making requests (2/2) - › PUT /content_types/testContentType/published at V1 -* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/env❯ Create Content Type testContentType - ⠧ Making requests (2/2) -✔ Create Content Type testContentType -🎉 Migration successful -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries?content_type=appliedMigrations&limit=1000 -* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries?content_type=appliedMigrations&limit=1000 -* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries?content_type=appliedMigrations&limit=1000 -* intercepting POST request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries -* Found an unhandled POST request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries -* receiving status 201 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries -* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries/4Z82uIue7f5KTUjGfmsSyg/published -* Found an unhandled PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries/4Z82uIue7f5KTUjGfmsSyg/published -* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-24-23/entries/4Z82uIue7f5KTUjGfmsSyg/published -Migrated. -Switching environment alias. -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master -* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master -* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master -* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master -* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master -* intercepting PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master -* Found an unhandled PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master -* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master -* intercepting GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-12-23 -* Found an unhandled GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-12-23 -* receiving status 200 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-12-23 -* intercepting DELETE request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-12-23 -* Found an unhandled DELETE request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-12-23 -* receiving status 204 from https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-07-14-09-12-23 -Environment alias switched successfully. -handling exit diff --git a/mocks/contentful/handlers/migrate/requestsHandledByMockServer.txt b/mocks/contentful/handlers/migrate/requestsHandledByMockServer.txt deleted file mode 100644 index b33a237..0000000 --- a/mocks/contentful/handlers/migrate/requestsHandledByMockServer.txt +++ /dev/null @@ -1,30 +0,0 @@ -* intercepting GET request to https://api.contentful.com/spaces/TEST_SPACE_ID -* Found an unhandled GET request to https://api.contentful.com/spaces/TEST_SPACE_ID -* receiving status 200 from https://api.contentful.com/spaces/TEST_SPACE_ID - -* intercepting GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master -* Found an unhandled GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master -* receiving status 200 from https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master - -* intercepting GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master/locales -* Found an unhandled GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master/locales -* receiving status 200 from https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master/locales -*********************** - - - - - - -* intercepting GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master/content_types/appliedMigrations -* Found an unhandled GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master/content_types/appliedMigrations -* receiving status 404 from https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master/content_types/appliedMigrations -`Applied migrations` type not found. Creating it. - -* intercepting GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master/content_types?limit=100&order=sys.createdAt&sys.id[in]=appliedMigrations&skip=0 -* Found an unhandled GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master/content_types?limit=100&order=sys.createdAt&sys.id[in]=appliedMigrations&skip=0 -* receiving status 200 from https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master/content_types?limit=100&order=sys.createdAt&sys.id[in]=appliedMigrations&skip=0 - -* intercepting GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master/locales?limit=100&order=sys.createdAt&skip=0 -* Found an unhandled GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master/locales?limit=100&order=sys.createdAt&skip=0 -* receiving status 200 from https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master/locales?limit=100&order=sys.createdAt&skip=0 diff --git a/mocks/contentful/handlers/migrate_old/all requests for one migration.txt b/mocks/contentful/handlers/migrate_old/all requests for one migration.txt deleted file mode 100644 index 6b19060..0000000 --- a/mocks/contentful/handlers/migrate_old/all requests for one migration.txt +++ /dev/null @@ -1,24 +0,0 @@ -GET request to https://api.contentful.com/spaces/bo6ijs14u5ox -GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master -GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/locales -GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types/appliedMigrations -GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/entries?content_type=appliedMigrations&limit=1000 -GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments -PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-29-08-45-20 -GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys -PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys/1Yrt2lSOGbwEjPWJVg6yJA -GET request to https://api.contentful.com/spaces/bo6ijs14u5ox -GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-29-08-45-20 -GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-29-08-45-20/locales -GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-29-08-45-20/content_types/appliedMigrations -GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-29-08-45-20/entries?content_type=appliedMigrations&limit=1000 -GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-29-08-45-20/content_types?limit=100&order=sys.createdAt&sys.id[in]=testContentType&skip=0 -GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-29-08-45-20/locales?limit=100&order=sys.createdAt&skip=0 -GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-29-08-45-20/entries?content_type=appliedMigrations&limit=1000 -POST request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-29-08-45-20/entries -PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-29-08-45-20/entries/2WP3BQMevIXiCXPA6GCIPH/published -GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master -GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master -PUT request to https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master -GET request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-29-08-45-03 -DELETE request to https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-29-08-45-03 \ No newline at end of file diff --git a/mocks/contentful/handlers/migrate_old/applyOneMigrationHandler.js b/mocks/contentful/handlers/migrate_old/applyOneMigrationHandler.js deleted file mode 100644 index e45b156..0000000 --- a/mocks/contentful/handlers/migrate_old/applyOneMigrationHandler.js +++ /dev/null @@ -1,2134 +0,0 @@ -const {rest} = require("msw"); -const {baseURL} = require("../../baseContentfulHandler"); - -const timestampPattern = /\d{4}-\d{2}-\d{2}-\d{2}-\d{2}-\d{2}$/ -module.exports.applyOneMigrationHandler = [ - //todo: diff check response type, might differ between subsequent requests - //todo: also handle response with query params: entries?content_type=appliedMigrations&limit=1000 - rest.get(`${baseURL}/environments/master/content_types/appliedMigrations`, (req, res, ctx) => { - return res( - ctx.status(200), - ctx.json({ - "sys": { - "space": { - "sys": { - "type": "Link", - "linkType": "Space", - "id": "TEST_SPACE_ID" - } - }, - "id": "appliedMigrations", - "type": "ContentType", - "createdAt": "2023-06-02T08:50:44.787Z", - "updatedAt": "2023-06-05T14:20:22.754Z", - "environment": { - "sys": { - "id": "master", - "type": "Link", - "linkType": "Environment" - } - }, - "publishedVersion": 3, - "publishedAt": "2023-06-05T14:20:22.754Z", - "firstPublishedAt": "2023-06-02T08:50:45.349Z", - "createdBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "updatedBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "publishedCounter": 2, - "version": 4, - "publishedBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - } - }, - "displayField": "timestamp", - "name": "Applied migrations", - "description": "", - "fields": [ - { - "id": "timestamp", - "name": "Timestamp", - "type": "Symbol", - "localized": false, - "required": true, - "validations": [], - "disabled": false, - "omitted": false - }, - { - "id": "name", - "name": "Name", - "type": "Symbol", - "localized": false, - "required": true, - "validations": [], - "disabled": false, - "omitted": false - }, - { - "id": "batch", - "name": "Batch number", - "type": "Integer", - "localized": false, - "required": true, - "validations": [], - "disabled": false, - "omitted": false - } - ] - }), - ) - }), - rest.get(`${baseURL}/environments/master/entries`, (req, res, ctx) => { - return res( - ctx.status(200), - ctx.json({ - "sys": { - "type": "Array" - }, - "total": 2, - "skip": 0, - "limit": 1000, - "items": [ - { - "metadata": { - "tags": [] - }, - "sys": { - "space": { - "sys": { - "type": "Link", - "linkType": "Space", - "id": "TEST_SPACE_ID" - } - }, - "id": "5UALu1mPBVs3arGpz6BQOS", - "type": "Entry", - "createdAt": "2023-06-26T13:47:13.646Z", - "updatedAt": "2023-06-26T13:47:13.646Z", - "environment": { - "sys": { - "id": "master", - "type": "Link", - "linkType": "Environment" - } - }, - "createdBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "updatedBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "publishedCounter": 0, - "version": 1, - "automationTags": [], - "contentType": { - "sys": { - "type": "Link", - "linkType": "ContentType", - "id": "appliedMigrations" - } - } - }, - "fields": { - "timestamp": { - "en-US": "20230602075003097 (1)" - }, - "name": { - "en-US": "inititial-migration" - }, - "batch": { - "en-US": 1 - } - } - }, - { - "metadata": { - "tags": [] - }, - "sys": { - "space": { - "sys": { - "type": "Link", - "linkType": "Space", - "id": "TEST_SPACE_ID" - } - }, - "id": "6iq3xP0EsGS9NzJoWvyblp", - "type": "Entry", - "createdAt": "2023-06-26T13:47:12.064Z", - "updatedAt": "2023-06-26T13:47:12.064Z", - "environment": { - "sys": { - "id": "master", - "type": "Link", - "linkType": "Environment" - } - }, - "createdBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "updatedBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "publishedCounter": 0, - "version": 1, - "automationTags": [], - "contentType": { - "sys": { - "type": "Link", - "linkType": "ContentType", - "id": "appliedMigrations" - } - } - }, - "fields": { - "timestamp": { - "en-US": "20230602075003097 (1)" - }, - "name": { - "en-US": "inititial-migration" - }, - "batch": { - "en-US": 1 - } - } - } - ] - }), - ) - }), - rest.get(`${baseURL}/environments`, (req, res, ctx) => { - return res( - ctx.status(200), - ctx.json({ - "total": 3, - "limit": 25, - "skip": 0, - "sys": { - "type": "Array" - }, - "items": [ - { - "name": "test", - "sys": { - "type": "Environment", - "id": "test", - "version": 3, - "space": { - "sys": { - "type": "Link", - "linkType": "Space", - "id": "TEST_SPACE_ID" - } - }, - "status": { - "sys": { - "type": "Link", - "linkType": "Status", - "id": "ready" - } - }, - "createdBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "createdAt": "2023-06-08T12:21:36Z", - "updatedBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "updatedAt": "2023-06-08T12:21:36Z", - "aliases": [] - } - }, - { - "name": "2023-06-28-11-33-42", - "sys": { - "type": "Environment", - "id": "2023-06-28-11-33-42", - "version": 3, - "space": { - "sys": { - "type": "Link", - "linkType": "Space", - "id": "TEST_SPACE_ID" - } - }, - "status": { - "sys": { - "type": "Link", - "linkType": "Status", - "id": "ready" - } - }, - "createdBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "createdAt": "2023-06-28T11:33:43Z", - "updatedBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "updatedAt": "2023-06-28T11:33:43Z", - "aliases": [ - { - "sys": { - "type": "Link", - "linkType": "EnvironmentAlias", - "id": "master" - } - } - ] - } - }, - { - "name": "2023-06-28-11-33-42", - "sys": { - "type": "Environment", - "id": "master", - "aliasedEnvironment": { - "sys": { - "type": "Link", - "linkType": "Environment", - "id": "2023-06-28-11-33-42" - } - }, - "version": 3, - "space": { - "sys": { - "type": "Link", - "linkType": "Space", - "id": "TEST_SPACE_ID" - } - }, - "status": { - "sys": { - "type": "Link", - "linkType": "Status", - "id": "ready" - } - }, - "createdBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "createdAt": "2023-06-28T11:33:43Z", - "updatedBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "updatedAt": "2023-06-28T11:33:43Z" - } - } - ] - }), - ) - }), - - //wildcard to handle dynamic timestamp from contentful - rest.put(`${baseURL}/environments/*`, (req, res, ctx) => { - return res( - ctx.status(201), - ctx.json({ - "name": "2023-06-28-11-35-08", - "sys": { - "type": "Environment", - "id": "2023-06-28-11-35-08", - "version": 1, - "space": { - "sys": { - "type": "Link", - "linkType": "Space", - "id": "TEST_SPACE_ID" - } - }, - "status": { - "sys": { - "type": "Link", - "linkType": "Status", - "id": "queued" - } - }, - "createdBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "createdAt": "2023-06-28T11:35:09Z", - "updatedBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "updatedAt": "2023-06-28T11:35:09Z", - "aliases": [] - } - }), - ) - }), - - rest.get(`${baseURL}/api_keys`, (req, res, ctx) => { - return res( - ctx.status(200), - ctx.json({ - "total": 1, - "limit": 25, - "skip": 0, - "sys": { - "type": "Array" - }, - "items": [ - { - "name": "Example space token 1", - "description": "This token is used by an example app. It is coupled with the content previews.", - "accessToken": "c11ea00b60091e878e7966c52e1138ad3adf5ff00a99c5dde77cb05a83743045", - "policies": [ - { - "effect": "allow", - "actions": "all" - } - ], - "sys": { - "type": "ApiKey", - "id": "1Yrt2lSOGbwEjPWJVg6yJA", - "version": 79, - "space": { - "sys": { - "type": "Link", - "linkType": "Space", - "id": "TEST_SPACE_ID" - } - }, - "createdBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "createdAt": "2018-09-17T08:26:09Z", - "updatedBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "updatedAt": "2023-06-28T11:33:43Z" - }, - "environments": [ - { - "sys": { - "id": "master", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-02-08-50-46", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-11-14-05", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-11-18-44", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-11-19-09", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-11-19-33", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-12-08-11", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-12-09-36", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-12-13-09", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-12-21-53", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-12-25-50", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-12-29-49", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-12-30-33", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-12-30-50", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-12-35-27", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-12-58-23", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-14-10-01", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-14-10-44", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-14-12-01", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-14-12-19", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-14-12-46", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-14-13-12", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-14-14-12", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-14-18-45", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-14-33-50", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-14-35-12", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-14-35-50", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-14-36-46", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-14-38-59", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-14-40-09", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-14-40-30", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-14-52-54", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-14-53-49", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-15-03-45", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-15-04-30", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-15-14-56", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-15-15-34", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-15-24-35", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-15-25-05", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-15-25-47", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-15-38-32", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-15-51-32", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-15-56-58", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-15-57-36", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-15-59-18", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-16-02-06", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-16-02-58", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-16-05-53", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-16-07-40", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-07-07-23-21", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-07-07-23-46", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-07-08-05-31", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-07-08-38-35", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-08-08-08-37", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-08-08-08-56", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-09-12-15-50", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-09-12-16-29", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-09-12-17-53", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-09-12-18-54", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-09-12-19-15", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-09-12-22-38", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-09-12-26-32", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-09-12-56-57", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-09-13-49-12", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-09-13-52-52", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-09-13-53-47", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-14-08-27-25", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-26-13-46-48", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-26-14-05-43", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-26-14-07-29", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-26-14-11-02", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-26-14-12-01", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-26-14-12-36", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-27-08-53-00", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-28-07-02-37", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-28-11-32-12", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-28-11-32-44", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-28-11-33-42", - "type": "Link", - "linkType": "Environment" - } - } - ], - "preview_api_key": { - "sys": { - "type": "Link", - "linkType": "PreviewApiKey", - "id": "1YsyWIrKbsWrbImKsd9Bqq" - } - } - } - ] - }), - ) - }), - - //wildcard to handle api_key PUT request with dynamic timestamp - rest.put(`${baseURL}/api_keys/*`, (req, res, ctx) => { - return res( - ctx.status(201), - ctx.json({ - "name": "Example space token 1", - "description": "This token is used by an example app. It is coupled with the content previews.", - "accessToken": "c11ea00b60091e878e7966c52e1138ad3adf5ff00a99c5dde77cb05a83743045", - "policies": [ - { - "effect": "allow", - "actions": "all" - } - ], - "sys": { - "type": "ApiKey", - "id": "1Yrt2lSOGbwEjPWJVg6yJA", - "version": 80, - "space": { - "sys": { - "type": "Link", - "linkType": "Space", - "id": "TEST_SPACE_ID" - } - }, - "createdBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "createdAt": "2018-09-17T08:26:09Z", - "updatedBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "updatedAt": "2023-06-28T11:35:10Z" - }, - "environments": [ - { - "sys": { - "id": "master", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-02-08-50-46", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-11-14-05", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-11-18-44", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-11-19-09", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-11-19-33", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-12-08-11", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-12-09-36", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-12-13-09", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-12-21-53", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-12-25-50", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-12-29-49", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-12-30-33", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-12-30-50", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-12-35-27", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-12-58-23", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-14-10-01", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-14-10-44", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-14-12-01", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-14-12-19", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-14-12-46", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-14-13-12", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-14-14-12", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-14-18-45", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-14-33-50", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-14-35-12", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-14-35-50", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-14-36-46", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-14-38-59", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-14-40-09", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-14-40-30", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-14-52-54", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-14-53-49", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-15-03-45", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-15-04-30", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-15-14-56", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-15-15-34", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-15-24-35", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-15-25-05", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-15-25-47", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-15-38-32", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-15-51-32", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-15-56-58", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-15-57-36", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-15-59-18", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-16-02-06", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-16-02-58", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-16-05-53", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-05-16-07-40", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-07-07-23-21", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-07-07-23-46", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-07-08-05-31", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-07-08-38-35", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-08-08-08-37", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-08-08-08-56", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-09-12-15-50", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-09-12-16-29", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-09-12-17-53", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-09-12-18-54", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-09-12-19-15", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-09-12-22-38", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-09-12-26-32", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-09-12-56-57", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-09-13-49-12", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-09-13-52-52", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-09-13-53-47", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-14-08-27-25", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-26-13-46-48", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-26-14-05-43", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-26-14-07-29", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-26-14-11-02", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-26-14-12-01", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-26-14-12-36", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-27-08-53-00", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-28-07-02-37", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-28-11-32-12", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-28-11-32-44", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-28-11-33-42", - "type": "Link", - "linkType": "Environment" - } - }, - { - "sys": { - "id": "2023-06-28-11-35-08", - "type": "Link", - "linkType": "Environment" - } - } - ], - "preview_api_key": { - "sys": { - "type": "Link", - "linkType": "PreviewApiKey", - "id": "1YsyWIrKbsWrbImKsd9Bqq" - } - } - }), - ) - }), - - rest.get(`${baseURL}/environments/*/locales`, (req, res, ctx) => { - return res( - ctx.status(200), - ctx.json({ - "sys": { - "type": "Array" - }, - "total": 1, - "skip": 0, - "limit": 100, - "items": [ - { - "name": "English (United States)", - "internal_code": "en-US", - "code": "en-US", - "fallbackCode": null, - "default": true, - "contentManagementApi": true, - "contentDeliveryApi": true, - "optional": false, - "sys": { - "type": "Locale", - "id": "1VDLlb9oKX4EE2oI6p9kMa", - "version": 1, - "space": { - "sys": { - "type": "Link", - "linkType": "Space", - "id": "TEST_SPACE_ID" - } - }, - "environment": { - "sys": { - "type": "Link", - "linkType": "Environment", - "id": "2023-06-28-11-35-08", - "uuid": "ddefb40d-4099-450d-8d99-49c07db971ab" - } - }, - "createdBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "createdAt": "2023-06-28T11:35:09Z", - "updatedBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "updatedAt": "2023-06-28T11:35:09Z" - } - } - ] - }), - ) - }), - - //todo: GET /locales?limit=100&order=sys.createdAt&skip=0 - - //todo: POST /entries - rest.post(`${baseURL}/environments/*/entries`, (req, res, ctx) => { - return res( - ctx.status(200), - ctx.json({ - "metadata": { - "tags": [] - }, - "sys": { - "space": { - "sys": { - "type": "Link", - "linkType": "Space", - "id": "bo6ijs14u5ox" - } - }, - "id": "P9aHLvrSfpLvqzb7o280G", - "type": "Entry", - "createdAt": "2023-06-28T11:35:14.661Z", - "updatedAt": "2023-06-28T11:35:14.661Z", - "environment": { - "sys": { - "id": "2023-06-28-11-35-08", - "type": "Link", - "linkType": "Environment" - } - }, - "createdBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "updatedBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "publishedCounter": 0, - "version": 1, - "automationTags": [], - "contentType": { - "sys": { - "type": "Link", - "linkType": "ContentType", - "id": "appliedMigrations" - } - } - }, - "fields": { - "timestamp": { - "en-US": "20230609122547608" - }, - "name": { - "en-US": "new-migration" - }, - "batch": { - "en-US": 2 - } - } - }), - ) - }), - - //todo: PUT https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-29-08-45-20/entries/2WP3BQMevIXiCXPA6GCIPH/published - rest.put(`${baseURL}/environments/*/entries/*/published`, (req, res, ctx) => { - return res( - ctx.status(201), - ctx.json({ - "metadata": { - "tags": [] - }, - "sys": { - "space": { - "sys": { - "type": "Link", - "linkType": "Space", - "id": "bo6ijs14u5ox" - } - }, - "id": "P9aHLvrSfpLvqzb7o280G", - "type": "Entry", - "createdAt": "2023-06-28T11:35:14.661Z", - "updatedAt": "2023-06-28T11:35:15.127Z", - "environment": { - "sys": { - "id": "2023-06-28-11-35-08", - "type": "Link", - "linkType": "Environment" - } - }, - "publishedVersion": 1, - "publishedAt": "2023-06-28T11:35:15.127Z", - "firstPublishedAt": "2023-06-28T11:35:15.127Z", - "createdBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "updatedBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "publishedCounter": 1, - "version": 2, - "publishedBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "automationTags": [], - "contentType": { - "sys": { - "type": "Link", - "linkType": "ContentType", - "id": "appliedMigrations" - } - } - }, - "fields": { - "timestamp": { - "en-US": "20230609122547608" - }, - "name": { - "en-US": "new-migration" - }, - "batch": { - "en-US": 2 - } - } - }), - ) - }), - - //wildcard to handle environments GET request with dynamic timestamp - //https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08 - rest.get(`${baseURL}/environments/*`, (req, res, ctx) => { - return res( - ctx.status(200), - ctx.json({ - "name": "2023-06-28-11-35-08", - "sys": { - "type": "Environment", - "id": "2023-06-28-11-35-08", - "version": 3, - "space": { - "sys": { - "type": "Link", - "linkType": "Space", - "id": "TEST_SPACE_ID" - } - }, - "status": { - "sys": { - "type": "Link", - "linkType": "Status", - "id": "ready" - } - }, - "createdBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "createdAt": "2023-06-28T11:35:09Z", - "updatedBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "updatedAt": "2023-06-28T11:35:09Z", - "aliases": [] - } - }), - ) - }), - - //Found an unhandled DELETE request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08 - //wildcard to handle environments DELETE request with dynamic timestamp - rest.delete(`${baseURL}/environments/*`, (req, res, ctx) => { - - console.log("HITTING DELETE") - return res( - ctx.status(204), - ctx.json({ - "name": "2023-06-28-11-35-08", - "sys": { - "type": "Environment", - "id": "2023-06-28-11-35-08", - "version": 3, - "space": { - "sys": { - "type": "Link", - "linkType": "Space", - "id": "TEST_SPACE_ID" - } - }, - "status": { - "sys": { - "type": "Link", - "linkType": "Status", - "id": "ready" - } - }, - "createdBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "createdAt": "2023-06-28T11:35:09Z", - "updatedBy": { - "sys": { - "type": "Link", - "linkType": "User", - "id": "7fkm1bGT9u8nLkbD7Uuqsr" - } - }, - "updatedAt": "2023-06-28T11:35:09Z", - "aliases": [] - } - }), - ) - }), -] - - - -let responses = [ -/* { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master/content_types/appliedMigrations", - "method": "GET", - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"appliedMigrations\",\"type\":\"ContentType\",\"createdAt\":\"2023-06-02T08:50:44.787Z\",\"updatedAt\":\"2023-06-05T14:20:22.754Z\",\"environment\":{\"sys\":{\"id\":\"master\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"publishedVersion\":3,\"publishedAt\":\"2023-06-05T14:20:22.754Z\",\"firstPublishedAt\":\"2023-06-02T08:50:45.349Z\",\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":2,\"version\":4,\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}}},\"displayField\":\"timestamp\",\"name\":\"Applied migrations\",\"description\":\"\",\"fields\":[{\"id\":\"timestamp\",\"name\":\"Timestamp\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"name\",\"name\":\"Name\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"batch\",\"name\":\"Batch number\",\"type\":\"Integer\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" - },*/ -/* { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/master/entries?content_type=appliedMigrations&limit=1000", - "method": "GET", - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"sys\":{\"type\":\"Array\"},\"total\":2,\"skip\":0,\"limit\":1000,\"items\":[{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"5UALu1mPBVs3arGpz6BQOS\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:13.646Z\",\"updatedAt\":\"2023-06-26T13:47:13.646Z\",\"environment\":{\"sys\":{\"id\":\"master\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}},{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"6iq3xP0EsGS9NzJoWvyblp\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:12.064Z\",\"updatedAt\":\"2023-06-26T13:47:12.064Z\",\"environment\":{\"sys\":{\"id\":\"master\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}}]}\n" - },*/ - /*{ - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments", - "method": "GET", - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\n \"total\":3,\n \"limit\":25,\n \"skip\":0,\n \"sys\":{\n \"type\":\"Array\"\n },\n \"items\":[\n {\n \"name\":\"test\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"test\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-08T12:21:36Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-08T12:21:36Z\",\n \"aliases\":[]\n }\n },\n {\n \"name\":\"2023-06-28-11-33-42\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:33:43Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:43Z\",\n \"aliases\":[\n {\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"EnvironmentAlias\",\n \"id\":\"master\"\n }\n }\n ]\n }\n },\n {\n \"name\":\"2023-06-28-11-33-42\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"master\",\n \"aliasedEnvironment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\"\n }\n },\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:33:43Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:43Z\"\n }\n }\n ]\n}\n\n" - },*/ - /*{ - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08", - "method": "PUT", - "status": 201, - "statusText": "Created", - "headers": {}, - "body": "{\n \"name\":\"2023-06-28-11-35-08\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-06-28-11-35-08\",\n \"version\":1,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"queued\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:35:09Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:35:09Z\",\n \"aliases\":[]\n }\n}\n\n" - },*/ -/* { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/api_keys", - "method": "GET", - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\n \"total\":1,\n \"limit\":25,\n \"skip\":0,\n \"sys\":{\n \"type\":\"Array\"\n },\n \"items\":[\n {\n \"name\":\"Example space token 1\",\n \"description\":\"This token is used by an example app. It is coupled with the content previews.\",\n \"accessToken\":\"c11ea00b60091e878e7966c52e1138ad3adf5ff00a99c5dde77cb05a83743045\",\n \"policies\":[\n {\n \"effect\":\"allow\",\n \"actions\":\"all\"\n }\n ],\n \"sys\":{\n \"type\":\"ApiKey\",\n \"id\":\"1Yrt2lSOGbwEjPWJVg6yJA\",\n \"version\":79,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2018-09-17T08:26:09Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:43Z\"\n },\n \"environments\":[\n {\n \"sys\":{\n \"id\":\"master\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-02-08-50-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-14-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-18-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-08-11\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-09-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-13-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-21-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-25-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-29-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-35-27\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-58-23\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-19\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-13-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-14-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-18-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-33-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-36-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-38-59\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-52-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-53-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-03-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-04-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-14-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-15-34\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-24-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-38-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-51-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-56-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-57-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-59-18\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-06\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-05-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-07-40\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-21\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-05-31\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-38-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-15-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-16-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-17-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-18-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-19-15\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-22-38\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-26-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-56-57\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-49-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-52-52\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-53-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-14-08-27-25\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-13-46-48\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-05-43\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-07-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-11-02\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-27-08-53-00\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-07-02-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-33-42\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n }\n ],\n \"preview_api_key\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"PreviewApiKey\",\n \"id\":\"1YsyWIrKbsWrbImKsd9Bqq\"\n }\n }\n }\n ]\n}\n\n" - },*/ - { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/api_keys/1Yrt2lSOGbwEjPWJVg6yJA", - "method": "PUT", - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\n \"name\":\"Example space token 1\",\n \"description\":\"This token is used by an example app. It is coupled with the content previews.\",\n \"accessToken\":\"c11ea00b60091e878e7966c52e1138ad3adf5ff00a99c5dde77cb05a83743045\",\n \"policies\":[\n {\n \"effect\":\"allow\",\n \"actions\":\"all\"\n }\n ],\n \"sys\":{\n \"type\":\"ApiKey\",\n \"id\":\"1Yrt2lSOGbwEjPWJVg6yJA\",\n \"version\":80,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2018-09-17T08:26:09Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:35:10Z\"\n },\n \"environments\":[\n {\n \"sys\":{\n \"id\":\"master\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-02-08-50-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-14-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-18-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-08-11\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-09-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-13-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-21-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-25-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-29-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-35-27\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-58-23\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-19\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-13-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-14-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-18-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-33-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-36-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-38-59\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-52-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-53-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-03-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-04-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-14-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-15-34\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-24-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-38-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-51-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-56-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-57-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-59-18\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-06\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-05-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-07-40\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-21\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-05-31\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-38-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-15-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-16-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-17-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-18-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-19-15\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-22-38\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-26-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-56-57\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-49-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-52-52\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-53-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-14-08-27-25\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-13-46-48\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-05-43\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-07-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-11-02\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-27-08-53-00\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-07-02-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-33-42\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-35-08\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n }\n ],\n \"preview_api_key\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"PreviewApiKey\",\n \"id\":\"1YsyWIrKbsWrbImKsd9Bqq\"\n }\n }\n}\n\n" - }, - { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID", - "method": "GET", - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\n \"name\":\"TypeOne\",\n \"sys\":{\n \"type\":\"Space\",\n \"id\":\"TEST_SPACE_ID\",\n \"version\":7,\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2018-09-17T08:26:06Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2022-12-15T09:11:48Z\",\n \"organization\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Organization\",\n \"id\":\"1kUUWhojvGtUmRyhXfqSwK\"\n }\n }\n }\n}\n\n" - }, -/* { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08", - "method": "GET", - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\n \"name\":\"2023-06-28-11-35-08\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-06-28-11-35-08\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:35:09Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:35:09Z\",\n \"aliases\":[]\n }\n}\n\n" - },*/ -/* { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/locales", - "method": "GET", - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"sys\":{\"type\":\"Array\"},\"total\":1,\"skip\":0,\"limit\":100,\"items\":[{\"name\":\"English (United States)\",\"internal_code\":\"en-US\",\"code\":\"en-US\",\"fallbackCode\":null,\"default\":true,\"contentManagementApi\":true,\"contentDeliveryApi\":true,\"optional\":false,\"sys\":{\"type\":\"Locale\",\"id\":\"1VDLlb9oKX4EE2oI6p9kMa\",\"version\":1,\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"environment\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Environment\",\"id\":\"2023-06-28-11-35-08\",\"uuid\":\"ddefb40d-4099-450d-8d99-49c07db971ab\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"createdAt\":\"2023-06-28T11:35:09Z\",\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedAt\":\"2023-06-28T11:35:09Z\"}}]}\n" - },*/ - { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/content_types/appliedMigrations", - "method": "GET", - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"appliedMigrations\",\"type\":\"ContentType\",\"createdAt\":\"2023-06-02T08:50:44.787Z\",\"updatedAt\":\"2023-06-05T14:20:22.754Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"publishedVersion\":3,\"publishedAt\":\"2023-06-05T14:20:22.754Z\",\"firstPublishedAt\":\"2023-06-02T08:50:45.349Z\",\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":2,\"version\":4,\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}}},\"displayField\":\"timestamp\",\"name\":\"Applied migrations\",\"description\":\"\",\"fields\":[{\"id\":\"timestamp\",\"name\":\"Timestamp\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"name\",\"name\":\"Name\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"batch\",\"name\":\"Batch number\",\"type\":\"Integer\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" - }, - { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/entries?content_type=appliedMigrations&limit=1000", - "method": "GET", - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"sys\":{\"type\":\"Array\"},\"total\":2,\"skip\":0,\"limit\":1000,\"items\":[{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"5UALu1mPBVs3arGpz6BQOS\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:13.646Z\",\"updatedAt\":\"2023-06-26T13:47:13.646Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}},{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"6iq3xP0EsGS9NzJoWvyblp\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:12.064Z\",\"updatedAt\":\"2023-06-26T13:47:12.064Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}}]}\n" - }, - { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/content_types?limit=100&order=sys.createdAt&sys.id[in]=testContentType&skip=0", - "method": "GET", - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"sys\":{\"type\":\"Array\"},\"total\":0,\"skip\":0,\"limit\":100,\"items\":[]}\n" - }, - { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/locales?limit=100&order=sys.createdAt&skip=0", - "method": "GET", - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"sys\":{\"type\":\"Array\"},\"total\":1,\"skip\":0,\"limit\":100,\"items\":[{\"name\":\"English (United States)\",\"internal_code\":\"en-US\",\"code\":\"en-US\",\"fallbackCode\":null,\"default\":true,\"contentManagementApi\":true,\"contentDeliveryApi\":true,\"optional\":false,\"sys\":{\"type\":\"Locale\",\"id\":\"1VDLlb9oKX4EE2oI6p9kMa\",\"version\":1,\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"environment\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Environment\",\"id\":\"2023-06-28-11-35-08\",\"uuid\":\"ddefb40d-4099-450d-8d99-49c07db971ab\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"createdAt\":\"2023-06-28T11:35:09Z\",\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedAt\":\"2023-06-28T11:35:09Z\"}}]}\n" - }, - { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/content_types/testContentType", - "method": "PUT", - "status": 201, - "statusText": "Created", - "headers": {}, - "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"testContentType\",\"type\":\"ContentType\",\"createdAt\":\"2023-06-28T11:35:12.987Z\",\"updatedAt\":\"2023-06-28T11:35:12.987Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1},\"displayField\":\"testContentId\",\"name\":\"Test content type\",\"description\":\"\",\"fields\":[{\"id\":\"testContentId\",\"name\":\"test content id\",\"type\":\"Symbol\",\"localized\":false,\"required\":false,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" - }, - { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/content_types/testContentType/published", - "method": "PUT", - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"testContentType\",\"type\":\"ContentType\",\"createdAt\":\"2023-06-28T11:35:12.987Z\",\"updatedAt\":\"2023-06-28T11:35:13.333Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":1,\"version\":2,\"firstPublishedAt\":\"2023-06-28T11:35:13.333Z\",\"publishedAt\":\"2023-06-28T11:35:13.333Z\",\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedVersion\":1},\"displayField\":\"testContentId\",\"name\":\"Test content type\",\"description\":\"\",\"fields\":[{\"id\":\"testContentId\",\"name\":\"test content id\",\"type\":\"Symbol\",\"localized\":false,\"required\":false,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" - }, - { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/entries?content_type=appliedMigrations&limit=1000", - "method": "GET", - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"sys\":{\"type\":\"Array\"},\"total\":2,\"skip\":0,\"limit\":1000,\"items\":[{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"5UALu1mPBVs3arGpz6BQOS\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:13.646Z\",\"updatedAt\":\"2023-06-26T13:47:13.646Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}},{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"6iq3xP0EsGS9NzJoWvyblp\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:12.064Z\",\"updatedAt\":\"2023-06-26T13:47:12.064Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}}]}\n" - }, - { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/entries", - "method": "POST", - "status": 201, - "statusText": "Created", - "headers": {}, - "body": "{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"P9aHLvrSfpLvqzb7o280G\",\"type\":\"Entry\",\"createdAt\":\"2023-06-28T11:35:14.661Z\",\"updatedAt\":\"2023-06-28T11:35:14.661Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230609122547608\"},\"name\":{\"en-US\":\"new-migration\"},\"batch\":{\"en-US\":2}}}\n" - }, - { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-35-08/entries/P9aHLvrSfpLvqzb7o280G/published", - "method": "PUT", - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"TEST_SPACE_ID\"}},\"id\":\"P9aHLvrSfpLvqzb7o280G\",\"type\":\"Entry\",\"createdAt\":\"2023-06-28T11:35:14.661Z\",\"updatedAt\":\"2023-06-28T11:35:15.127Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"publishedVersion\":1,\"publishedAt\":\"2023-06-28T11:35:15.127Z\",\"firstPublishedAt\":\"2023-06-28T11:35:15.127Z\",\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":1,\"version\":2,\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230609122547608\"},\"name\":{\"en-US\":\"new-migration\"},\"batch\":{\"en-US\":2}}}\n" - }, - { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environment_aliases/master", - "method": "GET", - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\n \"sys\":{\n \"type\":\"EnvironmentAlias\",\n \"id\":\"master\",\n \"version\":16,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-05T12:35:02Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:50Z\"\n },\n \"environment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\"\n }\n }\n}\n\n" - }, - { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environment_aliases/master", - "method": "GET", - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\n \"sys\":{\n \"type\":\"EnvironmentAlias\",\n \"id\":\"master\",\n \"version\":16,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-05T12:35:02Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:50Z\"\n },\n \"environment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\"\n }\n }\n}\n\n" - }, - { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environment_aliases/master", - "method": "PUT", - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\n \"sys\":{\n \"type\":\"EnvironmentAlias\",\n \"id\":\"master\",\n \"version\":17,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-05T12:35:02Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:35:16Z\"\n },\n \"environment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-06-28-11-35-08\"\n }\n }\n}\n\n" - }, - { - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-33-42", - "method": "GET", - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\n \"name\":\"2023-06-28-11-33-42\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"TEST_SPACE_ID\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:33:43Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:43Z\",\n \"aliases\":[]\n }\n}\n\n" - }, - { - "id": "0115a323-ff93-4404-9a0a-8ab0801abf87", - "url": "https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-28-11-33-42", - "status": 204, - "statusText": "No Content", - "headers": {}, - "body": "" - } -] diff --git a/mocks/contentful/handlers/migrate_old/traffic-1687952117250.json b/mocks/contentful/handlers/migrate_old/traffic-1687952117250.json deleted file mode 100644 index d9fa921..0000000 --- a/mocks/contentful/handlers/migrate_old/traffic-1687952117250.json +++ /dev/null @@ -1,1290 +0,0 @@ -[ - { - "request": [ - { - "_bodyUsed": false, - "id": "61dd52b8-89d6-4105-b261-676acf3d1df8", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types/appliedMigrations", - "method": "GET", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"appliedMigrations\",\"type\":\"ContentType\",\"createdAt\":\"2023-06-02T08:50:44.787Z\",\"updatedAt\":\"2023-06-05T14:20:22.754Z\",\"environment\":{\"sys\":{\"id\":\"master\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"publishedVersion\":3,\"publishedAt\":\"2023-06-05T14:20:22.754Z\",\"firstPublishedAt\":\"2023-06-02T08:50:45.349Z\",\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":2,\"version\":4,\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}}},\"displayField\":\"timestamp\",\"name\":\"Applied migrations\",\"description\":\"\",\"fields\":[{\"id\":\"timestamp\",\"name\":\"Timestamp\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"name\",\"name\":\"Name\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"batch\",\"name\":\"Batch number\",\"type\":\"Integer\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" - } - ], - "response": [ - { - "_bodyUsed": false, - "id": "61dd52b8-89d6-4105-b261-676acf3d1df8", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/content_types/appliedMigrations", - "method": "GET", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"appliedMigrations\",\"type\":\"ContentType\",\"createdAt\":\"2023-06-02T08:50:44.787Z\",\"updatedAt\":\"2023-06-05T14:20:22.754Z\",\"environment\":{\"sys\":{\"id\":\"master\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"publishedVersion\":3,\"publishedAt\":\"2023-06-05T14:20:22.754Z\",\"firstPublishedAt\":\"2023-06-02T08:50:45.349Z\",\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":2,\"version\":4,\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}}},\"displayField\":\"timestamp\",\"name\":\"Applied migrations\",\"description\":\"\",\"fields\":[{\"id\":\"timestamp\",\"name\":\"Timestamp\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"name\",\"name\":\"Name\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"batch\",\"name\":\"Batch number\",\"type\":\"Integer\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" - } - ] - }, - { - "request": [ - { - "_bodyUsed": false, - "id": "8d81df5e-3f35-4e40-8934-8206768aa02e", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/entries?content_type=appliedMigrations&limit=1000", - "method": "GET", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"sys\":{\"type\":\"Array\"},\"total\":2,\"skip\":0,\"limit\":1000,\"items\":[{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"5UALu1mPBVs3arGpz6BQOS\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:13.646Z\",\"updatedAt\":\"2023-06-26T13:47:13.646Z\",\"environment\":{\"sys\":{\"id\":\"master\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}},{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"6iq3xP0EsGS9NzJoWvyblp\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:12.064Z\",\"updatedAt\":\"2023-06-26T13:47:12.064Z\",\"environment\":{\"sys\":{\"id\":\"master\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}}]}\n" - } - ], - "response": [ - { - "_bodyUsed": false, - "id": "8d81df5e-3f35-4e40-8934-8206768aa02e", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/master/entries?content_type=appliedMigrations&limit=1000", - "method": "GET", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"sys\":{\"type\":\"Array\"},\"total\":2,\"skip\":0,\"limit\":1000,\"items\":[{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"5UALu1mPBVs3arGpz6BQOS\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:13.646Z\",\"updatedAt\":\"2023-06-26T13:47:13.646Z\",\"environment\":{\"sys\":{\"id\":\"master\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}},{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"6iq3xP0EsGS9NzJoWvyblp\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:12.064Z\",\"updatedAt\":\"2023-06-26T13:47:12.064Z\",\"environment\":{\"sys\":{\"id\":\"master\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}}]}\n" - } - ] - }, - { - "request": [ - { - "_bodyUsed": false, - "id": "fba5a1c6-ec3d-49e5-ab8f-e8cd4acc4e7b", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments", - "method": "GET", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\n \"total\":3,\n \"limit\":25,\n \"skip\":0,\n \"sys\":{\n \"type\":\"Array\"\n },\n \"items\":[\n {\n \"name\":\"test\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"test\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-08T12:21:36Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-08T12:21:36Z\",\n \"aliases\":[]\n }\n },\n {\n \"name\":\"2023-06-28-11-33-42\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:33:43Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:43Z\",\n \"aliases\":[\n {\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"EnvironmentAlias\",\n \"id\":\"master\"\n }\n }\n ]\n }\n },\n {\n \"name\":\"2023-06-28-11-33-42\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"master\",\n \"aliasedEnvironment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\"\n }\n },\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:33:43Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:43Z\"\n }\n }\n ]\n}\n\n" - } - ], - "response": [ - { - "_bodyUsed": false, - "id": "fba5a1c6-ec3d-49e5-ab8f-e8cd4acc4e7b", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments", - "method": "GET", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\n \"total\":3,\n \"limit\":25,\n \"skip\":0,\n \"sys\":{\n \"type\":\"Array\"\n },\n \"items\":[\n {\n \"name\":\"test\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"test\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-08T12:21:36Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-08T12:21:36Z\",\n \"aliases\":[]\n }\n },\n {\n \"name\":\"2023-06-28-11-33-42\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:33:43Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:43Z\",\n \"aliases\":[\n {\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"EnvironmentAlias\",\n \"id\":\"master\"\n }\n }\n ]\n }\n },\n {\n \"name\":\"2023-06-28-11-33-42\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"master\",\n \"aliasedEnvironment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\"\n }\n },\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:33:43Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:43Z\"\n }\n }\n ]\n}\n\n" - } - ] - }, - { - "request": [ - { - "_bodyUsed": false, - "id": "e79173cc-349a-45fb-92b4-d47cc36ca0ff", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08", - "method": "PUT", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 201, - "statusText": "Created", - "headers": {}, - "body": "{\n \"name\":\"2023-06-28-11-35-08\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-06-28-11-35-08\",\n \"version\":1,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"queued\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:35:09Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:35:09Z\",\n \"aliases\":[]\n }\n}\n\n" - } - ], - "response": [ - { - "_bodyUsed": false, - "id": "e79173cc-349a-45fb-92b4-d47cc36ca0ff", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08", - "method": "PUT", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 201, - "statusText": "Created", - "headers": {}, - "body": "{\n \"name\":\"2023-06-28-11-35-08\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-06-28-11-35-08\",\n \"version\":1,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"queued\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:35:09Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:35:09Z\",\n \"aliases\":[]\n }\n}\n\n" - } - ] - }, - { - "request": [ - { - "_bodyUsed": false, - "id": "d0bcbbe2-ac02-4547-b455-79da818c4f38", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys", - "method": "GET", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\n \"total\":1,\n \"limit\":25,\n \"skip\":0,\n \"sys\":{\n \"type\":\"Array\"\n },\n \"items\":[\n {\n \"name\":\"Example space token 1\",\n \"description\":\"This token is used by an example app. It is coupled with the content previews.\",\n \"accessToken\":\"c11ea00b60091e878e7966c52e1138ad3adf5ff00a99c5dde77cb05a83743045\",\n \"policies\":[\n {\n \"effect\":\"allow\",\n \"actions\":\"all\"\n }\n ],\n \"sys\":{\n \"type\":\"ApiKey\",\n \"id\":\"1Yrt2lSOGbwEjPWJVg6yJA\",\n \"version\":79,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2018-09-17T08:26:09Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:43Z\"\n },\n \"environments\":[\n {\n \"sys\":{\n \"id\":\"master\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-02-08-50-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-14-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-18-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-08-11\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-09-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-13-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-21-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-25-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-29-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-35-27\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-58-23\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-19\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-13-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-14-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-18-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-33-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-36-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-38-59\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-52-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-53-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-03-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-04-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-14-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-15-34\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-24-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-38-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-51-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-56-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-57-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-59-18\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-06\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-05-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-07-40\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-21\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-05-31\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-38-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-15-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-16-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-17-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-18-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-19-15\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-22-38\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-26-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-56-57\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-49-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-52-52\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-53-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-14-08-27-25\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-13-46-48\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-05-43\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-07-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-11-02\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-27-08-53-00\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-07-02-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-33-42\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n }\n ],\n \"preview_api_key\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"PreviewApiKey\",\n \"id\":\"1YsyWIrKbsWrbImKsd9Bqq\"\n }\n }\n }\n ]\n}\n\n" - } - ], - "response": [ - { - "_bodyUsed": false, - "id": "d0bcbbe2-ac02-4547-b455-79da818c4f38", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys", - "method": "GET", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\n \"total\":1,\n \"limit\":25,\n \"skip\":0,\n \"sys\":{\n \"type\":\"Array\"\n },\n \"items\":[\n {\n \"name\":\"Example space token 1\",\n \"description\":\"This token is used by an example app. It is coupled with the content previews.\",\n \"accessToken\":\"c11ea00b60091e878e7966c52e1138ad3adf5ff00a99c5dde77cb05a83743045\",\n \"policies\":[\n {\n \"effect\":\"allow\",\n \"actions\":\"all\"\n }\n ],\n \"sys\":{\n \"type\":\"ApiKey\",\n \"id\":\"1Yrt2lSOGbwEjPWJVg6yJA\",\n \"version\":79,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2018-09-17T08:26:09Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:43Z\"\n },\n \"environments\":[\n {\n \"sys\":{\n \"id\":\"master\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-02-08-50-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-14-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-18-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-08-11\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-09-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-13-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-21-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-25-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-29-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-35-27\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-58-23\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-19\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-13-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-14-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-18-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-33-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-36-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-38-59\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-52-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-53-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-03-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-04-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-14-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-15-34\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-24-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-38-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-51-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-56-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-57-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-59-18\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-06\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-05-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-07-40\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-21\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-05-31\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-38-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-15-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-16-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-17-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-18-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-19-15\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-22-38\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-26-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-56-57\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-49-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-52-52\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-53-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-14-08-27-25\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-13-46-48\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-05-43\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-07-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-11-02\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-27-08-53-00\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-07-02-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-33-42\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n }\n ],\n \"preview_api_key\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"PreviewApiKey\",\n \"id\":\"1YsyWIrKbsWrbImKsd9Bqq\"\n }\n }\n }\n ]\n}\n\n" - } - ] - }, - { - "request": [ - { - "_bodyUsed": false, - "id": "3b7486ae-6894-4517-ae3d-7d911a1a079e", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys/1Yrt2lSOGbwEjPWJVg6yJA", - "method": "PUT", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\n \"name\":\"Example space token 1\",\n \"description\":\"This token is used by an example app. It is coupled with the content previews.\",\n \"accessToken\":\"c11ea00b60091e878e7966c52e1138ad3adf5ff00a99c5dde77cb05a83743045\",\n \"policies\":[\n {\n \"effect\":\"allow\",\n \"actions\":\"all\"\n }\n ],\n \"sys\":{\n \"type\":\"ApiKey\",\n \"id\":\"1Yrt2lSOGbwEjPWJVg6yJA\",\n \"version\":80,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2018-09-17T08:26:09Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:35:10Z\"\n },\n \"environments\":[\n {\n \"sys\":{\n \"id\":\"master\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-02-08-50-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-14-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-18-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-08-11\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-09-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-13-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-21-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-25-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-29-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-35-27\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-58-23\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-19\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-13-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-14-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-18-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-33-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-36-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-38-59\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-52-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-53-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-03-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-04-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-14-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-15-34\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-24-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-38-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-51-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-56-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-57-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-59-18\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-06\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-05-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-07-40\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-21\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-05-31\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-38-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-15-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-16-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-17-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-18-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-19-15\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-22-38\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-26-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-56-57\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-49-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-52-52\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-53-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-14-08-27-25\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-13-46-48\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-05-43\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-07-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-11-02\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-27-08-53-00\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-07-02-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-33-42\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-35-08\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n }\n ],\n \"preview_api_key\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"PreviewApiKey\",\n \"id\":\"1YsyWIrKbsWrbImKsd9Bqq\"\n }\n }\n}\n\n" - } - ], - "response": [ - { - "_bodyUsed": false, - "id": "3b7486ae-6894-4517-ae3d-7d911a1a079e", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/api_keys/1Yrt2lSOGbwEjPWJVg6yJA", - "method": "PUT", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\n \"name\":\"Example space token 1\",\n \"description\":\"This token is used by an example app. It is coupled with the content previews.\",\n \"accessToken\":\"c11ea00b60091e878e7966c52e1138ad3adf5ff00a99c5dde77cb05a83743045\",\n \"policies\":[\n {\n \"effect\":\"allow\",\n \"actions\":\"all\"\n }\n ],\n \"sys\":{\n \"type\":\"ApiKey\",\n \"id\":\"1Yrt2lSOGbwEjPWJVg6yJA\",\n \"version\":80,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2018-09-17T08:26:09Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:35:10Z\"\n },\n \"environments\":[\n {\n \"sys\":{\n \"id\":\"master\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-02-08-50-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-14-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-18-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-11-19-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-08-11\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-09-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-13-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-21-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-25-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-29-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-33\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-30-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-35-27\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-12-58-23\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-10-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-19\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-12-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-13-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-14-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-18-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-33-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-35-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-36-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-38-59\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-09\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-40-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-52-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-14-53-49\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-03-45\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-04-30\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-14-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-15-34\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-24-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-05\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-25-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-38-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-51-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-56-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-57-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-15-59-18\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-06\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-02-58\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-05-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-05-16-07-40\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-21\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-07-23-46\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-05-31\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-07-08-38-35\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-08-08-08-56\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-15-50\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-16-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-17-53\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-18-54\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-19-15\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-22-38\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-26-32\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-12-56-57\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-49-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-52-52\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-09-13-53-47\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-14-08-27-25\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-13-46-48\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-05-43\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-07-29\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-11-02\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-01\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-26-14-12-36\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-27-08-53-00\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-07-02-37\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-12\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-32-44\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-33-42\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n },\n {\n \"sys\":{\n \"id\":\"2023-06-28-11-35-08\",\n \"type\":\"Link\",\n \"linkType\":\"Environment\"\n }\n }\n ],\n \"preview_api_key\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"PreviewApiKey\",\n \"id\":\"1YsyWIrKbsWrbImKsd9Bqq\"\n }\n }\n}\n\n" - } - ] - }, - { - "request": [ - { - "_bodyUsed": false, - "id": "8c65b449-dc76-44a2-8b59-0d0dcc370b15", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox", - "method": "GET", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\n \"name\":\"TypeOne\",\n \"sys\":{\n \"type\":\"Space\",\n \"id\":\"bo6ijs14u5ox\",\n \"version\":7,\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2018-09-17T08:26:06Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2022-12-15T09:11:48Z\",\n \"organization\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Organization\",\n \"id\":\"1kUUWhojvGtUmRyhXfqSwK\"\n }\n }\n }\n}\n\n" - } - ], - "response": [ - { - "_bodyUsed": false, - "id": "8c65b449-dc76-44a2-8b59-0d0dcc370b15", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox", - "method": "GET", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\n \"name\":\"TypeOne\",\n \"sys\":{\n \"type\":\"Space\",\n \"id\":\"bo6ijs14u5ox\",\n \"version\":7,\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2018-09-17T08:26:06Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2022-12-15T09:11:48Z\",\n \"organization\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Organization\",\n \"id\":\"1kUUWhojvGtUmRyhXfqSwK\"\n }\n }\n }\n}\n\n" - } - ] - }, - { - "request": [ - { - "_bodyUsed": false, - "id": "b41964eb-1957-436b-9211-b366dc7960ff", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08", - "method": "GET", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\n \"name\":\"2023-06-28-11-35-08\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-06-28-11-35-08\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:35:09Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:35:09Z\",\n \"aliases\":[]\n }\n}\n\n" - } - ], - "response": [ - { - "_bodyUsed": false, - "id": "b41964eb-1957-436b-9211-b366dc7960ff", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08", - "method": "GET", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\n \"name\":\"2023-06-28-11-35-08\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-06-28-11-35-08\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:35:09Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:35:09Z\",\n \"aliases\":[]\n }\n}\n\n" - } - ] - }, - { - "request": [ - { - "_bodyUsed": false, - "id": "08e47d19-b69c-440a-adfd-a16004a04533", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/locales", - "method": "GET", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"sys\":{\"type\":\"Array\"},\"total\":1,\"skip\":0,\"limit\":100,\"items\":[{\"name\":\"English (United States)\",\"internal_code\":\"en-US\",\"code\":\"en-US\",\"fallbackCode\":null,\"default\":true,\"contentManagementApi\":true,\"contentDeliveryApi\":true,\"optional\":false,\"sys\":{\"type\":\"Locale\",\"id\":\"1VDLlb9oKX4EE2oI6p9kMa\",\"version\":1,\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"environment\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Environment\",\"id\":\"2023-06-28-11-35-08\",\"uuid\":\"ddefb40d-4099-450d-8d99-49c07db971ab\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"createdAt\":\"2023-06-28T11:35:09Z\",\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedAt\":\"2023-06-28T11:35:09Z\"}}]}\n" - } - ], - "response": [ - { - "_bodyUsed": false, - "id": "08e47d19-b69c-440a-adfd-a16004a04533", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/locales", - "method": "GET", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"sys\":{\"type\":\"Array\"},\"total\":1,\"skip\":0,\"limit\":100,\"items\":[{\"name\":\"English (United States)\",\"internal_code\":\"en-US\",\"code\":\"en-US\",\"fallbackCode\":null,\"default\":true,\"contentManagementApi\":true,\"contentDeliveryApi\":true,\"optional\":false,\"sys\":{\"type\":\"Locale\",\"id\":\"1VDLlb9oKX4EE2oI6p9kMa\",\"version\":1,\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"environment\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Environment\",\"id\":\"2023-06-28-11-35-08\",\"uuid\":\"ddefb40d-4099-450d-8d99-49c07db971ab\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"createdAt\":\"2023-06-28T11:35:09Z\",\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedAt\":\"2023-06-28T11:35:09Z\"}}]}\n" - } - ] - }, - { - "request": [ - { - "_bodyUsed": false, - "id": "5ebef955-cc3c-4a1b-95f0-85be717fecff", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/content_types/appliedMigrations", - "method": "GET", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"appliedMigrations\",\"type\":\"ContentType\",\"createdAt\":\"2023-06-02T08:50:44.787Z\",\"updatedAt\":\"2023-06-05T14:20:22.754Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"publishedVersion\":3,\"publishedAt\":\"2023-06-05T14:20:22.754Z\",\"firstPublishedAt\":\"2023-06-02T08:50:45.349Z\",\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":2,\"version\":4,\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}}},\"displayField\":\"timestamp\",\"name\":\"Applied migrations\",\"description\":\"\",\"fields\":[{\"id\":\"timestamp\",\"name\":\"Timestamp\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"name\",\"name\":\"Name\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"batch\",\"name\":\"Batch number\",\"type\":\"Integer\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" - } - ], - "response": [ - { - "_bodyUsed": false, - "id": "5ebef955-cc3c-4a1b-95f0-85be717fecff", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/content_types/appliedMigrations", - "method": "GET", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"appliedMigrations\",\"type\":\"ContentType\",\"createdAt\":\"2023-06-02T08:50:44.787Z\",\"updatedAt\":\"2023-06-05T14:20:22.754Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"publishedVersion\":3,\"publishedAt\":\"2023-06-05T14:20:22.754Z\",\"firstPublishedAt\":\"2023-06-02T08:50:45.349Z\",\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":2,\"version\":4,\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}}},\"displayField\":\"timestamp\",\"name\":\"Applied migrations\",\"description\":\"\",\"fields\":[{\"id\":\"timestamp\",\"name\":\"Timestamp\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"name\",\"name\":\"Name\",\"type\":\"Symbol\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"batch\",\"name\":\"Batch number\",\"type\":\"Integer\",\"localized\":false,\"required\":true,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" - } - ] - }, - { - "request": [ - { - "_bodyUsed": false, - "id": "365d4070-633f-472e-a15e-ea2f7a436ade", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/entries?content_type=appliedMigrations&limit=1000", - "method": "GET", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"sys\":{\"type\":\"Array\"},\"total\":2,\"skip\":0,\"limit\":1000,\"items\":[{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"5UALu1mPBVs3arGpz6BQOS\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:13.646Z\",\"updatedAt\":\"2023-06-26T13:47:13.646Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}},{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"6iq3xP0EsGS9NzJoWvyblp\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:12.064Z\",\"updatedAt\":\"2023-06-26T13:47:12.064Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}}]}\n" - } - ], - "response": [ - { - "_bodyUsed": false, - "id": "365d4070-633f-472e-a15e-ea2f7a436ade", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/entries?content_type=appliedMigrations&limit=1000", - "method": "GET", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"sys\":{\"type\":\"Array\"},\"total\":2,\"skip\":0,\"limit\":1000,\"items\":[{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"5UALu1mPBVs3arGpz6BQOS\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:13.646Z\",\"updatedAt\":\"2023-06-26T13:47:13.646Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}},{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"6iq3xP0EsGS9NzJoWvyblp\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:12.064Z\",\"updatedAt\":\"2023-06-26T13:47:12.064Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}}]}\n" - } - ] - }, - { - "request": [ - { - "_bodyUsed": false, - "id": "e561eb47-4bd5-4ef7-b63d-88cf22d97726", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/content_types?limit=100&order=sys.createdAt&sys.id[in]=testContentType&skip=0", - "method": "GET", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"sys\":{\"type\":\"Array\"},\"total\":0,\"skip\":0,\"limit\":100,\"items\":[]}\n" - } - ], - "response": [ - { - "_bodyUsed": false, - "id": "e561eb47-4bd5-4ef7-b63d-88cf22d97726", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/content_types?limit=100&order=sys.createdAt&sys.id[in]=testContentType&skip=0", - "method": "GET", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"sys\":{\"type\":\"Array\"},\"total\":0,\"skip\":0,\"limit\":100,\"items\":[]}\n" - } - ] - }, - { - "request": [ - { - "_bodyUsed": false, - "id": "a0ea8f0a-f751-4ca0-ad5e-79df3515af7f", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/locales?limit=100&order=sys.createdAt&skip=0", - "method": "GET", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"sys\":{\"type\":\"Array\"},\"total\":1,\"skip\":0,\"limit\":100,\"items\":[{\"name\":\"English (United States)\",\"internal_code\":\"en-US\",\"code\":\"en-US\",\"fallbackCode\":null,\"default\":true,\"contentManagementApi\":true,\"contentDeliveryApi\":true,\"optional\":false,\"sys\":{\"type\":\"Locale\",\"id\":\"1VDLlb9oKX4EE2oI6p9kMa\",\"version\":1,\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"environment\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Environment\",\"id\":\"2023-06-28-11-35-08\",\"uuid\":\"ddefb40d-4099-450d-8d99-49c07db971ab\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"createdAt\":\"2023-06-28T11:35:09Z\",\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedAt\":\"2023-06-28T11:35:09Z\"}}]}\n" - } - ], - "response": [ - { - "_bodyUsed": false, - "id": "a0ea8f0a-f751-4ca0-ad5e-79df3515af7f", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/locales?limit=100&order=sys.createdAt&skip=0", - "method": "GET", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"sys\":{\"type\":\"Array\"},\"total\":1,\"skip\":0,\"limit\":100,\"items\":[{\"name\":\"English (United States)\",\"internal_code\":\"en-US\",\"code\":\"en-US\",\"fallbackCode\":null,\"default\":true,\"contentManagementApi\":true,\"contentDeliveryApi\":true,\"optional\":false,\"sys\":{\"type\":\"Locale\",\"id\":\"1VDLlb9oKX4EE2oI6p9kMa\",\"version\":1,\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"environment\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Environment\",\"id\":\"2023-06-28-11-35-08\",\"uuid\":\"ddefb40d-4099-450d-8d99-49c07db971ab\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"createdAt\":\"2023-06-28T11:35:09Z\",\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedAt\":\"2023-06-28T11:35:09Z\"}}]}\n" - } - ] - }, - { - "request": [ - { - "_bodyUsed": false, - "id": "b47a6409-6e98-4cff-879f-b57d04557735", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/content_types/testContentType", - "method": "PUT", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 201, - "statusText": "Created", - "headers": {}, - "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"testContentType\",\"type\":\"ContentType\",\"createdAt\":\"2023-06-28T11:35:12.987Z\",\"updatedAt\":\"2023-06-28T11:35:12.987Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1},\"displayField\":\"testContentId\",\"name\":\"Test content type\",\"description\":\"\",\"fields\":[{\"id\":\"testContentId\",\"name\":\"test content id\",\"type\":\"Symbol\",\"localized\":false,\"required\":false,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" - } - ], - "response": [ - { - "_bodyUsed": false, - "id": "b47a6409-6e98-4cff-879f-b57d04557735", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/content_types/testContentType", - "method": "PUT", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 201, - "statusText": "Created", - "headers": {}, - "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"testContentType\",\"type\":\"ContentType\",\"createdAt\":\"2023-06-28T11:35:12.987Z\",\"updatedAt\":\"2023-06-28T11:35:12.987Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1},\"displayField\":\"testContentId\",\"name\":\"Test content type\",\"description\":\"\",\"fields\":[{\"id\":\"testContentId\",\"name\":\"test content id\",\"type\":\"Symbol\",\"localized\":false,\"required\":false,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" - } - ] - }, - { - "request": [ - { - "_bodyUsed": false, - "id": "8511b7a4-f2a9-4e63-bc3d-5e0ddd58922b", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/content_types/testContentType/published", - "method": "PUT", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"testContentType\",\"type\":\"ContentType\",\"createdAt\":\"2023-06-28T11:35:12.987Z\",\"updatedAt\":\"2023-06-28T11:35:13.333Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":1,\"version\":2,\"firstPublishedAt\":\"2023-06-28T11:35:13.333Z\",\"publishedAt\":\"2023-06-28T11:35:13.333Z\",\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedVersion\":1},\"displayField\":\"testContentId\",\"name\":\"Test content type\",\"description\":\"\",\"fields\":[{\"id\":\"testContentId\",\"name\":\"test content id\",\"type\":\"Symbol\",\"localized\":false,\"required\":false,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" - } - ], - "response": [ - { - "_bodyUsed": false, - "id": "8511b7a4-f2a9-4e63-bc3d-5e0ddd58922b", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/content_types/testContentType/published", - "method": "PUT", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"testContentType\",\"type\":\"ContentType\",\"createdAt\":\"2023-06-28T11:35:12.987Z\",\"updatedAt\":\"2023-06-28T11:35:13.333Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":1,\"version\":2,\"firstPublishedAt\":\"2023-06-28T11:35:13.333Z\",\"publishedAt\":\"2023-06-28T11:35:13.333Z\",\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedVersion\":1},\"displayField\":\"testContentId\",\"name\":\"Test content type\",\"description\":\"\",\"fields\":[{\"id\":\"testContentId\",\"name\":\"test content id\",\"type\":\"Symbol\",\"localized\":false,\"required\":false,\"validations\":[],\"disabled\":false,\"omitted\":false}]}\n" - } - ] - }, - { - "request": [ - { - "_bodyUsed": false, - "id": "67fc175a-b526-452d-9a54-0b2ff02d8220", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/entries?content_type=appliedMigrations&limit=1000", - "method": "GET", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"sys\":{\"type\":\"Array\"},\"total\":2,\"skip\":0,\"limit\":1000,\"items\":[{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"5UALu1mPBVs3arGpz6BQOS\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:13.646Z\",\"updatedAt\":\"2023-06-26T13:47:13.646Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}},{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"6iq3xP0EsGS9NzJoWvyblp\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:12.064Z\",\"updatedAt\":\"2023-06-26T13:47:12.064Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}}]}\n" - } - ], - "response": [ - { - "_bodyUsed": false, - "id": "67fc175a-b526-452d-9a54-0b2ff02d8220", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/entries?content_type=appliedMigrations&limit=1000", - "method": "GET", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"sys\":{\"type\":\"Array\"},\"total\":2,\"skip\":0,\"limit\":1000,\"items\":[{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"5UALu1mPBVs3arGpz6BQOS\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:13.646Z\",\"updatedAt\":\"2023-06-26T13:47:13.646Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}},{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"6iq3xP0EsGS9NzJoWvyblp\",\"type\":\"Entry\",\"createdAt\":\"2023-06-26T13:47:12.064Z\",\"updatedAt\":\"2023-06-26T13:47:12.064Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230602075003097 (1)\"},\"name\":{\"en-US\":\"inititial-migration\"},\"batch\":{\"en-US\":1}}}]}\n" - } - ] - }, - { - "request": [ - { - "_bodyUsed": false, - "id": "0d39b744-d4a2-4cdf-83f4-3dd333cbc6ff", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/entries", - "method": "POST", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 201, - "statusText": "Created", - "headers": {}, - "body": "{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"P9aHLvrSfpLvqzb7o280G\",\"type\":\"Entry\",\"createdAt\":\"2023-06-28T11:35:14.661Z\",\"updatedAt\":\"2023-06-28T11:35:14.661Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230609122547608\"},\"name\":{\"en-US\":\"new-migration\"},\"batch\":{\"en-US\":2}}}\n" - } - ], - "response": [ - { - "_bodyUsed": false, - "id": "0d39b744-d4a2-4cdf-83f4-3dd333cbc6ff", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/entries", - "method": "POST", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 201, - "statusText": "Created", - "headers": {}, - "body": "{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"P9aHLvrSfpLvqzb7o280G\",\"type\":\"Entry\",\"createdAt\":\"2023-06-28T11:35:14.661Z\",\"updatedAt\":\"2023-06-28T11:35:14.661Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":0,\"version\":1,\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230609122547608\"},\"name\":{\"en-US\":\"new-migration\"},\"batch\":{\"en-US\":2}}}\n" - } - ] - }, - { - "request": [ - { - "_bodyUsed": false, - "id": "213af63a-1f1d-4f83-b73c-918370c5dc1c", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/entries/P9aHLvrSfpLvqzb7o280G/published", - "method": "PUT", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"P9aHLvrSfpLvqzb7o280G\",\"type\":\"Entry\",\"createdAt\":\"2023-06-28T11:35:14.661Z\",\"updatedAt\":\"2023-06-28T11:35:15.127Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"publishedVersion\":1,\"publishedAt\":\"2023-06-28T11:35:15.127Z\",\"firstPublishedAt\":\"2023-06-28T11:35:15.127Z\",\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":1,\"version\":2,\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230609122547608\"},\"name\":{\"en-US\":\"new-migration\"},\"batch\":{\"en-US\":2}}}\n" - } - ], - "response": [ - { - "_bodyUsed": false, - "id": "213af63a-1f1d-4f83-b73c-918370c5dc1c", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-35-08/entries/P9aHLvrSfpLvqzb7o280G/published", - "method": "PUT", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\"metadata\":{\"tags\":[]},\"sys\":{\"space\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"Space\",\"id\":\"bo6ijs14u5ox\"}},\"id\":\"P9aHLvrSfpLvqzb7o280G\",\"type\":\"Entry\",\"createdAt\":\"2023-06-28T11:35:14.661Z\",\"updatedAt\":\"2023-06-28T11:35:15.127Z\",\"environment\":{\"sys\":{\"id\":\"2023-06-28-11-35-08\",\"type\":\"Link\",\"linkType\":\"Environment\"}},\"publishedVersion\":1,\"publishedAt\":\"2023-06-28T11:35:15.127Z\",\"firstPublishedAt\":\"2023-06-28T11:35:15.127Z\",\"createdBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"updatedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"publishedCounter\":1,\"version\":2,\"publishedBy\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"User\",\"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"}},\"automationTags\":[],\"contentType\":{\"sys\":{\"type\":\"Link\",\"linkType\":\"ContentType\",\"id\":\"appliedMigrations\"}}},\"fields\":{\"timestamp\":{\"en-US\":\"20230609122547608\"},\"name\":{\"en-US\":\"new-migration\"},\"batch\":{\"en-US\":2}}}\n" - } - ] - }, - { - "request": [ - { - "_bodyUsed": false, - "id": "325bf698-c653-485d-8b43-be9eabba0385", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master", - "method": "GET", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\n \"sys\":{\n \"type\":\"EnvironmentAlias\",\n \"id\":\"master\",\n \"version\":16,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-05T12:35:02Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:50Z\"\n },\n \"environment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\"\n }\n }\n}\n\n" - } - ], - "response": [ - { - "_bodyUsed": false, - "id": "325bf698-c653-485d-8b43-be9eabba0385", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master", - "method": "GET", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\n \"sys\":{\n \"type\":\"EnvironmentAlias\",\n \"id\":\"master\",\n \"version\":16,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-05T12:35:02Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:50Z\"\n },\n \"environment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\"\n }\n }\n}\n\n" - } - ] - }, - { - "request": [ - { - "_bodyUsed": false, - "id": "8167a755-0632-4844-af70-68648a070854", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master", - "method": "GET", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\n \"sys\":{\n \"type\":\"EnvironmentAlias\",\n \"id\":\"master\",\n \"version\":16,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-05T12:35:02Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:50Z\"\n },\n \"environment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\"\n }\n }\n}\n\n" - } - ], - "response": [ - { - "_bodyUsed": false, - "id": "8167a755-0632-4844-af70-68648a070854", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master", - "method": "GET", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\n \"sys\":{\n \"type\":\"EnvironmentAlias\",\n \"id\":\"master\",\n \"version\":16,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-05T12:35:02Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:50Z\"\n },\n \"environment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\"\n }\n }\n}\n\n" - } - ] - }, - { - "request": [ - { - "_bodyUsed": false, - "id": "940c76a8-b061-4c0a-a62b-c55782adebff", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master", - "method": "PUT", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\n \"sys\":{\n \"type\":\"EnvironmentAlias\",\n \"id\":\"master\",\n \"version\":17,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-05T12:35:02Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:35:16Z\"\n },\n \"environment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-06-28-11-35-08\"\n }\n }\n}\n\n" - } - ], - "response": [ - { - "_bodyUsed": false, - "id": "940c76a8-b061-4c0a-a62b-c55782adebff", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environment_aliases/master", - "method": "PUT", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\n \"sys\":{\n \"type\":\"EnvironmentAlias\",\n \"id\":\"master\",\n \"version\":17,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-05T12:35:02Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:35:16Z\"\n },\n \"environment\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Environment\",\n \"id\":\"2023-06-28-11-35-08\"\n }\n }\n}\n\n" - } - ] - }, - { - "request": [ - { - "_bodyUsed": false, - "id": "c685f24a-6c53-4f02-8d2f-71f1b054e920", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-33-42", - "method": "GET", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\n \"name\":\"2023-06-28-11-33-42\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:33:43Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:43Z\",\n \"aliases\":[]\n }\n}\n\n" - } - ], - "response": [ - { - "_bodyUsed": false, - "id": "c685f24a-6c53-4f02-8d2f-71f1b054e920", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-33-42", - "method": "GET", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 200, - "statusText": "OK", - "headers": {}, - "body": "{\n \"name\":\"2023-06-28-11-33-42\",\n \"sys\":{\n \"type\":\"Environment\",\n \"id\":\"2023-06-28-11-33-42\",\n \"version\":3,\n \"space\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Space\",\n \"id\":\"bo6ijs14u5ox\"\n }\n },\n \"status\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"Status\",\n \"id\":\"ready\"\n }\n },\n \"createdBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"createdAt\":\"2023-06-28T11:33:43Z\",\n \"updatedBy\":{\n \"sys\":{\n \"type\":\"Link\",\n \"linkType\":\"User\",\n \"id\":\"7fkm1bGT9u8nLkbD7Uuqsr\"\n }\n },\n \"updatedAt\":\"2023-06-28T11:33:43Z\",\n \"aliases\":[]\n }\n}\n\n" - } - ] - }, - { - "request": [ - { - "_bodyUsed": false, - "id": "0115a323-ff93-4404-9a0a-8ab0801abf87", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-33-42", - "method": "DELETE", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 204, - "statusText": "No Content", - "headers": {}, - "body": "" - } - ], - "response": [ - { - "_bodyUsed": false, - "id": "0115a323-ff93-4404-9a0a-8ab0801abf87", - "url": "https://api.contentful.com/spaces/bo6ijs14u5ox/environments/2023-06-28-11-33-42", - "method": "DELETE", - "headers": {}, - "credentials": "same-origin", - "_body": {}, - "cache": "default", - "destination": "", - "integrity": "", - "keepalive": false, - "mode": "cors", - "priority": "auto", - "redirect": "follow", - "referrer": "", - "referrerPolicy": "no-referrer", - "cookies": {} - }, - { - "status": 204, - "statusText": "No Content", - "headers": {}, - "body": "" - } - ] - } -] \ No newline at end of file diff --git a/mocks/contentful/handlers/migrate_old/uniqueRequests.txt b/mocks/contentful/handlers/migrate_old/uniqueRequests.txt deleted file mode 100644 index 437d29b..0000000 --- a/mocks/contentful/handlers/migrate_old/uniqueRequests.txt +++ /dev/null @@ -1,6 +0,0 @@ - - -GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/environment_aliases/master -PUT request to https://api.contentful.com/spaces/TEST_SPACE_ID/environment_aliases/master -GET request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-29-08-45-03 -DELETE request to https://api.contentful.com/spaces/TEST_SPACE_ID/environments/2023-06-29-08-45-03 \ No newline at end of file