diff --git a/bin/.eslintrc.json b/bin/.eslintrc.json new file mode 100644 index 0000000..e62b285 --- /dev/null +++ b/bin/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "node/no-unpublished-require": 0 + } +} \ No newline at end of file diff --git a/bin/validate_spec.js b/bin/validate_spec.js index 743a7ca..f9f4d83 100755 --- a/bin/validate_spec.js +++ b/bin/validate_spec.js @@ -1,4 +1,3 @@ -#!/usr/bin/env node const path = require('path') @@ -7,8 +6,8 @@ if (process.argv.length > 2) { arg = path.resolve(process.argv[2]) } -var OpenAPISchemaValidator = require('openapi-schema-validator').default -var validator = new OpenAPISchemaValidator({ +const OpenAPISchemaValidator = require('openapi-schema-validator').default +const validator = new OpenAPISchemaValidator({ version: 3 }) @@ -17,5 +16,6 @@ const result = validator.validate(apiDoc) if (result.errors.length > 0) { console.log(result) + // eslint-disable-next-line no-process-exit process.exit(1) } diff --git a/e2e/e2e.js b/e2e/e2e.js index bd122ee..b7ca481 100644 --- a/e2e/e2e.js +++ b/e2e/e2e.js @@ -1,5 +1,5 @@ /* -Copyright 2020 Adobe. All rights reserved. +Copyright 2023 Adobe. All rights reserved. This file is licensed to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 @@ -41,6 +41,7 @@ const workspaceDescription = 'WDESC' + ts const modifiedWorkspaceDescription = 'mod' + ts const credentialNameAdobeId = 'cred-oauth' + ts const credentialNameEntp = 'cred-entp' + ts +const credentialNameOAuthS2S = 'cred-oauths2s' + ts beforeAll(async () => { sdkClient = await sdk.init(accessToken, apiKey, env) @@ -96,6 +97,8 @@ describe('organizations', () => { }) describe('create, edit, get', () => { + let fireflyAppId + test('test createFireflyProject API', async () => { expect(orgId).toBeDefined() @@ -186,6 +189,16 @@ describe('create, edit, get', () => { expect(res.body.appId).toBeTruthy() expect(res.body.id).toEqual(fireflyProjectId) expect(res.body.description).toEqual(modifiedProjectDescription) + fireflyAppId = res.body.appId + }) + + test('getApplicationExtensions', async () => { + expect(orgId).toBeDefined() + expect(fireflyAppId).toBeDefined() + + const res = await sdkClient.getApplicationExtensions(orgId, fireflyAppId) + expect(res.ok).toBe(true) + expect(res.status).toBe(200) }) test('test createWorkspace API for default project type - should fail because only one is allowed for a default project', async () => { @@ -241,6 +254,35 @@ describe('create, edit, get', () => { console.log('Workspace created with Id: ' + fireflyWorkspaceId) }) + test('test update endpoints for workspace API', async () => { + expect(orgId).toBeDefined() + expect(fireflyProjectId).toBeDefined() + expect(fireflyWorkspaceId).toBeDefined() + + const endpoints = { + endpoints: { + 'dx/excshell/1': { + view: { + href: 'https://teste2e.adobeio-static.net/updatedapp-0.0.1/index.html' + } + } + } + } + const res = await sdkClient.updateEndPointsInWorkspace(orgId, fireflyProjectId, fireflyWorkspaceId, endpoints) + expect(res.ok).toBe(true) + expect(res.status).toBe(200) + }) + + test('test get endpoints for workspace API', async () => { + expect(orgId).toBeDefined() + expect(fireflyProjectId).toBeDefined() + expect(fireflyWorkspaceId).toBeDefined() + + const res = await sdkClient.getEndPointsInWorkspace(orgId, fireflyProjectId, fireflyWorkspaceId) + expect(res.ok).toBe(true) + expect(res.status).toBe(200) + }) + test('test getWorkspacesForProject API for firefly project type', async () => { expect(orgId).toBeDefined() expect(fireflyProjectId).toBeDefined() @@ -590,33 +632,35 @@ describe('Workspace credential test', () => { }) // atlas policy apis - commented out because return 405 method not allowed ? - tracked internally at IOC-4290 - // test('test getAtlasApplicationPolicy API', async () => { - // expect(credentialId).toBeDefined() // if not, createEnterpriseIntegration test failed - // expect(orgId).toBeDefined() - // const res = await sdkClient.getAtlasApplicationPolicy(orgId, credentialId) - // expect(res.ok).toBe(true) - // expect(res.status).toBe(200) - // expect(typeof res.body).toBe('object') - // expect(res.body.orgCode).toEqual(imsOrgId) - // expect(res.body.appCode).toBeDefined() - // expect(res.body.appPolicyCode).toBeDefined() - // expect(res.body.quotaPolicyCode).toBeDefined() - // }) - - // test('test getAtlasQuotaUsage API', async () => { - // expect(credentialId).toBeDefined() // if not, createEnterpriseIntegration test failed - // expect(orgId).toBeDefined() - // const res = await sdkClient.getAtlasQuotaUsage(orgId, credentialId) - // expect(res.ok).toBe(true) - // expect(res.status).toBe(200) - // expect(typeof res.body).toBe('object') - // expect(res.body.orgCode).toEqual(imsOrgId) - // expect(res.body.planCode).toBeDefined() - // expect(res.body.policyType).toBeDefined() - // expect(res.body.policyCode).toBeDefined() - // expect(res.body.availableQuantity).toBeDefined() - // expect(res.body.consumedQuantity).toBeDefined() - // }) + // eslint-disable-next-line jest/no-disabled-tests + test.skip('test getAtlasApplicationPolicy API', async () => { + expect(credentialId).toBeDefined() // if not, createEnterpriseIntegration test failed + expect(orgId).toBeDefined() + const res = await sdkClient.getAtlasApplicationPolicy(orgId, credentialId) + expect(res.ok).toBe(true) + expect(res.status).toBe(200) + expect(typeof res.body).toBe('object') + expect(res.body.orgCode).toEqual(imsOrgId) + expect(res.body.appCode).toBeDefined() + expect(res.body.appPolicyCode).toBeDefined() + expect(res.body.quotaPolicyCode).toBeDefined() + }) + + // eslint-disable-next-line jest/no-disabled-tests + test.skip('test getAtlasQuotaUsage API', async () => { + expect(credentialId).toBeDefined() // if not, createEnterpriseIntegration test failed + expect(orgId).toBeDefined() + const res = await sdkClient.getAtlasQuotaUsage(orgId, credentialId) + expect(res.ok).toBe(true) + expect(res.status).toBe(200) + expect(typeof res.body).toBe('object') + expect(res.body.orgCode).toEqual(imsOrgId) + expect(res.body.planCode).toBeDefined() + expect(res.body.policyType).toBeDefined() + expect(res.body.policyCode).toBeDefined() + expect(res.body.availableQuantity).toBeDefined() + expect(res.body.consumedQuantity).toBeDefined() + }) // delete test('test deleteCredential API (integrationType: adobeid)', async () => { @@ -632,84 +676,137 @@ describe('Workspace credential test', () => { }) }) - // missing analytics credentials tests -}) + describe('OAuth Server-to-Server credentials', () => { + let credentialId, fromCredentialId -describe('Extension API tests', () => { - test('test get ALL ExtensionPoints API', async () => { - expect(orgId).toBeDefined() - const res = await sdkClient.getAllExtensionPoints(orgId, 'firefly') - expect(res.ok).toBe(true) - expect(res.status).toBe(200) - }) - test('test update endpoints for workspace API', async () => { - expect(orgId).toBeDefined() - expect(projectId).toBeDefined() - expect(workspaceId).toBeDefined() - const endpoints = { - endpoints: { - 'dx/excshell/1': { - view: { - href: 'https://teste2e.adobeio-static.net/updatedapp-0.0.1/index.html' - } + test('test createOAuthServerToServerCredential API', async () => { + expect(orgId).toBeDefined() + expect(projectId).toBeDefined() + expect(workspaceId).toBeDefined() + + const res = await sdkClient.createOAuthServerToServerCredential(orgId, projectId, workspaceId, credentialNameOAuthS2S, 'just a desc') + expect(typeof (res.body)).toBe('object') + expect(Object.keys(res.body)).toEqual(expect.arrayContaining(['id', 'apiKey', 'orgId'])) + credentialId = res.body.id + console.log('OAuth-Server-to-Server integration created with Id: ', credentialId) + }) + + test('test getCredentials API (service)', async () => { + expect(credentialId).toBeDefined() // if not, createOAuthServerToServerCredential test failed + expect(orgId).toBeDefined() + expect(projectId).toBeDefined() + expect(workspaceId).toBeDefined() + + const res = await sdkClient.getCredentials(orgId, projectId, workspaceId) + expect(res.ok).toBe(true) + expect(res.status).toBe(200) + expect(res.statusText).toBe('OK') + expect(Array.isArray(res.body)).toBe(true) + expect(res.body[0].id_workspace).toEqual(workspaceId) + expect(res.body[0].id_integration).toEqual(credentialId) + fromCredentialId = res.body[0].id_integration + expect(res.body[0].flow_type).toEqual('entp') + expect(res.body[0].integration_type).toEqual('oauth_server_to_server') + }) + + test('getSDKProperties', async () => { + expect(orgId).toBeDefined() + expect(fromCredentialId).toBeDefined() + + const anyValidSDKCodeIsFine = 'AdobeAnalyticsSDK' + const res = await sdkClient.getSDKProperties(orgId, fromCredentialId, anyValidSDKCodeIsFine) + expect(res.ok).toBe(true) + expect(res.status).toBe(200) + expect(res.statusText).toBe('OK') + }) + + test('test subscribeOAuthServerToServerIntegrationToServices API (AdobeIOManagementAPISDK)', async () => { + expect(credentialId).toBeDefined() // if not, createOAuthServerToServerCredential test failed + expect(orgId).toBeDefined() + + const sdkCode = findSDKCode('I/O Management API') + const res = await sdkClient.subscribeOAuthServerToServerIntegrationToServices(orgId, credentialId, [ + { + sdkCode, + licenseConfigs: null, + roles: null } - } - } - const res = await sdkClient.updateEndPointsInWorkspace(orgId, projectId, workspaceId, endpoints) - expect(res.ok).toBe(true) - expect(res.status).toBe(200) - }) - test('test get endpoints for workspace API', async () => { - expect(orgId).toBeDefined() - expect(projectId).toBeDefined() - expect(workspaceId).toBeDefined() - const res = await sdkClient.getEndPointsInWorkspace(orgId, projectId, workspaceId) - expect(res.ok).toBe(true) - expect(res.status).toBe(200) - }) -}) + ]) + expect(res.ok).toBe(true) + expect(res.status).toBe(200) + expect(res.statusText).toBe('OK') + expect(typeof (res.body)).toBe('object') + expect(res.body).toEqual({ sdkList: [sdkCode] }) + }) -describe('delete workspace/project', () => { - test('test deleteWorkspace API', async () => { - expect(orgId).toBeDefined() - expect(projectId).toBeDefined() - expect(workspaceId).toBeDefined() + test('test downloadWorkspaceJson API', async () => { + expect(credentialId).toBeDefined() // if not, createOAuthServerToServerCredential test failed + expect(orgId).toBeDefined() + expect(projectId).toBeDefined() + expect(workspaceId).toBeDefined() - const res = await sdkClient.deleteWorkspace(orgId, projectId, workspaceId) - expect(res.ok).toBe(true) - expect(res.status).toBe(200) - expect(res.statusText).toBe('OK') - }) + const res = await sdkClient.downloadWorkspaceJson(orgId, projectId, workspaceId) + expect(res.ok).toBe(true) + expect(res.status).toBe(200) + expect(res.statusText).toBe('OK') + expect(typeof (res.body)).toBe('object') + expect(res.body.project.id).toEqual(projectId) + expect(res.body.project.workspace.id).toEqual(workspaceId) + expect(Array.isArray(res.body.project.workspace.details.credentials)).toBe(true) + expect(res.body.project.workspace.details.credentials[0].id).toEqual(credentialId) + expect(res.body.project.workspace.details.credentials[0].integration_type).toEqual('oauth_server_to_server') + expect(Array.isArray(res.body.project.workspace.details.services)).toBe(true) + expect(typeof (res.body.project.workspace.details.runtime)).toBe('object') + }) - test('test deleteWorkspace API for firefly project', async () => { - expect(orgId).toBeDefined() - expect(fireflyProjectId).toBeDefined() - expect(fireflyWorkspaceId).toBeDefined() + // organization integration APIs on workspace credentials - const res = await sdkClient.deleteWorkspace(orgId, fireflyProjectId, fireflyWorkspaceId) - expect(res.ok).toBe(true) - expect(res.status).toBe(200) - expect(res.statusText).toBe('OK') - }) + test('test getIntegration API', async () => { + expect(credentialId).toBeDefined() // if not, createOAuthServerToServerCredential test failed + expect(orgId).toBeDefined() + const res = await sdkClient.getIntegration(orgId, credentialId) + expect(res.ok).toBe(true) + expect(res.status).toBe(200) + expect(res.body.id).toEqual(credentialId) + expect(res.body.orgId).toEqual(orgId) + expect(res.body.name).toEqual(credentialNameOAuthS2S) + expect(res.body.type).toEqual('entp') + }) - test('test deleteProject API (default type)', async () => { - expect(orgId).toBeDefined() - expect(projectId).toBeDefined() - expect(workspaceId).toBeDefined() + test('test getIntegrationSecrets API', async () => { + expect(credentialId).toBeDefined() // if not, createOAuthServerToServerCredential test failed + expect(orgId).toBeDefined() + const res = await sdkClient.getIntegrationSecrets(orgId, credentialId) + expect(res.ok).toBe(true) + expect(res.status).toBe(200) + expect(typeof res.body).toBe('object') + expect(res.body.client_id).toBeDefined() + expect(res.body.client_secrets).toBeDefined() + }) - const res = await sdkClient.deleteProject(orgId, projectId) - expect(res.ok).toBe(true) - expect(res.status).toBe(200) - expect(res.statusText).toBe('OK') + // delete + test('test deleteCredential API (integrationType: oauth_server_to_server)', async () => { + expect(credentialId).toBeDefined() // if not, createOAuthServerToServerCredential test failed + expect(orgId).toBeDefined() + expect(projectId).toBeDefined() + expect(workspaceId).toBeDefined() + + const res = await sdkClient.deleteCredentialById(orgId, projectId, workspaceId, credentialId) + expect(res.ok).toBe(true) + expect(res.status).toBe(200) + expect(res.statusText).toBe('OK') + }) }) - test('test deleteProject API (firefly project template)', async () => { - expect(orgId).toBeDefined() - expect(fireflyProjectId).toBeDefined() - expect(workspaceId).toBeDefined() + // missing analytics credentials tests +}) - // TODO: delete is not supported yet - await expect(sdkClient.deleteProject(orgId, fireflyProjectId)).rejects.toThrowError('[CoreConsoleAPISDK:ERROR_DELETE_PROJECT] 400 - Bad Request ("Project Firefly can not be deleted")') +describe('Extension API tests', () => { + test('getAllExtensionPoints', async () => { + expect(orgId).toBeDefined() + const res = await sdkClient.getAllExtensionPoints(orgId, 'firefly') + expect(res.ok).toBe(true) + expect(res.status).toBe(200) }) }) @@ -736,143 +833,145 @@ describe('dev terms', () => { expect(res.statusText).toBe('OK') }) }) + // Test organization integrations (similar to workspace credentials), commented out // because delete integration is failing.. - tracked internally at IOC-4291 -// describe('Organization Integration tests', () => { -// describe('Enterprise integration', () => { -// let integrationId - -// test('test createEnterpriseIntegration API', async () => { -// expect(orgId).toBeDefined() - -// const keyPair = cert.generate('aio-lib-console-e2e', 365, { country: 'US', state: 'CA', locality: 'SF', organization: 'Adobe', unit: 'AdobeIO' }) -// const certFile = tmp.fileSync({ postfix: '.crt' }) -// fs.writeFileSync(certFile.fd, keyPair.cert) -// const res = await sdkClient.createEnterpriseIntegration(orgId, fs.createReadStream(certFile.name), integrationNameEntp, 'just a desc') -// expect(typeof (res.body)).toBe('object') -// expect(Object.keys(res.body)).toEqual(expect.arrayContaining(['id', 'apiKey', 'orgId'])) -// integrationId = res.body.id -// console.log('Entp integration created with Id: ', integrationId) -// }) - -// test('test getIntegrationsForOrg API (service)', async () => { -// expect(integrationId).toBeDefined() // if not, createEnterpriseIntegration test failed -// expect(orgId).toBeDefined() - -// const res = await sdkClient.getIntegrationsForOrg(orgId) -// expect(res.ok).toBe(true) -// expect(res.status).toBe(200) -// expect(res.statusText).toBe('OK') -// expect(Array.isArray(res.body.content)).toBe(true) -// expect(String(res.body.content[0].orgId)).toEqual(orgId) -// expect(String(res.body.content[0].id)).toEqual(integrationId) -// expect(res.body.content[0].type).toEqual('entp') -// expect(res.body.content[0].name).toEqual(integrationNameEntp) -// }) - -// test('test subscribeIntegrationToServices API (AdobeIOManagementAPISDK)', async () => { -// expect(integrationId).toBeDefined() // if not, createEnterpriseIntegration test failed -// expect(orgId).toBeDefined() -// expect(projectId).toBeDefined() -// expect(workspaceId).toBeDefined() - -// const sdkCode = findSDKCode('I/O Management API') -// const res = await sdkClient.subscribeEnterpriseIntegrationToServices(orgId, integrationId, [ -// { -// sdkCode, -// licenseConfigs: null, -// roles: null -// } -// ]) -// expect(res.ok).toBe(true) -// expect(res.status).toBe(200) -// expect(res.statusText).toBe('OK') -// expect(typeof (res.body)).toBe('object') -// expect(res.body).toEqual({ sdkList: [sdkCode] }) -// }) - -// // add those like in credentials (refactor) -// // - get integration / getIntegration secrets -// // - get bindings / upload bindings / delete binding -// // - atlas quota - -// test('test deleteIntegration API (integrationType: entp)', async () => { -// expect(integrationId).toBeDefined() // if not, createEnterpriseIntegration test failed -// expect(orgId).toBeDefined() - -// const res = await sdkClient.deleteIntegration(orgId, integrationId) -// expect(res.ok).toBe(true) -// expect(res.status).toBe(200) -// expect(res.statusText).toBe('OK') -// }) -// }) - -// describe.skip('AdobeID integration', () => { -// let integrationId - -// test('test createAdobeIdIntegration API', async () => { -// expect(orgId).toBeDefined() - -// const res = await sdkClient.createAdobeIdIntegration(orgId, { name: integrationNameAdobeId, description: 'testing ng console api', platform: 'Web', redirectUriList: ['https://google.com'], defaultRedirectUri: 'https://google.com' }) -// expect(res.ok).toBe(true) -// expect(res.status).toBe(200) -// expect(typeof (res.body)).toBe('object') -// expect(Object.keys(res.body)).toEqual(expect.arrayContaining(['id', 'apiKey', 'orgId'])) -// integrationId = res.body.id -// console.log('OAuth integration created with Id: ', integrationId) -// }) - -// test('test getIntegrationsForOrg API (oauthweb)', async () => { -// expect(integrationId).toBeDefined() // if not, createAdobeIdCredential test failed -// expect(orgId).toBeDefined() - -// const res = await sdkClient.getIntegrationsForOrg(orgId) -// expect(res.ok).toBe(true) -// expect(res.status).toBe(200) -// expect(res.statusText).toBe('OK') -// expect(Array.isArray(res.body.content)).toBe(true) -// expect(String(res.body.content[0].orgId)).toEqual(orgId) -// expect(String(res.body.content[0].id)).toEqual(integrationId) -// expect(res.body.content[0].type).toEqual('adobeid') -// expect(res.body.content[0].name).toEqual(integrationNameAdobeId) -// }) - -// test('test subscribeIntegrationToServices API (Adobe Stock)', async () => { -// expect(integrationId).toBeDefined() // if not, createAdobeIdCredential test failed -// expect(orgId).toBeDefined() - -// const sdkCode = findSDKCode('Adobe Stock') -// const res = await sdkClient.subscribeCredentialToServices(orgId, integrationId, [ -// { -// sdkCode, -// licenseConfigs: null, -// roles: null -// } -// ]) -// expect(res.ok).toBe(true) -// expect(res.status).toBe(200) -// expect(res.statusText).toBe('OK') -// expect(typeof (res.body)).toBe('object') -// expect(res.body).toEqual({ sdkList: [sdkCode] }) -// }) - -// // add those like in credentials (refactor) -// // - get integration / getIntegration secrets -// // - get bindings / upload bindings / delete binding -// // - atlas quota - -// test('test deleteIntegration API (integrationType: adobeid)', async () => { -// expect(integrationId).toBeDefined() // if not, createEnterpriseIntegration test failed -// expect(orgId).toBeDefined() - -// const res = await sdkClient.deleteIntegration(orgId, integrationId) -// expect(res.ok).toBe(true) -// expect(res.status).toBe(200) -// expect(res.statusText).toBe('OK') -// }) -// }) -// }) +// eslint-disable-next-line jest/no-disabled-tests +describe.skip('Organization Integration tests', () => { + describe('Enterprise integration', () => { + let integrationId + + test('test createEnterpriseIntegration API', async () => { + expect(orgId).toBeDefined() + + const keyPair = cert.generate('aio-lib-console-e2e', 365, { country: 'US', state: 'CA', locality: 'SF', organization: 'Adobe', unit: 'AdobeIO' }) + const certFile = tmp.fileSync({ postfix: '.crt' }) + fs.writeFileSync(certFile.fd, keyPair.cert) + const res = await sdkClient.createEnterpriseIntegration(orgId, fs.createReadStream(certFile.name), credentialNameEntp, 'just a desc') + expect(typeof (res.body)).toBe('object') + expect(Object.keys(res.body)).toEqual(expect.arrayContaining(['id', 'apiKey', 'orgId'])) + integrationId = res.body.id + console.log('Entp integration created with Id: ', integrationId) + }) + + test('test getIntegrationsForOrg API (service)', async () => { + expect(integrationId).toBeDefined() // if not, createEnterpriseIntegration test failed + expect(orgId).toBeDefined() + + const res = await sdkClient.getIntegrationsForOrg(orgId) + expect(res.ok).toBe(true) + expect(res.status).toBe(200) + expect(res.statusText).toBe('OK') + expect(Array.isArray(res.body.content)).toBe(true) + expect(String(res.body.content[0].orgId)).toEqual(orgId) + expect(String(res.body.content[0].id)).toEqual(integrationId) + expect(res.body.content[0].type).toEqual('entp') + expect(res.body.content[0].name).toEqual(credentialNameEntp) + }) + + test('test subscribeIntegrationToServices API (AdobeIOManagementAPISDK)', async () => { + expect(integrationId).toBeDefined() // if not, createEnterpriseIntegration test failed + expect(orgId).toBeDefined() + expect(projectId).toBeDefined() + expect(workspaceId).toBeDefined() + + const sdkCode = findSDKCode('I/O Management API') + const res = await sdkClient.subscribeEnterpriseIntegrationToServices(orgId, integrationId, [ + { + sdkCode, + licenseConfigs: null, + roles: null + } + ]) + expect(res.ok).toBe(true) + expect(res.status).toBe(200) + expect(res.statusText).toBe('OK') + expect(typeof (res.body)).toBe('object') + expect(res.body).toEqual({ sdkList: [sdkCode] }) + }) + + // add those like in credentials (refactor) + // - get integration / getIntegration secrets + // - get bindings / upload bindings / delete binding + // - atlas quota + + test('test deleteIntegration API (integrationType: entp)', async () => { + expect(integrationId).toBeDefined() // if not, createEnterpriseIntegration test failed + expect(orgId).toBeDefined() + + const res = await sdkClient.deleteIntegration(orgId, integrationId) + expect(res.ok).toBe(true) + expect(res.status).toBe(200) + expect(res.statusText).toBe('OK') + }) + }) + + describe('AdobeID integration', () => { + let integrationId + + test('test createAdobeIdIntegration API', async () => { + expect(orgId).toBeDefined() + + const res = await sdkClient.createAdobeIdIntegration(orgId, { name: credentialNameAdobeId, description: 'testing ng console api', platform: 'Web', redirectUriList: ['https://google.com'], defaultRedirectUri: 'https://google.com' }) + expect(res.ok).toBe(true) + expect(res.status).toBe(200) + expect(typeof (res.body)).toBe('object') + expect(Object.keys(res.body)).toEqual(expect.arrayContaining(['id', 'apiKey', 'orgId'])) + integrationId = res.body.id + console.log('OAuth integration created with Id: ', integrationId) + }) + + test('test getIntegrationsForOrg API (oauthweb)', async () => { + expect(integrationId).toBeDefined() // if not, createAdobeIdCredential test failed + expect(orgId).toBeDefined() + + const res = await sdkClient.getIntegrationsForOrg(orgId) + expect(res.ok).toBe(true) + expect(res.status).toBe(200) + expect(res.statusText).toBe('OK') + expect(Array.isArray(res.body.content)).toBe(true) + expect(String(res.body.content[0].orgId)).toEqual(orgId) + expect(String(res.body.content[0].id)).toEqual(integrationId) + expect(res.body.content[0].type).toEqual('adobeid') + expect(res.body.content[0].name).toEqual(credentialNameAdobeId) + }) + + test('test subscribeIntegrationToServices API (Adobe Stock)', async () => { + expect(integrationId).toBeDefined() // if not, createAdobeIdCredential test failed + expect(orgId).toBeDefined() + + const sdkCode = findSDKCode('Adobe Stock') + const res = await sdkClient.subscribeIntegrationToServices(orgId, integrationId, [ + { + sdkCode, + licenseConfigs: null, + roles: null + } + ]) + expect(res.ok).toBe(true) + expect(res.status).toBe(200) + expect(res.statusText).toBe('OK') + expect(typeof (res.body)).toBe('object') + expect(res.body).toEqual({ sdkList: [sdkCode] }) + }) + + // add those like in credentials (refactor) + // - get integration / getIntegration secrets + // - get bindings / upload bindings / delete binding + // - atlas quota + + test('test deleteIntegration API (integrationType: adobeid)', async () => { + expect(integrationId).toBeDefined() // if not, createEnterpriseIntegration test failed + expect(orgId).toBeDefined() + + const res = await sdkClient.deleteIntegration(orgId, integrationId) + expect(res.ok).toBe(true) + expect(res.status).toBe(200) + expect(res.statusText).toBe('OK') + }) + }) +}) describe('create, edit, get, delete: test trailing spaces', () => { let trailingProjectId, trailingWorkspaceId @@ -938,6 +1037,27 @@ describe('create, edit, get, delete: test trailing spaces', () => { expect(res.body.title).toEqual(modifiedTitle) expect(res.body.description).toEqual(modifiedProjectDescription) }) + + test('test deleteProject API (default type)', async () => { + expect(orgId).toBeDefined() + expect(projectId).toBeDefined() + expect(workspaceId).toBeDefined() + + const res = await sdkClient.deleteProject(orgId, projectId) + expect(res.ok).toBe(true) + expect(res.status).toBe(200) + expect(res.statusText).toBe('OK') + }) + + test('test deleteProject API (firefly project template)', async () => { + expect(orgId).toBeDefined() + expect(fireflyProjectId).toBeDefined() + expect(workspaceId).toBeDefined() + + // TODO: delete is not supported yet + await expect(sdkClient.deleteProject(orgId, fireflyProjectId)).rejects.toThrowError('[CoreConsoleAPISDK:ERROR_DELETE_PROJECT] 400 - Bad Request ("Project Firefly can not be deleted")') + }) + test('delete', async () => { expect(orgId).toBeDefined() expect(trailingProjectId).toBeDefined() diff --git a/package.json b/package.json index 4fad737..7e05054 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,8 @@ "test": "npm run lint && npm run unit-tests", "typings": "jsdoc -t node_modules/tsd-jsdoc/dist -r src/*.js -d .", "unit-tests": "jest --config test/jest.config.js --maxWorkers=2", - "validate": "node bin/validate_spec.js spec/api.json" + "validate": "node bin/validate_spec.js spec/api.json", + "patch-spec": "node spec/patch/run.js" }, "engines": { "node": "^14.18 || ^16.13 || >=18" diff --git a/spec/api.json b/spec/api.json index 531e60c..e386ac2 100644 --- a/spec/api.json +++ b/spec/api.json @@ -26,21 +26,21 @@ "name": "AtlasPolicyEngine", "description": "APIs for Atlas Policy Engine" }, - { - "name": "Extensions", - "description": "APIs for App Registry and Extension Registry" - }, { "name": "DevTerms", "description": "APIs for Developer Terms" + }, + { + "name": "Clients", + "description": "APIs for Credential Clients" } ], "paths": { - "/console/services/ims/terms": { - "get": { - "summary": "get developer terms", + "/console/organizations/{orgId}/integrations/adobeid": { + "post": { + "summary": "adobeid create integration", "tags": [ - "DevTerms" + "Organizations" ], "parameters": [ { @@ -60,20 +60,39 @@ "schema": { "type": "string" } + }, + { + "name": "orgId", + "description": "AMS org id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } } ], + "requestBody": { + "$ref": "#/components/requestBodies/Adobeid" + }, "responses": { "200": { - "description": "Developer Terms Check Response", - "type": "object", - "properties": { - "text": { - "type": "string", - "description": "Text of Developer Terms" - }, - "locale": { - "type": "string", - "description": "Language of the Developer Terms text" + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "apikey": { + "type": "string" + }, + "orgId": { + "type": "string" + } + } + } } } }, @@ -96,44 +115,44 @@ "x-codeSamples": [ { "lang": "shell", - "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/services/ims/terms \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE' \\\n --data '{\"name\":\"string\",\"description\":\"string\",\"platform\":\"WebApp\",\"urlScheme\":\"string\",\"redirectUriList\":[\"string\"],\"defaultRedirectUri\":\"string\",\"domain\":\"string\"}'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/services/ims/terms',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid';\n\nlet options = {\n method: 'POST',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n },\n body: '{\"name\":\"string\",\"description\":\"string\",\"platform\":\"WebApp\",\"urlScheme\":\"string\",\"redirectUriList\":[\"string\"],\"defaultRedirectUri\":\"string\",\"domain\":\"string\"}'\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/services/ims/terms');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('{\"name\":\"string\",\"description\":\"string\",\"platform\":\"WebApp\",\"urlScheme\":\"string\",\"redirectUriList\":[\"string\"],\"defaultRedirectUri\":\"string\",\"domain\":\"string\"}');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/services/ims/terms\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .body(\"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"WebApp\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\"}\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/services/ims/terms\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid\"\n\n\tpayload := strings.NewReader(\"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"WebApp\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\"}\")\n\n\treq, _ := http.NewRequest(\"POST\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/services/ims/terms\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"WebApp\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\"}\"\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/integrations/adobeid\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/services/ims/terms\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"WebApp\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\"}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/services/ims/terms\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\nrequest.body = \"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"WebApp\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, - "/console/services/ims/organizations/{orgId}/terms": { - "get": { - "summary": "check developer terms acceptance", + "/console/organizations/{orgId}/integrations/adobeid/{intId}": { + "put": { + "summary": "adobeid update integration", "tags": [ - "DevTerms" + "Organizations" ], "parameters": [ { @@ -156,7 +175,16 @@ }, { "name": "orgId", - "description": "AMS org id or IMS org id", + "description": "AMS org id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "intId", + "description": "integration id", "in": "path", "required": true, "schema": { @@ -164,18 +192,110 @@ } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "platform": { + "type": "string" + }, + "urlScheme": { + "type": "string" + }, + "redirectUriList": { + "type": "array", + "items": { + "type": "string" + } + }, + "defaultRedirectUri": { + "type": "string" + }, + "domain": { + "type": "string" + } + } + } + } + }, + "description": "form", + "required": true + }, "responses": { "200": { - "description": "Developer Terms Check Response", - "type": "object", - "properties": { - "accepted": { - "type": "boolean", - "description": "Flag for accepted state" - }, - "current": { - "type": "boolean", - "description": "Flag for current version of Developer Terms" + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "apikey": { + "type": "string" + }, + "orgId": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "status": { + "type": "string" + }, + "type": { + "type": "string" + }, + "createdDate": { + "type": "string" + }, + "lastModifiedDate": { + "type": "string" + }, + "namespaceEnabled": { + "type": "boolean" + }, + "technicalAccountId": { + "type": "string" + }, + "platform": { + "type": "string" + }, + "urlScheme": { + "type": "string" + }, + "redirectUriList": { + "type": "array", + "items": { + "type": "string" + } + }, + "defaultRedirectUri": { + "type": "string" + }, + "userConsent": { + "type": "boolean" + }, + "typekitPreviewTokenEnabled": { + "type": "boolean" + }, + "readOnly": { + "type": "boolean" + } + } + } } } }, @@ -198,42 +318,44 @@ "x-codeSamples": [ { "lang": "shell", - "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + "source": "curl --request PUT \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE' \\\n --data '{\"name\":\"string\",\"description\":\"string\",\"platform\":\"string\",\"urlScheme\":\"string\",\"redirectUriList\":[\"string\"],\"defaultRedirectUri\":\"string\",\"domain\":\"string\"}'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D';\n\nlet options = {\n method: 'PUT',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n },\n body: '{\"name\":\"string\",\"description\":\"string\",\"platform\":\"string\",\"urlScheme\":\"string\",\"redirectUriList\":[\"string\"],\"defaultRedirectUri\":\"string\",\"domain\":\"string\"}'\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D');\n$request->setMethod(HTTP_METH_PUT);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('{\"name\":\"string\",\"description\":\"string\",\"platform\":\"string\",\"urlScheme\":\"string\",\"redirectUriList\":[\"string\"],\"defaultRedirectUri\":\"string\",\"domain\":\"string\"}');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + "source": "HttpResponse response = Unirest.put(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .body(\"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"string\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\"}\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D\"\n\n\tpayload := strings.NewReader(\"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"string\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\"}\")\n\n\treq, _ := http.NewRequest(\"PUT\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/services/ims/organizations/%7BorgId%7D/terms\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"string\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\"}\"\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"PUT\", \"/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D\");\nvar request = new RestRequest(Method.PUT);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"string\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\"}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Put.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\nrequest.body = \"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"string\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body" } ] - }, - "post": { - "summary": "accept developer terms", + } + }, + "/console/organizations/{orgId}/integrations/adobeid/{intId}/services": { + "put": { + "summary": "subscribe adobeid integration to services", "tags": [ - "DevTerms" + "Organizations" ], "parameters": [ { @@ -256,7 +378,16 @@ }, { "name": "orgId", - "description": "AMS org id or IMS org id", + "description": "AMS org id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "intId", + "description": "integration id", "in": "path", "required": true, "schema": { @@ -264,19 +395,87 @@ } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "sdkCode": { + "type": "string" + }, + "licenseConfigs": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "productId": { + "type": "string" + }, + "description": { + "type": "string" + }, + "selected": { + "type": "boolean" + } + } + } + }, + "roles": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "code": { + "type": "string" + }, + "name": { + "type": "string" + } + } + } + } + } + } + } + } + }, + "description": "form data", + "required": true + }, "responses": { "200": { - "description": "Developer Terms Acceptance Response", - "schema": null, - "type": "object", - "properties": { - "accepted": { - "type": "boolean", - "description": "Flag for accepted state" - }, - "current": { - "type": "boolean", - "description": "Flag for current version of Developer Terms" + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "sdkList": { + "type": "array", + "items": { + "type": "string" + } + }, + "errorList": { + "type": "array", + "items": { + "type": "string" + } + } + } + } } } }, @@ -299,67 +498,49 @@ "x-codeSamples": [ { "lang": "shell", - "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + "source": "curl --request PUT \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D/services \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE' \\\n --data '[{\"sdkCode\":\"string\",\"licenseConfigs\":[{\"id\":\"string\",\"name\":\"string\",\"productId\":\"string\",\"description\":\"string\",\"selected\":true}],\"roles\":[{\"id\":\"string\",\"code\":\"string\",\"name\":\"string\"}]}]'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'POST',\n url: 'https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D/services';\n\nlet options = {\n method: 'PUT',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n },\n body: '[{\"sdkCode\":\"string\",\"licenseConfigs\":[{\"id\":\"string\",\"name\":\"string\",\"productId\":\"string\",\"description\":\"string\",\"selected\":true}],\"roles\":[{\"id\":\"string\",\"code\":\"string\",\"name\":\"string\"}]}]'\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D/services');\n$request->setMethod(HTTP_METH_PUT);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('[{\"sdkCode\":\"string\",\"licenseConfigs\":[{\"id\":\"string\",\"name\":\"string\",\"productId\":\"string\",\"description\":\"string\",\"selected\":true}],\"roles\":[{\"id\":\"string\",\"code\":\"string\",\"name\":\"string\"}]}]');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + "source": "HttpResponse response = Unirest.put(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D/services\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .body(\"[{\\\"sdkCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"id\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\",\\\"productId\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"selected\\\":true}],\\\"roles\\\":[{\\\"id\\\":\\\"string\\\",\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}]\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms\"\n\n\treq, _ := http.NewRequest(\"POST\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D/services\"\n\n\tpayload := strings.NewReader(\"[{\\\"sdkCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"id\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\",\\\"productId\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"selected\\\":true}],\\\"roles\\\":[{\\\"id\\\":\\\"string\\\",\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}]\")\n\n\treq, _ := http.NewRequest(\"PUT\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/services/ims/organizations/%7BorgId%7D/terms\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"[{\\\"sdkCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"id\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\",\\\"productId\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"selected\\\":true}],\\\"roles\\\":[{\\\"id\\\":\\\"string\\\",\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}]\"\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"PUT\", \"/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D/services\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D/services\");\nvar request = new RestRequest(Method.PUT);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"[{\\\"sdkCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"id\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\",\\\"productId\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"selected\\\":true}],\\\"roles\\\":[{\\\"id\\\":\\\"string\\\",\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}]\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D/services\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Put.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\nrequest.body = \"[{\\\"sdkCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"id\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\",\\\"productId\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"selected\\\":true}],\\\"roles\\\":[{\\\"id\\\":\\\"string\\\",\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}]\"\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, - "/console/organizations/{orgId}/integrations/entp/{intId}/service/{sdkCode}/properties": { + "/console/organizations/{orgId}/projects/{projectId}/workspaces/{workspaceId}/download": { "get": { - "summary": "List of credential sdk properties", + "summary": "Download workspace json", "tags": [ - "Organizations" + "workspaces" ], "parameters": [ - { - "name": "Authorization", - "description": "Authorization", - "in": "header", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "x-api-key", - "description": "API key", - "in": "header", - "required": true, - "schema": { - "type": "string" - } - }, { "name": "orgId", - "description": "AMS org id", + "description": "Org ID", "in": "path", "required": true, "schema": { @@ -367,8 +548,8 @@ } }, { - "name": "intId", - "description": "Credential id", + "name": "projectId", + "description": "Project ID", "in": "path", "required": true, "schema": { @@ -376,550 +557,17 @@ } }, { - "name": "sdkCode", - "description": "The service sdk code (e.g. AdobeAnalyticsSDK)", + "name": "workspaceId", + "description": "Workspace ID", "in": "path", "required": true, "schema": { "type": "string" } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "sdkCode": { - "type": "string" - }, - "name": { - "type": "string" - }, - "sdkList": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "integer" - }, - "code": { - "type": "string" - }, - "name": { - "type": "string" - } - } - } - }, - "licenseConfigs": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "productId": { - "type": "string" - }, - "description": { - "type": "string" - }, - "selected": { - "type": "boolean" - } - } - } - } - } - } - } - } - }, - "400": { - "description": "Bad Request" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - }, - "500": { - "description": "Internal Server Error" - } - }, - "x-codeSamples": [ - { - "lang": "shell", - "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7Bintld%7D/service/%7sdkCode%7D/properties \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json'" - }, - { - "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7Bintld%7D/service/%7sdkCode%7D/properties',\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'}\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" - }, - { - "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7Bintld%7D/service/%7sdkCode%7D/properties');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" - }, - { - "lang": "java", - "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7Bintld%7D/service/%7sdkCode%7D/properties\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .asString();" - }, - { - "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7Bintld%7D/service/%7sdkCode%7D/properties\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" - }, - { - "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/integrations/entp/%7Bintld%7D/service/%7sdkCode%7D/properties\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" - }, - { - "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7Bintld%7D/service/%7sdkCode%7D/properties\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, - { - "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7Bintld%7D/service/%7sdkCode%7D/properties\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" - } - ] - } - }, - "/console/organizations/{orgId}/integrations/adobeid": { - "post": { - "summary": "adobeid create integration", - "tags": [ - "Organizations" - ], - "parameters": [ { "name": "Authorization", - "description": "Authorization", - "in": "header", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "x-api-key", - "description": "API key", - "in": "header", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "orgId", - "description": "AMS org id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "$ref": "#/components/requestBodies/Form" - }, - "responses": { - "200": { - "description": "OK", - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "apikey": { - "type": "string" - }, - "orgId": { - "type": "string" - } - } - }, - "400": { - "description": "Bad Request" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - }, - "500": { - "description": "Internal Server Error" - } - }, - "x-codeSamples": [ - { - "lang": "shell", - "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" - }, - { - "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'POST',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" - }, - { - "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" - }, - { - "lang": "java", - "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" - }, - { - "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid\"\n\n\treq, _ := http.NewRequest(\"POST\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" - }, - { - "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/integrations/adobeid\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" - }, - { - "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" - }, - { - "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" - } - ] - } - }, - "/console/organizations/{orgId}/integrations/adobeid/{intId}": { - "put": { - "summary": "adobeid update integration", - "tags": [ - "Organizations" - ], - "parameters": [ - { - "name": "Authorization", - "description": "Authorization", - "in": "header", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "x-api-key", - "description": "API key", - "in": "header", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "orgId", - "description": "AMS org id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "intId", - "description": "integration id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "$ref": "#/components/requestBodies/Form" - }, - "responses": { - "200": { - "description": "OK", - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "apikey": { - "type": "string" - }, - "orgId": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "status": { - "type": "string" - }, - "type": { - "type": "string" - }, - "createdDate": { - "type": "string" - }, - "lastModifiedDate": { - "type": "string" - }, - "namespaceEnabled": { - "type": "boolean" - }, - "technicalAccountId": { - "type": "string" - }, - "platform": { - "type": "string" - }, - "urlScheme": { - "type": "string" - }, - "redirectUriList": { - "type": "array", - "items": { - "type": "string" - } - }, - "defaultRedirectUri": { - "type": "string" - }, - "userConsent": { - "type": "boolean" - }, - "typekitPreviewTokenEnabled": { - "type": "boolean" - }, - "readOnly": { - "type": "boolean" - } - } - }, - "400": { - "description": "Bad Request" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - }, - "500": { - "description": "Internal Server Error" - } - }, - "x-codeSamples": [ - { - "lang": "shell", - "source": "curl --request PUT \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" - }, - { - "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'PUT',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" - }, - { - "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D');\n$request->setMethod(HTTP_METH_PUT);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" - }, - { - "lang": "java", - "source": "HttpResponse response = Unirest.put(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" - }, - { - "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D\"\n\n\treq, _ := http.NewRequest(\"PUT\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" - }, - { - "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"PUT\", \"/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" - }, - { - "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D\");\nvar request = new RestRequest(Method.PUT);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" - }, - { - "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Put.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" - } - ] - } - }, - "/console/organizations/{orgId}/integrations/adobeid/{intId}/services": { - "put": { - "summary": "subscribe adobeid integration to services", - "tags": [ - "Organizations" - ], - "parameters": [ - { - "name": "Authorization", - "description": "Authorization", - "in": "header", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "x-api-key", - "description": "API key", - "in": "header", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "orgId", - "description": "AMS org id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "intId", - "description": "integration id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "$ref": "#/components/requestBodies/Subscriptionlist" - }, - "responses": { - "200": { - "description": "OK", - "type": "object", - "properties": { - "sdkList": { - "type": "array", - "items": { - "type": "string" - } - }, - "errorList": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "400": { - "description": "Bad Request" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - }, - "500": { - "description": "Internal Server Error" - } - }, - "x-codeSamples": [ - { - "lang": "shell", - "source": "curl --request PUT \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D/services \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" - }, - { - "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'PUT',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D/services',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" - }, - { - "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D/services');\n$request->setMethod(HTTP_METH_PUT);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" - }, - { - "lang": "java", - "source": "HttpResponse response = Unirest.put(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D/services\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" - }, - { - "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D/services\"\n\n\treq, _ := http.NewRequest(\"PUT\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" - }, - { - "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"PUT\", \"/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D/services\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" - }, - { - "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D/services\");\nvar request = new RestRequest(Method.PUT);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" - }, - { - "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D/services\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Put.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" - } - ] - } - }, - "/console/organizations/{orgId}/projects/{projectId}/workspaces/{workspaceId}/download": { - "get": { - "summary": "Download workspace json", - "tags": [ - "workspaces" - ], - "parameters": [ - { - "name": "orgId", - "description": "Org ID", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "projectId", - "description": "Project ID", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "workspaceId", - "description": "Workspace ID", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "Authorization", - "description": "Access token", + "description": "Access token", "in": "header", "required": true, "schema": { @@ -1017,6 +665,10 @@ "type": "string", "description": "Credential name" }, + "apiKey": { + "type": "string", + "description": "Api key / client Id" + }, "integration_type": { "type": "string", "description": "Credential type, possible values (service, oauthweb, oauthandroid, oauthios)" @@ -1050,29 +702,61 @@ } } }, - "oauth2": { + "oauth_server_to_server": { "type": "object", - "description": "oauth2 credential details", + "description": "OAuth server to server credential details", "properties": { "client_id": { "type": "string", "description": "Client id" }, - "client_secret": { + "client_secrets": { + "type": "array", + "items": { + "type": "string", + "description": "client secrets" + } + }, + "technical_account_email": { "type": "string", - "description": "Client secret" + "description": "Technical account email" }, - "redirect_uri": { + "technical_account_id": { + "type": "string", + "description": "Technical account id" + }, + "scopes": { "type": "array", - "description": "Redirect urls list", "items": { "type": "string", - "description": "Redirect url" + "description": "Credential scopes" } } } - } - } + }, + "oauth2": { + "type": "object", + "description": "oauth2 credential details", + "properties": { + "client_id": { + "type": "string", + "description": "Client id" + }, + "client_secret": { + "type": "string", + "description": "Client secret" + }, + "redirect_uri": { + "type": "array", + "description": "Redirect urls list", + "items": { + "type": "string", + "description": "Redirect url" + } + } + } + } + } } }, "services": { @@ -1116,6 +800,116 @@ } } } + }, + "mesh": { + "type": "object", + "description": "Mesh configuration" + }, + "events": { + "type": "object", + "description": "Events details", + "properties": { + "registrations": { + "type": "array", + "description": "Event registrations", + "items": { + "type": "object", + "description": "Event registrations details", + "properties": { + "id": { + "type": "string", + "description": "id" + }, + "name": { + "type": "string", + "description": "name" + }, + "description": { + "type": "string", + "description": "registration description" + }, + "enabled": { + "type": "string", + "description": "enabled" + }, + "client_id": { + "type": "string", + "description": "client id" + }, + "registration_id": { + "type": "string", + "description": "registration id" + }, + "webhook_status": { + "type": "string", + "description": "webhook status" + }, + "created_date": { + "type": "string", + "description": "create date" + }, + "updated_date": { + "type": "string", + "description": "update date" + }, + "webhook_url": { + "type": "string", + "description": "webhook url" + }, + "delivery_type": { + "type": "string", + "description": "delivery type" + }, + "events_url": { + "type": "string", + "description": "events url" + }, + "trace_url": { + "type": "string", + "description": "trace url" + }, + "events_of_interest": { + "type": "array", + "description": "events of interested", + "items": { + "type": "object", + "description": "events of interested details", + "properties": { + "event_code": { + "type": "string", + "description": "event code" + }, + "provider_id": { + "type": "string", + "description": "provider id" + }, + "event_label": { + "type": "string", + "description": "event label" + }, + "event_description": { + "type": "string", + "description": "event description" + }, + "provider_label": { + "type": "string", + "description": "provider label" + }, + "event_delivery_format": { + "type": "string", + "description": "event delivery format" + }, + "provider_metadata": { + "type": "string", + "description": "provider metadata" + } + } + } + } + } + } + } + } } } } @@ -1141,7 +935,7 @@ }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/download',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/download';\n\nlet options = {\n method: 'GET',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", @@ -1170,117 +964,34 @@ ] } }, - "/console/organizations/{orgId}/apps/{appName}/validate": { + "/console/organizations/{orgId}/xp/{xpId}": { "get": { - "summary": "validate Application name", + "summary": "Get all available extension points", "tags": [ - "AppRegistry" + "Extensions" ], "parameters": [ { - "name": "orgId", - "description": "AMS Organization ID", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "appName", - "description": "Application name to be validated", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "appType", - "description": "Application type - use JGR", - "in": "query", + "name": "Authorization", + "description": "Authorization", + "in": "header", "required": true, "schema": { "type": "string" } }, { - "name": "Authorization", - "description": "Authorization", + "name": "x-api-key", + "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } - } - ], - "responses": { - "200": { - "type": "boolean", - "description": "boolean true/false" - }, - "400": { - "description": "Bad Request" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - }, - "500": { - "description": "Internal Server Error" - } - }, - "x-codeSamples": [ - { - "lang": "shell", - "source": "curl --request GET \\\n --url 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappName%7D/validate?appType=SOME_STRING_VALUE' \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json'" - }, - { - "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappName%7D/validate',\n qs: {appType: 'SOME_STRING_VALUE'},\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'}\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" - }, - { - "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappName%7D/validate');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setQueryData([\n 'appType' => 'SOME_STRING_VALUE'\n]);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" - }, - { - "lang": "java", - "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappName%7D/validate?appType=SOME_STRING_VALUE\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .asString();" - }, - { - "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappName%7D/validate?appType=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" - }, - { - "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/apps/%7BappName%7D/validate?appType=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, - { - "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappName%7D/validate?appType=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" - }, - { - "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappName%7D/validate?appType=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" - } - ] - } - }, - "/console/organizations/{orgId}/apps/{appId}": { - "get": { - "summary": "get Application by Id", - "tags": [ - "AppRegistry" - ], - "parameters": [ { "name": "orgId", - "description": "AMS Organization ID", + "description": "AMS org id", "in": "path", "required": true, "schema": { @@ -1288,8 +999,7 @@ } }, { - "name": "appId", - "description": "Application id", + "name": "xpId", "in": "path", "required": true, "schema": { @@ -1297,19 +1007,17 @@ } }, { - "name": "appType", - "description": "Application type - use JGR for Jaeger applications", - "in": "path", - "required": true, + "name": "offset", + "in": "query", + "required": false, "schema": { "type": "string" } }, { - "name": "Authorization", - "description": "Authorization", - "in": "header", - "required": true, + "name": "pageSize", + "in": "query", + "required": false, "schema": { "type": "string" } @@ -1323,207 +1031,159 @@ "schema": { "type": "object", "properties": { - "appId": { - "type": "string", - "description": "application id" + "id": { + "type": "string" }, - "appType": { - "type": "string", - "description": "application type - use JGR for Jaeger apps" + "name": { + "type": "string" }, - "created": { - "type": "object", - "description": "activity log for application created", - "properties": { - "by": { - "type": "object", - "properties": { - "guid": { - "type": "string", - "description": "user guid" - } - } - }, - "on": { - "type": "string", - "description": "created timestamp" - } - } + "serviceCode": { + "type": "string" }, - "description": { - "type": "string", - "description": "application description" + "version": { + "type": "string" }, - "icon": { - "type": "string", - "description": "URL for the icon" + "idVer": { + "type": "string" }, - "images": { - "type": "object", - "properties": { - "featuredImage1": { - "type": "string" - }, - "featuredImage2": { - "type": "string" - }, - "featuredImage3": { - "type": "string" - }, - "featuredImage4": { - "type": "string" - }, - "featuredImage5": { - "type": "string" - } + "title": { + "type": "string" + }, + "specVersion": { + "type": "string" + }, + "operations": { + "type": "array", + "items": { + "type": "string" } }, - "lastModified": { - "type": "object", - "description": "activity log for application last modified", - "properties": { - "by": { - "type": "object", - "properties": { - "guid": { - "type": "string", - "description": "user guid" - } - } - }, - "on": { - "type": "string", - "description": "last modified timestamp" - } + "ficodes": { + "type": "array", + "items": { + "type": "string" } }, - "name": { - "type": "string", - "description": "application name" + "state": { + "type": "string" + }, + "publisherId": { + "type": "string" }, - "reviewed": { + "lifecycle": { "type": "object", - "description": "activity log for application reviewed", "properties": { - "by": { + "created": { "type": "object", "properties": { - "guid": { - "type": "string", - "description": "user guid" + "by": { + "type": "object", + "properties": { + "guid": { + "type": "string" + } + } + }, + "notes": { + "type": "string" + }, + "on": { + "type": "string" } } }, - "on": { - "type": "string", - "description": "reviewed timestamp" - }, - "notes": { - "type": "string", - "description": "reviewer notes" - } - } - }, - "status": { - "type": "string", - "description": "application status" - }, - "submitted": { - "type": "object", - "description": "activity log for application submitted", - "properties": { - "by": { + "lastModified": { "type": "object", "properties": { - "guid": { - "type": "string", - "description": "user guid" + "by": { + "type": "object", + "properties": { + "guid": { + "type": "string" + } + } + }, + "notes": { + "type": "string" + }, + "on": { + "type": "string" } } }, - "on": { - "type": "string", - "description": "submitted timestamp" - }, - "notes": { - "type": "string", - "description": "submitter notes" - } - } - }, - "support": { - "type": "object", - "description": "support information for the application", - "properties": { - "email": { - "type": "string" + "submitted": { + "type": "object", + "properties": { + "by": { + "type": "object", + "properties": { + "guid": { + "type": "string" + } + } + }, + "notes": { + "type": "string" + }, + "on": { + "type": "string" + } + } }, - "contact": { - "type": "string" + "published": { + "type": "object", + "properties": { + "by": { + "type": "object", + "properties": { + "guid": { + "type": "string" + } + } + }, + "notes": { + "type": "string" + }, + "on": { + "type": "string" + } + } }, - "website": { - "type": "string" - } - } - }, - "title": { - "type": "string" - }, - "workspaces": { - "type": "array", - "description": "list of workspaces in the application", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "workspace id" - }, - "name": { - "type": "string", - "description": "workspace name" - }, - "endPoint": { - "type": "string" - }, - "deepLink": { - "type": "string" - }, - "shellProps": { - "type": "string" - }, - "releaseNotes": { - "type": "string" - }, - "approveList": { - "type": "object", - "description": "list of approveList users & orgs", - "properties": { - "users": { - "type": "array", - "items": { - "type": "object", - "properties": { - "guid": { - "type": "string" - } - } + "reviewed": { + "type": "object", + "properties": { + "by": { + "type": "object", + "properties": { + "guid": { + "type": "string" } - }, - "orgs": { - "type": "array", - "items": { - "type": "object", - "properties": { - "orgId": { - "type": "string" - }, - "orgName": { - "type": "string" - } - } + } + }, + "notes": { + "type": "string" + }, + "on": { + "type": "string" + } + } + }, + "unpublished": { + "type": "object", + "properties": { + "by": { + "type": "object", + "properties": { + "guid": { + "type": "string" } } + }, + "notes": { + "type": "string" + }, + "on": { + "type": "string" } } } @@ -1534,61 +1194,54 @@ } } }, - "400": { - "description": "Bad Request" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, "404": { - "description": "Not Found" + "description": "Extension Point Id was not found" }, - "500": { - "description": "Internal Server Error" + "405": { + "description": "Invalid Input" } }, "x-codeSamples": [ { "lang": "shell", - "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json'" + "source": "curl --request GET \\\n --url 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/xp/%7BxpId%7D?offset=SOME_STRING_VALUE&pageSize=SOME_STRING_VALUE' \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D',\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'}\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/xp/%7BxpId%7D';\n\nlet options = {\n method: 'GET',\n qs: {offset: 'SOME_STRING_VALUE', pageSize: 'SOME_STRING_VALUE'},\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/xp/%7BxpId%7D');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setQueryData([\n 'offset' => 'SOME_STRING_VALUE',\n 'pageSize' => 'SOME_STRING_VALUE'\n]);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .asString();" + "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/xp/%7BxpId%7D?offset=SOME_STRING_VALUE&pageSize=SOME_STRING_VALUE\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/xp/%7BxpId%7D?offset=SOME_STRING_VALUE&pageSize=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/apps/%7BappId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/xp/%7BxpId%7D?offset=SOME_STRING_VALUE&pageSize=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/xp/%7BxpId%7D?offset=SOME_STRING_VALUE&pageSize=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/xp/%7BxpId%7D?offset=SOME_STRING_VALUE&pageSize=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] - }, - "patch": { - "summary": "update Application", + } + }, + "/console/organizations/{orgId}/policy/{intId}": { + "get": { + "summary": "get Application Policy", "tags": [ - "AppRegistry" + "AtlasPolicyEngine" ], "parameters": [ { @@ -1601,8 +1254,8 @@ } }, { - "name": "appId", - "description": "Application id", + "name": "intId", + "description": "Integration ID", "in": "path", "required": true, "schema": { @@ -1619,212 +1272,66 @@ } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "appId": { - "type": "string", - "description": "application id" - }, - "appType": { - "type": "string", - "description": "application type - use JGR for Jaeger apps" - }, - "created": { - "type": "object", - "description": "activity log for application created", - "properties": { - "type": "object", - "properties": { - "guid": { - "type": "string", - "description": "user guid" - }, - "on": { - "type": "string", - "description": "created timestamp" - } - } - } - }, - "description": { - "type": "string", - "description": "application description" - }, - "icon": { - "type": "string", - "description": "url for the icon" - }, - "images": { - "type": "object", - "properties": { - "featuredImage1": { - "type": "string" - }, - "featuredImage2": { - "type": "string" - }, - "featuredImage3": { - "type": "string" - }, - "featuredImage4": { - "type": "string" - }, - "featuredImage5": { - "type": "string" - } - } - }, - "lastModified": { - "type": "object", - "description": "activity log for application last modified", - "properties": { - "by": { - "type": "object", - "properties": { - "guid": { - "type": "string", - "description": "user guid" - } - } - }, - "on": { - "type": "string", - "description": "last modified timestamp" - } - } - }, - "name": { - "type": "string", - "description": "application name" - }, - "reviewed": { - "type": "object", - "description": "activity log for application reviewed", - "properties": { - "by": { - "type": "object", - "properties": { - "guid": { - "type": "string", - "description": "user guid" - } - } - }, - "on": { - "type": "string", - "description": "reviewed timestamp" - }, - "notes": { - "type": "string", - "description": "reviewer notes" - } - } - }, - "status": { - "type": "string", - "description": "application status" - }, - "submitted": { - "type": "object", - "description": "activity log for application submitted", - "properties": { - "by": { - "type": "object", - "properties": { - "guid": { - "type": "string", - "description": "user guid" - } - } - }, - "on": { - "type": "string", - "description": "submitted timestamp" - }, - "notes": { - "type": "string", - "description": "submitter notes" - } - } - }, - "support": { - "type": "object", - "description": "support information for the application", - "properties": { - "email": { - "type": "string" - }, - "contact": { - "type": "string" - }, - "website": { - "type": "string" - } - } - }, - "title": { - "type": "string" - }, - "workspaces": { - "type": "array", - "description": "list of workspaces in the application", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "workspace id" - }, - "name": { - "type": "string", - "description": "workspace name" - }, - "endPoint": { - "type": "string" - }, - "deepLink": { - "type": "string" - }, - "shellProps": { - "type": "string" - }, - "releaseNotes": { - "type": "string" - }, - "approveList": { - "type": "object", - "description": "list of approveList users & orgs", - "properties": { - "users": { - "type": "array", - "items": { - "type": "object", - "properties": { - "guid": { - "type": "string" - } - } - } - }, - "orgs": { - "type": "array", - "items": { - "type": "object", - "properties": { - "orgId": { - "type": "string" - }, - "orgName": { - "type": "string" - } - } - } - } - } + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "orgCode": { + "type": "string", + "description": "IMS org id" + }, + "appCode": { + "type": "string", + "description": "AMS application id" + }, + "appPolicyCode": { + "type": "string" + }, + "apiKey": { + "type": "string" + }, + "quotaPolicyCode": { + "type": "string" + }, + "planCode": { + "type": "string" + }, + "status": { + "type": "string" + }, + "_links": { + "type": "array", + "items": { + "type": "object", + "properties": { + "deprecation": { + "type": "string" + }, + "href": { + "type": "string" + }, + "hreflang": { + "type": "string" + }, + "media": { + "type": "string" + }, + "rel": { + "type": "string" + }, + "templated": { + "type": "boolean" + }, + "title": { + "type": "string" + }, + "type": { + "type": "string" + } } } } @@ -1833,218 +1340,144 @@ } } }, - "description": "Application" + "400": { + "description": "Bad Request" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + }, + "500": { + "description": "Internal Server Error" + } }, + "x-codeSamples": [ + { + "lang": "shell", + "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json'" + }, + { + "lang": "node", + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D';\n\nlet options = {\n method: 'GET',\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'}\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" + }, + { + "lang": "php", + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + }, + { + "lang": "java", + "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .asString();" + }, + { + "lang": "go", + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + }, + { + "lang": "python", + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/policy/%7BintId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + }, + { + "lang": "csharp", + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + }, + { + "lang": "ruby", + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + } + ] + } + }, + "/console/organizations/{orgId}/policy/{intId}/{sdkCode}/usage": { + "get": { + "summary": "get Quota Usage", + "tags": [ + "AtlasPolicyEngine" + ], + "parameters": [ + { + "name": "orgId", + "description": "AMS Organization ID", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "intId", + "description": "Integration ID", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "sdkCode", + "description": "AMS sdk code", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Authorization", + "description": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + } + ], "responses": { "200": { - "description": "Application Updated Successfully", + "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { - "appId": { - "type": "string", - "description": "application id" + "policyCode": { + "type": "string" }, - "appType": { - "type": "string", - "description": "application type - use JGR for Jaeger apps" + "planCode": { + "type": "string" }, - "created": { - "type": "object", - "description": "activity log for application created", - "properties": { - "by": { - "type": "object", - "properties": { - "guid": { - "type": "string", - "description": "user guid" - } - } - }, - "on": { - "type": "string", - "description": "created timestamp" - } - } + "orgCode": { + "type": "string" }, - "description": { - "type": "string", - "description": "application description" + "refreshCycle": { + "type": "string" }, - "icon": { - "type": "string", - "description": "URL for the icon" + "policyType": { + "type": "string" }, - "images": { - "type": "object", - "properties": { - "featuredImage1": { - "type": "string" - }, - "featuredImage2": { - "type": "string" - }, - "featuredImage3": { - "type": "string" - }, - "featuredImage4": { - "type": "string" - }, - "featuredImage5": { - "type": "string" - } - } + "status": { + "type": "string" }, - "lastModified": { - "type": "object", - "description": "activity log for application last modified", - "properties": { - "by": { - "type": "object", - "properties": { - "guid": { - "type": "string", - "description": "user guid" - } - } - }, - "on": { - "type": "string", - "description": "last modified timestamp" - } - } - }, - "name": { - "type": "string", - "description": "application name" - }, - "reviewed": { - "type": "object", - "description": "activity log for application reviewed", - "properties": { - "by": { - "type": "object", - "properties": { - "guid": { - "type": "string", - "description": "user guid" - } - } - }, - "on": { - "type": "string", - "description": "reviewed timestamp" - }, - "notes": { - "type": "string", - "description": "reviewer notes" - } - } - }, - "status": { - "type": "string", - "description": "application status" - }, - "submitted": { - "type": "object", - "description": "activity log for application submitted", - "properties": { - "by": { - "type": "object", - "properties": { - "guid": { - "type": "string", - "description": "user guid" - } - } - }, - "on": { - "type": "string", - "description": "submitted timestamp" - }, - "notes": { - "type": "string", - "description": "submitter notes" - } - } - }, - "support": { - "type": "object", - "description": "support information for the application", - "properties": { - "email": { - "type": "string" - }, - "contact": { - "type": "string" - }, - "website": { - "type": "string" - } - } + "availableQuantity": { + "type": "integer" }, - "title": { - "type": "string" + "consumedQuantity": { + "type": "integer" }, - "workspaces": { + "selectors": { "type": "array", - "description": "list of workspaces in the application", "items": { "type": "object", "properties": { - "id": { - "type": "string", - "description": "workspace id" - }, - "name": { - "type": "string", - "description": "workspace name" - }, - "endPoint": { - "type": "string" - }, - "deepLink": { - "type": "string" - }, - "shellProps": { - "type": "string" - }, - "releaseNotes": { + "selector": { "type": "string" }, - "approveList": { - "type": "object", - "description": "list of approveList users & orgs", - "properties": { - "users": { - "type": "array", - "items": { - "type": "object", - "properties": { - "guid": { - "type": "string" - } - } - } - }, - "orgs": { - "type": "array", - "items": { - "type": "object", - "properties": { - "orgId": { - "type": "string" - }, - "orgName": { - "type": "string" - } - } - } - } - } + "consumedQuantity": { + "type": "integer" } } } @@ -2073,42 +1506,44 @@ "x-codeSamples": [ { "lang": "shell", - "source": "curl --request PATCH \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json'" + "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D/%7BsdkCode%7D/usage \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'PATCH',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D',\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'}\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D/%7BsdkCode%7D/usage';\n\nlet options = {\n method: 'GET',\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'}\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D');\n$request->setMethod(HttpRequest::HTTP_METH_PATCH);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D/%7BsdkCode%7D/usage');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.patch(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .asString();" + "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D/%7BsdkCode%7D/usage\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D\"\n\n\treq, _ := http.NewRequest(\"PATCH\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D/%7BsdkCode%7D/usage\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"PATCH\", \"/console/organizations/%7BorgId%7D/apps/%7BappId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/policy/%7BintId%7D/%7BsdkCode%7D/usage\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D\");\nvar request = new RestRequest(Method.PATCH);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D/%7BsdkCode%7D/usage\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Patch.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D/%7BsdkCode%7D/usage\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] - }, - "delete": { - "summary": "delete an Application", + } + }, + "/console/organizations/{orgId}/policy/{intId}/usage": { + "get": { + "summary": "get Quota Usage using sdkCode as query parameter", "tags": [ - "AppRegistry" + "AtlasPolicyEngine" ], "parameters": [ { @@ -2121,14 +1556,23 @@ } }, { - "name": "appId", - "description": "Application id", + "name": "intId", + "description": "Integration ID", "in": "path", "required": true, "schema": { "type": "string" } }, + { + "name": "sdkCode", + "description": "AMS sdk code", + "in": "query", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "Authorization", "description": "Authorization", @@ -2141,7 +1585,54 @@ ], "responses": { "200": { - "description": "Application Deleted Successfully" + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "policyCode": { + "type": "string" + }, + "planCode": { + "type": "string" + }, + "orgCode": { + "type": "string" + }, + "refreshCycle": { + "type": "string" + }, + "policyType": { + "type": "string" + }, + "status": { + "type": "string" + }, + "availableQuantity": { + "type": "integer" + }, + "consumedQuantity": { + "type": "integer" + }, + "selectors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "selector": { + "type": "string" + }, + "consumedQuantity": { + "type": "integer" + } + } + } + } + } + } + } + } }, "400": { "description": "Bad Request" @@ -2162,68 +1653,68 @@ "x-codeSamples": [ { "lang": "shell", - "source": "curl --request DELETE \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json'" + "source": "curl --request GET \\\n --url 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D/usage?sdkCode=SOME_STRING_VALUE' \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'DELETE',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D',\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'}\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D/usage';\n\nlet options = {\n method: 'GET',\n qs: {sdkCode: 'SOME_STRING_VALUE'},\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'}\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D');\n$request->setMethod(HTTP_METH_DELETE);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D/usage');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setQueryData([\n 'sdkCode' => 'SOME_STRING_VALUE'\n]);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.delete(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .asString();" + "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D/usage?sdkCode=SOME_STRING_VALUE\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D\"\n\n\treq, _ := http.NewRequest(\"DELETE\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D/usage?sdkCode=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"DELETE\", \"/console/organizations/%7BorgId%7D/apps/%7BappId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/policy/%7BintId%7D/usage?sdkCode=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D\");\nvar request = new RestRequest(Method.DELETE);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D/usage?sdkCode=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D/usage?sdkCode=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, - "/console/organizations/{orgId}/xr-api/v1/app": { + "/console/clients/{clientId}/credential": { "get": { - "summary": "get Application Extensions by Id", + "summary": "Get Credential details by client id", "tags": [ - "Extensions" + "Clients" ], "parameters": [ { - "name": "orgId", - "description": "AMS Organization ID", - "in": "path", + "name": "Authorization", + "description": "Authorization", + "in": "header", "required": true, "schema": { "type": "string" } }, { - "name": "appId", - "description": "Application id", - "in": "query", + "name": "x-api-key", + "description": "API key", + "in": "header", "required": true, "schema": { "type": "string" } }, { - "name": "Authorization", - "description": "Authorization", - "in": "header", + "name": "clientId", + "description": "Credential Client ID", + "in": "path", "required": true, "schema": { "type": "string" @@ -2236,238 +1727,427 @@ "content": { "application/json": { "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "appId": { - "type": "string", - "description": "application id" - }, - "name": { - "type": "string", - "description": "application name" - }, - "title": { - "type": "string" - }, - "publisherId": { - "type": "string" - }, - "status": { - "type": "string", - "description": "application status" - }, - "isPrivate": { - "type": "boolean" - }, - "description": { - "type": "string", - "description": "application description" - }, - "version": { + "type": "object", + "properties": { + "org_id": { + "type": "string" + }, + "org_code": { + "type": "string" + }, + "project_id": { + "type": "string" + }, + "workspace_id": { + "type": "string" + }, + "credential_id": { + "type": "string" + }, + "client_id": { + "type": "string" + }, + "flow_type": { + "type": "string" + }, + "credential_type": { + "type": "string" + }, + "metadata": { + "type": "object", + "properties": { + "adobeid.domain": { + "type": "string" + } + } + }, + "services": { + "type": "array", + "items": { "type": "string" - }, - "workspaces": { - "type": "array", - "description": "list of workspaces in the application", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "workspace id" - }, - "name": { - "type": "string", - "description": "workspace name" - }, - "endPoint": { - "type": "string" - }, - "deepLink": { - "type": "string" - }, - "shellProps": { - "type": "string" - }, - "releaseNotes": { - "type": "string" - }, - "approveList": { - "type": "object", - "description": "list of approveList users & orgs", - "properties": { - "users": { - "type": "array", - "items": { - "type": "object", - "properties": { - "guid": { - "type": "string" - } - } - } - }, - "orgs": { - "type": "array", - "items": { - "type": "object", - "properties": { - "orgId": { - "type": "string" - }, - "orgName": { - "type": "string" - } - } - } - } - } - } - } - } - }, - "lifecycle": { + } + } + } + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + }, + "500": { + "description": "Internal Server Error" + } + }, + "x-codeSamples": [ + { + "lang": "shell", + "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/clients/%7BclientId%7D/credential \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + }, + { + "lang": "node", + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/clients/%7BclientId%7D/credential';\n\nlet options = {\n method: 'GET',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" + }, + { + "lang": "php", + "source": "setUrl('https://developers-stage.adobe.io/console/clients/%7BclientId%7D/credential');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + }, + { + "lang": "java", + "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/clients/%7BclientId%7D/credential\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + }, + { + "lang": "go", + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/clients/%7BclientId%7D/credential\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + }, + { + "lang": "python", + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/clients/%7BclientId%7D/credential\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + }, + { + "lang": "csharp", + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/clients/%7BclientId%7D/credential\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + }, + { + "lang": "ruby", + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/clients/%7BclientId%7D/credential\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + } + ] + } + }, + "/console/data/org-namespace-mappings": { + "post": { + "summary": "Builds and returns mapping between provided namespaces and ims org id", + "tags": [ + "Data" + ], + "parameters": [ + { + "name": "Authorization", + "description": "Service token", + "in": "header", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Get mappings success" + }, + "400": { + "description": "Namespaces form is empty" + } + }, + "x-codeSamples": [ + { + "lang": "shell", + "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/data/org-namespace-mappings \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json'" + }, + { + "lang": "node", + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/data/org-namespace-mappings';\n\nlet options = {\n method: 'POST',\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'}\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" + }, + { + "lang": "php", + "source": "setUrl('https://developers-stage.adobe.io/console/data/org-namespace-mappings');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + }, + { + "lang": "java", + "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/data/org-namespace-mappings\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .asString();" + }, + { + "lang": "go", + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/data/org-namespace-mappings\"\n\n\treq, _ := http.NewRequest(\"POST\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + }, + { + "lang": "python", + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/data/org-namespace-mappings\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + }, + { + "lang": "csharp", + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/data/org-namespace-mappings\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + }, + { + "lang": "ruby", + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/data/org-namespace-mappings\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + } + ] + } + }, + "/console/data/services/{serviceCode}/organizations": { + "get": { + "summary": "Returns the list of organizations subscribed to the given serviceCode", + "tags": [ + "Data" + ], + "parameters": [ + { + "name": "Authorization", + "description": "Service token", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "serviceCode", + "description": "Service code of the I/O API/SDK", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "page", + "description": "The page number starting with page 0 (default)", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "size", + "description": "The page size, default to 100, maximum 1000", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "page": { + "type": "integer" + }, + "page_size": { + "type": "integer" + }, + "count": { + "type": "integer" + }, + "total": { + "type": "integer" + }, + "organizations": { + "type": "array", + "items": { "type": "object", "properties": { - "created": { - "type": "object", - "properties": { - "by": { - "type": "object", - "properties": { - "guid": { - "type": "string" - } - } - }, - "notes": { - "type": "string" - }, - "on": { - "type": "string" - } - } - }, - "lastModified": { - "type": "object", - "properties": { - "by": { - "type": "object", - "properties": { - "guid": { - "type": "string" - } - } - }, - "notes": { - "type": "string" - }, - "on": { - "type": "string" - } - } + "org_id": { + "type": "integer" }, - "submitted": { - "type": "object", - "properties": { - "by": { - "type": "object", - "properties": { - "guid": { - "type": "string" - } - } - }, - "notes": { - "type": "string" - }, - "on": { - "type": "string" - } - } + "org_code": { + "type": "string" }, - "published": { - "type": "object", - "properties": { - "by": { - "type": "object", - "properties": { - "guid": { - "type": "string" - } - } - }, - "notes": { - "type": "string" - }, - "on": { - "type": "string" - } - } - }, - "reviewed": { - "type": "object", - "properties": { - "by": { - "type": "object", - "properties": { - "guid": { - "type": "string" - } - } - }, - "notes": { - "type": "string" - }, - "on": { - "type": "string" - } - } - }, - "unpublished": { - "type": "object", - "properties": { - "by": { - "type": "object", - "properties": { - "guid": { - "type": "string" - } - } - }, - "notes": { - "type": "string" - }, - "on": { - "type": "string" - } - } + "total_client_ids": { + "type": "integer" } } - }, - "support": { + } + } + } + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "500": { + "description": "Internal Server Error" + } + }, + "x-codeSamples": [ + { + "lang": "shell", + "source": "curl --request GET \\\n --url 'https://developers-stage.adobe.io/console/data/services/%7BserviceCode%7D/organizations?page=SOME_STRING_VALUE&size=SOME_STRING_VALUE' \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json'" + }, + { + "lang": "node", + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/data/services/%7BserviceCode%7D/organizations';\n\nlet options = {\n method: 'GET',\n qs: {page: 'SOME_STRING_VALUE', size: 'SOME_STRING_VALUE'},\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'}\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" + }, + { + "lang": "php", + "source": "setUrl('https://developers-stage.adobe.io/console/data/services/%7BserviceCode%7D/organizations');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setQueryData([\n 'page' => 'SOME_STRING_VALUE',\n 'size' => 'SOME_STRING_VALUE'\n]);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + }, + { + "lang": "java", + "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/data/services/%7BserviceCode%7D/organizations?page=SOME_STRING_VALUE&size=SOME_STRING_VALUE\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .asString();" + }, + { + "lang": "go", + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/data/services/%7BserviceCode%7D/organizations?page=SOME_STRING_VALUE&size=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + }, + { + "lang": "python", + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/data/services/%7BserviceCode%7D/organizations?page=SOME_STRING_VALUE&size=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + }, + { + "lang": "csharp", + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/data/services/%7BserviceCode%7D/organizations?page=SOME_STRING_VALUE&size=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + }, + { + "lang": "ruby", + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/data/services/%7BserviceCode%7D/organizations?page=SOME_STRING_VALUE&size=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + } + ] + } + }, + "/console/data/services/{serviceCode}/clients": { + "get": { + "summary": "Returns the list of IMS clients subscribed to the given serviceCode", + "tags": [ + "Data" + ], + "parameters": [ + { + "name": "Authorization", + "description": "Service token", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "serviceCode", + "description": "Service code of the I/O API/SDK", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "page", + "description": "The page number starting with page 0 (default)", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "size", + "description": "The page size, default to 100, maximum 1000", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "org_ids", + "description": "An optional comma-separated list of AMS consumer ids to restrict the request, maximum 10 ids.", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "page": { + "type": "integer", + "description": "The current page being returned" + }, + "page_size": { + "type": "integer", + "description": "The page size that has been requested" + }, + "count": { + "type": "integer", + "description": "The number of clients returned in this page" + }, + "total": { + "type": "integer", + "description": "The total number of clients in the entire dataset" + }, + "clients": { + "type": "array", + "items": { "type": "object", - "description": "support information for the application", "properties": { - "email": { - "type": "string" + "org_id": { + "type": "string", + "description": "The AMS consumer org id" }, - "contact": { - "type": "string" + "org_code": { + "type": "string", + "description": "The IMS org id" }, - "website": { - "type": "string" + "client_id": { + "type": "string", + "description": "The IMS client id" + }, + "project_id": { + "type": "string", + "description": "The Developer Console project id" + }, + "workspace_id": { + "type": "string", + "description": "The Developer Console workspace id" + }, + "credential_id": { + "type": "string", + "description": "The credential id" + }, + "notifications_enabled": { + "type": "boolean", + "description": "Whether email notifications are enabled or not for the project" + }, + "flow_type": { + "type": "string", + "description": "One of adobeid, entp or analytics" + }, + "credential_type": { + "type": "string", + "description": "The credential type like service, oauth, apikey, etc" + }, + "metadata": { + "type": "object", + "description": "An optional map of metadata, will not be present if all the key-value pairs are null or empty", + "properties": { + "adobeid.domain": { + "type": "string", + "description": "An optional list of allowed domains (comma-separated)" + } + } } } - }, - "icon": { - "type": "string", - "description": "URL for the icon" - }, - "media": { - "type": "string" } } } @@ -2484,59 +2164,3551 @@ "403": { "description": "Forbidden" }, + "500": { + "description": "Internal Server Error" + } + }, + "x-codeSamples": [ + { + "lang": "shell", + "source": "curl --request GET \\\n --url 'https://developers-stage.adobe.io/console/data/services/%7BserviceCode%7D/clients?page=SOME_STRING_VALUE&size=SOME_STRING_VALUE&org_ids=SOME_STRING_VALUE' \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json'" + }, + { + "lang": "node", + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/data/services/%7BserviceCode%7D/clients';\n\nlet options = {\n method: 'GET',\n qs: {\n page: 'SOME_STRING_VALUE',\n size: 'SOME_STRING_VALUE',\n org_ids: 'SOME_STRING_VALUE'\n },\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'}\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" + }, + { + "lang": "php", + "source": "setUrl('https://developers-stage.adobe.io/console/data/services/%7BserviceCode%7D/clients');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setQueryData([\n 'page' => 'SOME_STRING_VALUE',\n 'size' => 'SOME_STRING_VALUE',\n 'org_ids' => 'SOME_STRING_VALUE'\n]);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + }, + { + "lang": "java", + "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/data/services/%7BserviceCode%7D/clients?page=SOME_STRING_VALUE&size=SOME_STRING_VALUE&org_ids=SOME_STRING_VALUE\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .asString();" + }, + { + "lang": "go", + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/data/services/%7BserviceCode%7D/clients?page=SOME_STRING_VALUE&size=SOME_STRING_VALUE&org_ids=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + }, + { + "lang": "python", + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/data/services/%7BserviceCode%7D/clients?page=SOME_STRING_VALUE&size=SOME_STRING_VALUE&org_ids=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + }, + { + "lang": "csharp", + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/data/services/%7BserviceCode%7D/clients?page=SOME_STRING_VALUE&size=SOME_STRING_VALUE&org_ids=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + }, + { + "lang": "ruby", + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/data/services/%7BserviceCode%7D/clients?page=SOME_STRING_VALUE&size=SOME_STRING_VALUE&org_ids=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + } + ] + } + }, + "/console/organizations/{orgId}/integrations/entp": { + "post": { + "summary": "create entp integration", + "tags": [ + "Organizations" + ], + "parameters": [ + { + "name": "Authorization", + "description": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "x-api-key", + "description": "API key", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "orgId", + "description": "AMS org id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "name", + "description": "integration name", + "in": "query", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "description", + "in": "query", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "certificate": { + "description": "form data", + "type": "string", + "format": "binary" + } + }, + "required": [ + "certificate" + ] + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "apiKey": { + "type": "string" + }, + "orgId": { + "type": "string" + }, + "technicalAccountId": { + "type": "string" + } + } + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + }, + "500": { + "description": "Internal Server Error" + } + }, + "x-codeSamples": [ + { + "lang": "shell", + "source": "curl --request POST \\\n --url 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp?name=SOME_STRING_VALUE&description=SOME_STRING_VALUE' \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'accept: multipart/form-data' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + }, + { + "lang": "node", + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp';\n\nlet options = {\n method: 'POST',\n qs: {name: 'SOME_STRING_VALUE', description: 'SOME_STRING_VALUE'},\n headers: {\n accept: 'multipart/form-data',\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" + }, + { + "lang": "php", + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setQueryData([\n 'name' => 'SOME_STRING_VALUE',\n 'description' => 'SOME_STRING_VALUE'\n]);\n\n$request->setHeaders([\n 'accept' => 'multipart/form-data',\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + }, + { + "lang": "java", + "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp?name=SOME_STRING_VALUE&description=SOME_STRING_VALUE\")\n .header(\"accept\", \"multipart/form-data\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + }, + { + "lang": "go", + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp?name=SOME_STRING_VALUE&description=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"POST\", url, nil)\n\n\treq.Header.Add(\"accept\", \"multipart/form-data\")\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + }, + { + "lang": "python", + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'accept': \"multipart/form-data\",\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/integrations/entp?name=SOME_STRING_VALUE&description=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + }, + { + "lang": "csharp", + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp?name=SOME_STRING_VALUE&description=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"accept\", \"multipart/form-data\");\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + }, + { + "lang": "ruby", + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp?name=SOME_STRING_VALUE&description=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = 'multipart/form-data'\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + } + ] + } + }, + "/console/organizations/{orgId}/integrations/entp/{intId}/bindings": { + "post": { + "summary": "upload and bind certificate", + "tags": [ + "Organizations" + ], + "parameters": [ + { + "name": "Authorization", + "description": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "x-api-key", + "description": "API key", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "orgId", + "description": "AMS org id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "intId", + "description": "integration id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "certificate": { + "description": "certificate", + "type": "string", + "format": "binary" + } + }, + "required": [ + "certificate" + ] + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "bindingId": { + "type": "string" + }, + "orgId": { + "type": "string" + }, + "technicalAccountId": { + "type": "string" + }, + "certificateFingerprint": { + "type": "string" + }, + "notAfter": { + "type": "integer" + } + } + } + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + }, + "500": { + "description": "Internal Server Error" + } + }, + "x-codeSamples": [ + { + "lang": "shell", + "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/bindings \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'accept: multipart/form-data' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + }, + { + "lang": "node", + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/bindings';\n\nlet options = {\n method: 'POST',\n headers: {\n accept: 'multipart/form-data',\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" + }, + { + "lang": "php", + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/bindings');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'accept' => 'multipart/form-data',\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + }, + { + "lang": "java", + "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/bindings\")\n .header(\"accept\", \"multipart/form-data\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + }, + { + "lang": "go", + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/bindings\"\n\n\treq, _ := http.NewRequest(\"POST\", url, nil)\n\n\treq.Header.Add(\"accept\", \"multipart/form-data\")\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + }, + { + "lang": "python", + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'accept': \"multipart/form-data\",\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/bindings\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + }, + { + "lang": "csharp", + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/bindings\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"accept\", \"multipart/form-data\");\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + }, + { + "lang": "ruby", + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/bindings\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = 'multipart/form-data'\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + } + ] + }, + "get": { + "summary": "list integration bindings", + "tags": [ + "Organizations" + ], + "parameters": [ + { + "name": "Authorization", + "description": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "x-api-key", + "description": "API key", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "orgId", + "description": "AMS org id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "intId", + "description": "integration id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "bindingId": { + "type": "string" + }, + "orgId": { + "type": "string" + }, + "technicalAccountId": { + "type": "string" + }, + "certificateFingerprint": { + "type": "string" + }, + "notAfter": { + "type": "integer" + } + } + } + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + }, + "500": { + "description": "Internal Server Error" + } + }, + "x-codeSamples": [ + { + "lang": "shell", + "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/bindings \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + }, + { + "lang": "node", + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/bindings';\n\nlet options = {\n method: 'GET',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" + }, + { + "lang": "php", + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/bindings');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + }, + { + "lang": "java", + "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/bindings\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + }, + { + "lang": "go", + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/bindings\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + }, + { + "lang": "python", + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/bindings\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + }, + { + "lang": "csharp", + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/bindings\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + }, + { + "lang": "ruby", + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/bindings\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + } + ] + } + }, + "/console/organizations/{orgId}/integrations/entp/{intId}/service/{sdkCode}/properties": { + "get": { + "summary": "list of credential sdk properties", + "tags": [ + "Organizations" + ], + "parameters": [ + { + "name": "Authorization", + "description": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "x-api-key", + "description": "API key", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "orgId", + "description": "AMS org id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "intId", + "description": "Credential id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "sdkCode", + "description": "Sdk code", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "sdkCode": { + "type": "string" + }, + "name": { + "type": "string" + }, + "sdkList": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "code": { + "type": "string" + }, + "name": { + "type": "string" + } + } + } + }, + "licenseConfigs": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "productId": { + "type": "string" + }, + "description": { + "type": "string" + }, + "selected": { + "type": "boolean" + } + } + } + } + } + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + }, + "500": { + "description": "Internal Server Error" + } + }, + "x-codeSamples": [ + { + "lang": "shell", + "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/service/%7BsdkCode%7D/properties \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + }, + { + "lang": "node", + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/service/%7BsdkCode%7D/properties';\n\nlet options = {\n method: 'GET',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" + }, + { + "lang": "php", + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/service/%7BsdkCode%7D/properties');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + }, + { + "lang": "java", + "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/service/%7BsdkCode%7D/properties\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + }, + { + "lang": "go", + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/service/%7BsdkCode%7D/properties\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + }, + { + "lang": "python", + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/service/%7BsdkCode%7D/properties\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + }, + { + "lang": "csharp", + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/service/%7BsdkCode%7D/properties\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + }, + { + "lang": "ruby", + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/service/%7BsdkCode%7D/properties\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + } + ] + } + }, + "/console/organizations/{orgId}/integrations/entp/{intId}/bindings/{bindingId}": { + "delete": { + "summary": "delete binding", + "tags": [ + "Organizations" + ], + "parameters": [ + { + "name": "Authorization", + "description": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "x-api-key", + "description": "API key", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "orgId", + "description": "AMS org id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "intId", + "description": "integration id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "bindingId", + "description": "IMS binding id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + }, + "400": { + "description": "Bad Request" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + }, + "500": { + "description": "Internal Server Error" + } + }, + "x-codeSamples": [ + { + "lang": "shell", + "source": "curl --request DELETE \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/bindings/%7BbindingId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + }, + { + "lang": "node", + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/bindings/%7BbindingId%7D';\n\nlet options = {\n method: 'DELETE',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" + }, + { + "lang": "php", + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/bindings/%7BbindingId%7D');\n$request->setMethod(HTTP_METH_DELETE);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + }, + { + "lang": "java", + "source": "HttpResponse response = Unirest.delete(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/bindings/%7BbindingId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + }, + { + "lang": "go", + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/bindings/%7BbindingId%7D\"\n\n\treq, _ := http.NewRequest(\"DELETE\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + }, + { + "lang": "python", + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"DELETE\", \"/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/bindings/%7BbindingId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + }, + { + "lang": "csharp", + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/bindings/%7BbindingId%7D\");\nvar request = new RestRequest(Method.DELETE);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + }, + { + "lang": "ruby", + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/bindings/%7BbindingId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + } + ] + } + }, + "/console/organizations/{orgId}/integrations/entp/{intId}/services": { + "put": { + "summary": "subscribe entp integration to services", + "tags": [ + "Organizations" + ], + "parameters": [ + { + "name": "Authorization", + "description": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "x-api-key", + "description": "API key", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "orgId", + "description": "AMS org id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "intId", + "description": "integration id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/Subscriptionlist" + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "sdkList": { + "type": "array", + "items": { + "type": "string" + } + }, + "errorList": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + }, + "500": { + "description": "Internal Server Error" + } + }, + "x-codeSamples": [ + { + "lang": "shell", + "source": "curl --request PUT \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/services \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE' \\\n --data '[{\"sdkCode\":\"string\",\"atlasPlanCode\":\"string\",\"licenseConfigs\":[{\"id\":\"string\",\"name\":\"string\",\"productId\":\"string\",\"description\":\"string\",\"selected\":true}],\"roles\":[{\"id\":\"string\",\"code\":\"string\",\"name\":\"string\"}]}]'" + }, + { + "lang": "node", + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/services';\n\nlet options = {\n method: 'PUT',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n },\n body: '[{\"sdkCode\":\"string\",\"atlasPlanCode\":\"string\",\"licenseConfigs\":[{\"id\":\"string\",\"name\":\"string\",\"productId\":\"string\",\"description\":\"string\",\"selected\":true}],\"roles\":[{\"id\":\"string\",\"code\":\"string\",\"name\":\"string\"}]}]'\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" + }, + { + "lang": "php", + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/services');\n$request->setMethod(HTTP_METH_PUT);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('[{\"sdkCode\":\"string\",\"atlasPlanCode\":\"string\",\"licenseConfigs\":[{\"id\":\"string\",\"name\":\"string\",\"productId\":\"string\",\"description\":\"string\",\"selected\":true}],\"roles\":[{\"id\":\"string\",\"code\":\"string\",\"name\":\"string\"}]}]');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + }, + { + "lang": "java", + "source": "HttpResponse response = Unirest.put(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/services\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .body(\"[{\\\"sdkCode\\\":\\\"string\\\",\\\"atlasPlanCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"id\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\",\\\"productId\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"selected\\\":true}],\\\"roles\\\":[{\\\"id\\\":\\\"string\\\",\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}]\")\n .asString();" + }, + { + "lang": "go", + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/services\"\n\n\tpayload := strings.NewReader(\"[{\\\"sdkCode\\\":\\\"string\\\",\\\"atlasPlanCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"id\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\",\\\"productId\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"selected\\\":true}],\\\"roles\\\":[{\\\"id\\\":\\\"string\\\",\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}]\")\n\n\treq, _ := http.NewRequest(\"PUT\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + }, + { + "lang": "python", + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"[{\\\"sdkCode\\\":\\\"string\\\",\\\"atlasPlanCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"id\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\",\\\"productId\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"selected\\\":true}],\\\"roles\\\":[{\\\"id\\\":\\\"string\\\",\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}]\"\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"PUT\", \"/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/services\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + }, + { + "lang": "csharp", + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/services\");\nvar request = new RestRequest(Method.PUT);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"[{\\\"sdkCode\\\":\\\"string\\\",\\\"atlasPlanCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"id\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\",\\\"productId\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"selected\\\":true}],\\\"roles\\\":[{\\\"id\\\":\\\"string\\\",\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}]\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" + }, + { + "lang": "ruby", + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/services\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Put.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\nrequest.body = \"[{\\\"sdkCode\\\":\\\"string\\\",\\\"atlasPlanCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"id\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\",\\\"productId\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"selected\\\":true}],\\\"roles\\\":[{\\\"id\\\":\\\"string\\\",\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}]\"\n\nresponse = http.request(request)\nputs response.read_body" + } + ] + } + }, + "/console/organizations/{orgId}/integrations/entp/{intId}/service": { + "post": { + "summary": "subscribe entp integration to service", + "tags": [ + "Organizations" + ], + "parameters": [ + { + "name": "Authorization", + "description": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "x-api-key", + "description": "API key", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "orgId", + "description": "AMS org id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "intId", + "description": "integration id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/SubscribeItem" + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "sdkList": { + "type": "array", + "items": { + "type": "string" + } + }, + "errorList": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + }, + "500": { + "description": "Internal Server Error" + } + }, + "x-codeSamples": [ + { + "lang": "shell", + "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/service \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE' \\\n --data '{\"sdkCode\":\"string\",\"atlasPlanCode\":\"string\",\"licenseConfigs\":[{\"id\":\"string\",\"name\":\"string\",\"productId\":\"string\",\"description\":\"string\",\"selected\":true}],\"roles\":[{\"id\":\"string\",\"code\":\"string\",\"name\":\"string\"}]}'" + }, + { + "lang": "node", + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/service';\n\nlet options = {\n method: 'POST',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n },\n body: '{\"sdkCode\":\"string\",\"atlasPlanCode\":\"string\",\"licenseConfigs\":[{\"id\":\"string\",\"name\":\"string\",\"productId\":\"string\",\"description\":\"string\",\"selected\":true}],\"roles\":[{\"id\":\"string\",\"code\":\"string\",\"name\":\"string\"}]}'\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" + }, + { + "lang": "php", + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/service');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('{\"sdkCode\":\"string\",\"atlasPlanCode\":\"string\",\"licenseConfigs\":[{\"id\":\"string\",\"name\":\"string\",\"productId\":\"string\",\"description\":\"string\",\"selected\":true}],\"roles\":[{\"id\":\"string\",\"code\":\"string\",\"name\":\"string\"}]}');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + }, + { + "lang": "java", + "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/service\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .body(\"{\\\"sdkCode\\\":\\\"string\\\",\\\"atlasPlanCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"id\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\",\\\"productId\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"selected\\\":true}],\\\"roles\\\":[{\\\"id\\\":\\\"string\\\",\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}\")\n .asString();" + }, + { + "lang": "go", + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/service\"\n\n\tpayload := strings.NewReader(\"{\\\"sdkCode\\\":\\\"string\\\",\\\"atlasPlanCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"id\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\",\\\"productId\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"selected\\\":true}],\\\"roles\\\":[{\\\"id\\\":\\\"string\\\",\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}\")\n\n\treq, _ := http.NewRequest(\"POST\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + }, + { + "lang": "python", + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"{\\\"sdkCode\\\":\\\"string\\\",\\\"atlasPlanCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"id\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\",\\\"productId\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"selected\\\":true}],\\\"roles\\\":[{\\\"id\\\":\\\"string\\\",\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}\"\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/service\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + }, + { + "lang": "csharp", + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/service\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"sdkCode\\\":\\\"string\\\",\\\"atlasPlanCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"id\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\",\\\"productId\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"selected\\\":true}],\\\"roles\\\":[{\\\"id\\\":\\\"string\\\",\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" + }, + { + "lang": "ruby", + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/service\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\nrequest.body = \"{\\\"sdkCode\\\":\\\"string\\\",\\\"atlasPlanCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"id\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\",\\\"productId\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"selected\\\":true}],\\\"roles\\\":[{\\\"id\\\":\\\"string\\\",\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}\"\n\nresponse = http.request(request)\nputs response.read_body" + } + ] + } + }, + "/console/organizations/{orgId}/integrations/entp/masterTechnicalAccount": { + "post": { + "summary": "create master technical account", + "tags": [ + "Organizations" + ], + "parameters": [ + { + "name": "Authorization", + "description": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "x-api-key", + "description": "API key", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "orgId", + "description": "AMS org id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "certificate": { + "description": "public certificate", + "type": "string", + "format": "binary" + } + }, + "required": [ + "certificate" + ] + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "orgCode": { + "type": "string" + }, + "technicalAccountId": { + "type": "string" + }, + "metaScopes": { + "type": "string" + } + } + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + }, + "500": { + "description": "Internal Server Error" + } + }, + "x-codeSamples": [ + { + "lang": "shell", + "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/masterTechnicalAccount \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'accept: multipart/form-data' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + }, + { + "lang": "node", + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/masterTechnicalAccount';\n\nlet options = {\n method: 'POST',\n headers: {\n accept: 'multipart/form-data',\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" + }, + { + "lang": "php", + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/masterTechnicalAccount');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'accept' => 'multipart/form-data',\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + }, + { + "lang": "java", + "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/masterTechnicalAccount\")\n .header(\"accept\", \"multipart/form-data\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + }, + { + "lang": "go", + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/masterTechnicalAccount\"\n\n\treq, _ := http.NewRequest(\"POST\", url, nil)\n\n\treq.Header.Add(\"accept\", \"multipart/form-data\")\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + }, + { + "lang": "python", + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'accept': \"multipart/form-data\",\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/integrations/entp/masterTechnicalAccount\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + }, + { + "lang": "csharp", + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/masterTechnicalAccount\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"accept\", \"multipart/form-data\");\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + }, + { + "lang": "ruby", + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/masterTechnicalAccount\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = 'multipart/form-data'\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + } + ] + } + }, + "/console/services/ims/organizations/{orgId}/terms": { + "get": { + "summary": "check developer terms acceptance", + "tags": [ + "DevTerms" + ], + "parameters": [ + { + "name": "Authorization", + "description": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "x-api-key", + "description": "API key", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "orgId", + "description": "AMS org id or IMS org id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Developer Terms Check Response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "accepted": { + "type": "boolean", + "description": "True if the user accepted the Developer Terms (but not necessarily the latest version). Both the 'accepted' and 'current' properties MUST be true to indicate that the user has accepted the latest/current version of the Developer Terms" + }, + "current": { + "type": "boolean", + "description": "True if the user accepted the latest/current version of the Developer Terms. If false, the user has not accepted the latest/current version and will not be granted access to Developer Console" + } + } + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + }, + "500": { + "description": "Internal Server Error" + } + }, + "x-codeSamples": [ + { + "lang": "shell", + "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + }, + { + "lang": "node", + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms';\n\nlet options = {\n method: 'GET',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" + }, + { + "lang": "php", + "source": "setUrl('https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + }, + { + "lang": "java", + "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + }, + { + "lang": "go", + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + }, + { + "lang": "python", + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/services/ims/organizations/%7BorgId%7D/terms\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + }, + { + "lang": "csharp", + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + }, + { + "lang": "ruby", + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + } + ] + }, + "post": { + "summary": "accept developer terms", + "tags": [ + "DevTerms" + ], + "parameters": [ + { + "name": "Authorization", + "description": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "x-api-key", + "description": "API key", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "orgId", + "description": "AMS org id or IMS org id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Developer Terms Acceptance Response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "accepted": { + "type": "boolean", + "description": "True if the user successfully accepted the latest version of the Developer Terms." + } + } + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + }, + "500": { + "description": "Internal Server Error" + } + }, + "x-codeSamples": [ + { + "lang": "shell", + "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + }, + { + "lang": "node", + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms';\n\nlet options = {\n method: 'POST',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" + }, + { + "lang": "php", + "source": "setUrl('https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + }, + { + "lang": "java", + "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + }, + { + "lang": "go", + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms\"\n\n\treq, _ := http.NewRequest(\"POST\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + }, + { + "lang": "python", + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/services/ims/organizations/%7BorgId%7D/terms\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + }, + { + "lang": "csharp", + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + }, + { + "lang": "ruby", + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + } + ] + } + }, + "/console/services/ims/terms": { + "get": { + "summary": "get developer terms", + "tags": [ + "DevTerms" + ], + "parameters": [ + { + "name": "Authorization", + "description": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "x-api-key", + "description": "API key", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Developer Terms Text", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "tc": { + "type": "array", + "items": { + "type": "object", + "properties": { + "text": { + "type": "string", + "description": "Text of Developer Terms" + }, + "locale": { + "type": "string", + "description": "Language of the Developer Terms text" + } + } + } + } + } + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + }, + "500": { + "description": "Internal Server Error" + } + }, + "x-codeSamples": [ + { + "lang": "shell", + "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/services/ims/terms \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + }, + { + "lang": "node", + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/services/ims/terms';\n\nlet options = {\n method: 'GET',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" + }, + { + "lang": "php", + "source": "setUrl('https://developers-stage.adobe.io/console/services/ims/terms');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + }, + { + "lang": "java", + "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/services/ims/terms\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + }, + { + "lang": "go", + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/services/ims/terms\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + }, + { + "lang": "python", + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/services/ims/terms\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + }, + { + "lang": "csharp", + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/services/ims/terms\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + }, + { + "lang": "ruby", + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/services/ims/terms\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + } + ] + } + }, + "/console/organizations/{orgId}/integrations/{intId}": { + "get": { + "summary": "get integration details", + "tags": [ + "Organizations" + ], + "parameters": [ + { + "name": "Authorization", + "description": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "x-api-key", + "description": "API key", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "orgId", + "description": "AMS org id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "intId", + "description": "integration id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "apikey": { + "type": "string" + }, + "description": { + "type": "string" + }, + "eventProviders": { + "type": "array", + "items": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "id": { + "type": "integer" + } + } + } + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "orgCode": { + "type": "string" + }, + "orgId": { + "type": "string" + }, + "orgName": { + "type": "string" + }, + "platform": { + "type": "string" + }, + "production": { + "type": "boolean" + }, + "requestState": { + "type": "string", + "description": "enum [WAITING, APPROVED, REJECTED, RESET]" + }, + "sdkList": { + "type": "array", + "items": { + "type": "string", + "description": "sdk code" + } + }, + "status": { + "type": "string" + }, + "type": { + "type": "string" + } + } + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + }, + "500": { + "description": "Internal Server Error" + } + }, + "x-codeSamples": [ + { + "lang": "shell", + "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + }, + { + "lang": "node", + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D';\n\nlet options = {\n method: 'GET',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" + }, + { + "lang": "php", + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + }, + { + "lang": "java", + "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + }, + { + "lang": "go", + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + }, + { + "lang": "python", + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/integrations/%7BintId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + }, + { + "lang": "csharp", + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + }, + { + "lang": "ruby", + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + } + ] + }, + "delete": { + "summary": "delete integration", + "tags": [ + "Organizations" + ], + "parameters": [ + { + "name": "Authorization", + "description": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "x-api-key", + "description": "API key", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "orgId", + "description": "AMS org id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "intId", + "description": "integration id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "400": { + "description": "Bad Request" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + }, + "500": { + "description": "Internal Server Error" + } + }, + "x-codeSamples": [ + { + "lang": "shell", + "source": "curl --request DELETE \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + }, + { + "lang": "node", + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D';\n\nlet options = {\n method: 'DELETE',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" + }, + { + "lang": "php", + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D');\n$request->setMethod(HTTP_METH_DELETE);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + }, + { + "lang": "java", + "source": "HttpResponse response = Unirest.delete(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + }, + { + "lang": "go", + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D\"\n\n\treq, _ := http.NewRequest(\"DELETE\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + }, + { + "lang": "python", + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"DELETE\", \"/console/organizations/%7BorgId%7D/integrations/%7BintId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + }, + { + "lang": "csharp", + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D\");\nvar request = new RestRequest(Method.DELETE);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + }, + { + "lang": "ruby", + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + } + ] + } + }, + "/console/organizations/{orgId}/integrations/{intId}/secrets": { + "get": { + "deprecated": true, + "summary": "get integration secrets", + "tags": [ + "Organizations" + ], + "parameters": [ + { + "name": "Authorization", + "description": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "x-api-key", + "description": "API key", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "orgId", + "description": "AMS org id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "intId", + "description": "integration id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "client_id": { + "type": "string" + }, + "client_secrets": { + "type": "array", + "items": { + "type": "object", + "properties": { + "client_secret": { + "type": "string" + }, + "expires_at": { + "type": "string" + }, + "expires_at_str": { + "type": "string" + }, + "last_used_at": { + "type": "string" + }, + "uuid": { + "type": "string" + } + } + } + } + } + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + }, + "500": { + "description": "Internal Server Error" + } + }, + "x-codeSamples": [ + { + "lang": "shell", + "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/secrets \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + }, + { + "lang": "node", + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/secrets';\n\nlet options = {\n method: 'GET',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" + }, + { + "lang": "php", + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/secrets');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + }, + { + "lang": "java", + "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/secrets\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + }, + { + "lang": "go", + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/secrets\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + }, + { + "lang": "python", + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/secrets\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + }, + { + "lang": "csharp", + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/secrets\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + }, + { + "lang": "ruby", + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/secrets\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + } + ] + } + }, + "/console/organizations/{orgId}/credentials/{credentialId}/secrets/{secretId}": { + "delete": { + "summary": "Delete credential client secret by secret id", + "tags": [ + "Organizations" + ], + "parameters": [ + { + "name": "Authorization", + "description": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "x-api-key", + "description": "API key", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "orgId", + "description": "AMS org id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "credentialId", + "description": "credential id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "secretId", + "description": "secret id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Credential Not Found" + }, + "500": { + "description": "Internal Server Error" + } + }, + "x-codeSamples": [ + { + "lang": "shell", + "source": "curl --request DELETE \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/%7BcredentialId%7D/secrets/%7BsecretId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + }, + { + "lang": "node", + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/%7BcredentialId%7D/secrets/%7BsecretId%7D';\n\nlet options = {\n method: 'DELETE',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" + }, + { + "lang": "php", + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/%7BcredentialId%7D/secrets/%7BsecretId%7D');\n$request->setMethod(HTTP_METH_DELETE);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + }, + { + "lang": "java", + "source": "HttpResponse response = Unirest.delete(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/%7BcredentialId%7D/secrets/%7BsecretId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + }, + { + "lang": "go", + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/%7BcredentialId%7D/secrets/%7BsecretId%7D\"\n\n\treq, _ := http.NewRequest(\"DELETE\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + }, + { + "lang": "python", + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"DELETE\", \"/console/organizations/%7BorgId%7D/credentials/%7BcredentialId%7D/secrets/%7BsecretId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + }, + { + "lang": "csharp", + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/%7BcredentialId%7D/secrets/%7BsecretId%7D\");\nvar request = new RestRequest(Method.DELETE);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + }, + { + "lang": "ruby", + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/%7BcredentialId%7D/secrets/%7BsecretId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + } + ] + } + }, + "/console/organizations/{orgId}/credentials/{credentialId}/secrets": { + "post": { + "summary": "Add credential client secret", + "tags": [ + "Organizations" + ], + "parameters": [ + { + "name": "Authorization", + "description": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "x-api-key", + "description": "API key", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "orgId", + "description": "AMS org id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "credentialId", + "description": "credential id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "expires_at": { + "type": "string" + }, + "expires_at_str": { + "type": "string" + }, + "client_secret": { + "type": "string" + } + } + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Credential Not Found" + }, + "500": { + "description": "Internal Server Error" + } + }, + "x-codeSamples": [ + { + "lang": "shell", + "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/%7BcredentialId%7D/secrets \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + }, + { + "lang": "node", + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/%7BcredentialId%7D/secrets';\n\nlet options = {\n method: 'POST',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" + }, + { + "lang": "php", + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/%7BcredentialId%7D/secrets');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + }, + { + "lang": "java", + "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/%7BcredentialId%7D/secrets\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + }, + { + "lang": "go", + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/%7BcredentialId%7D/secrets\"\n\n\treq, _ := http.NewRequest(\"POST\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + }, + { + "lang": "python", + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/credentials/%7BcredentialId%7D/secrets\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + }, + { + "lang": "csharp", + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/%7BcredentialId%7D/secrets\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + }, + { + "lang": "ruby", + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/%7BcredentialId%7D/secrets\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + } + ] + }, + "get": { + "summary": "Get credential client secrets", + "tags": [ + "Organizations" + ], + "parameters": [ + { + "name": "Authorization", + "description": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "x-api-key", + "description": "API key", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "orgId", + "description": "AMS org id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "credentialId", + "description": "credential id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "expires_at": { + "type": "string" + }, + "expires_at_str": { + "type": "string" + }, + "client_secret": { + "type": "string" + } + } + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Credential Not Found" + }, + "500": { + "description": "Internal Server Error" + } + }, + "x-codeSamples": [ + { + "lang": "shell", + "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/%7BcredentialId%7D/secrets \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + }, + { + "lang": "node", + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/%7BcredentialId%7D/secrets';\n\nlet options = {\n method: 'GET',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" + }, + { + "lang": "php", + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/%7BcredentialId%7D/secrets');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + }, + { + "lang": "java", + "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/%7BcredentialId%7D/secrets\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + }, + { + "lang": "go", + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/%7BcredentialId%7D/secrets\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + }, + { + "lang": "python", + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/credentials/%7BcredentialId%7D/secrets\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + }, + { + "lang": "csharp", + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/%7BcredentialId%7D/secrets\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + }, + { + "lang": "ruby", + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/%7BcredentialId%7D/secrets\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + } + ] + } + }, + "/console/organizations/{orgId}/meshes": { + "get": { + "summary": "Get organization meshes", + "tags": [ + "Meshes" + ], + "parameters": [ + { + "name": "orgId", + "description": "Organization id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Authorization", + "description": "Access token", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "apiKey", + "description": "API key", + "in": "query", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Get org meshes success" + }, + "401": { + "description": "Unauthorized - Oauth token is not valid" + }, + "403": { + "description": "Forbidden - Oauth token is missing / User does not belong to organization" + }, + "500": { + "description": "Error retrieving meshes" + } + }, + "x-codeSamples": [ + { + "lang": "shell", + "source": "curl --request GET \\\n --url 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/meshes?apiKey=SOME_STRING_VALUE' \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json'" + }, + { + "lang": "node", + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/meshes';\n\nlet options = {\n method: 'GET',\n qs: {apiKey: 'SOME_STRING_VALUE'},\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'}\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" + }, + { + "lang": "php", + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/meshes');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setQueryData([\n 'apiKey' => 'SOME_STRING_VALUE'\n]);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + }, + { + "lang": "java", + "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/meshes?apiKey=SOME_STRING_VALUE\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .asString();" + }, + { + "lang": "go", + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/meshes?apiKey=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + }, + { + "lang": "python", + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/meshes?apiKey=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + }, + { + "lang": "csharp", + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/meshes?apiKey=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + }, + { + "lang": "ruby", + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/meshes?apiKey=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + } + ] + } + }, + "/console/organizations/{orgId}/projects/{projectId}/workspaces/{workspaceId}/meshes": { + "post": { + "summary": "Create mesh", + "tags": [ + "Meshes" + ], + "parameters": [ + { + "name": "orgId", + "description": "Organization id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "projectId", + "description": "Project id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "workspaceId", + "description": "Workspace id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Authorization", + "description": "Access token", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "apiKey", + "description": "API key", + "in": "query", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/Mesh" + }, + "responses": { + "201": { + "description": "Create mesh success" + }, + "400": { + "description": "Bad Request - Invalid mesh configuration" + }, + "401": { + "description": "Unauthorized - Oauth token is not valid" + }, + "403": { + "description": "Forbidden - Oauth token is missing / User does not belong to organization" + }, + "409": { + "description": "Conflict - Specified meshId already exists" + }, + "500": { + "description": "Error creating mesh" + } + }, + "x-codeSamples": [ + { + "lang": "shell", + "source": "curl --request POST \\\n --url 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes?apiKey=SOME_STRING_VALUE' \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --data '{}'" + }, + { + "lang": "node", + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes';\n\nlet options = {\n method: 'POST',\n qs: {apiKey: 'SOME_STRING_VALUE'},\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'},\n body: '{}'\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" + }, + { + "lang": "php", + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setQueryData([\n 'apiKey' => 'SOME_STRING_VALUE'\n]);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('{}');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + }, + { + "lang": "java", + "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes?apiKey=SOME_STRING_VALUE\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .body(\"{}\")\n .asString();" + }, + { + "lang": "go", + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes?apiKey=SOME_STRING_VALUE\"\n\n\tpayload := strings.NewReader(\"{}\")\n\n\treq, _ := http.NewRequest(\"POST\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + }, + { + "lang": "python", + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"{}\"\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes?apiKey=SOME_STRING_VALUE\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + }, + { + "lang": "csharp", + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes?apiKey=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"{}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" + }, + { + "lang": "ruby", + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes?apiKey=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest.body = \"{}\"\n\nresponse = http.request(request)\nputs response.read_body" + } + ] + } + }, + "/console/organizations/{orgId}/projects/{projectId}/workspaces/{workspaceId}/meshes/{meshId}": { + "get": { + "summary": "Get mesh", + "tags": [ + "Meshes" + ], + "parameters": [ + { + "name": "orgId", + "description": "Organization id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "projectId", + "description": "Project id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "workspaceId", + "description": "Workspace id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "meshId", + "description": "Mesh id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Authorization", + "description": "Access token", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "apiKey", + "description": "API key", + "in": "query", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Get mesh success" + }, + "401": { + "description": "Unauthorized - Oauth token is not valid" + }, + "403": { + "description": "Forbidden - Oauth token is missing / User does not belong to organization" + }, + "404": { + "description": "Specified mesh not found" + }, + "500": { + "description": "Error retrieving specified mesh" + } + }, + "x-codeSamples": [ + { + "lang": "shell", + "source": "curl --request GET \\\n --url 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D?apiKey=SOME_STRING_VALUE' \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json'" + }, + { + "lang": "node", + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D';\n\nlet options = {\n method: 'GET',\n qs: {apiKey: 'SOME_STRING_VALUE'},\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'}\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" + }, + { + "lang": "php", + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setQueryData([\n 'apiKey' => 'SOME_STRING_VALUE'\n]);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + }, + { + "lang": "java", + "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D?apiKey=SOME_STRING_VALUE\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .asString();" + }, + { + "lang": "go", + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D?apiKey=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + }, + { + "lang": "python", + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D?apiKey=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + }, + { + "lang": "csharp", + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D?apiKey=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + }, + { + "lang": "ruby", + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D?apiKey=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + } + ] + }, + "put": { + "summary": "Replace mesh", + "tags": [ + "Meshes" + ], + "parameters": [ + { + "name": "orgId", + "description": "Organization id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "projectId", + "description": "Project id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "workspaceId", + "description": "Workspace id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "meshId", + "description": "Mesh id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Authorization", + "description": "Access token", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "apiKey", + "description": "API key", + "in": "query", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/Mesh" + }, + "responses": { + "204": { + "description": "Replace mesh success" + }, + "400": { + "description": "Bad Request - Invalid mesh configuration" + }, + "401": { + "description": "Unauthorized - Oauth token is not valid" + }, + "403": { + "description": "Forbidden - Oauth token is missing / User does not belong to organization" + }, + "404": { + "description": "Specified mesh not found" + }, + "500": { + "description": "Error replacing mesh" + } + }, + "x-codeSamples": [ + { + "lang": "shell", + "source": "curl --request PUT \\\n --url 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D?apiKey=SOME_STRING_VALUE' \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --data '{}'" + }, + { + "lang": "node", + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D';\n\nlet options = {\n method: 'PUT',\n qs: {apiKey: 'SOME_STRING_VALUE'},\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'},\n body: '{}'\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" + }, + { + "lang": "php", + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D');\n$request->setMethod(HTTP_METH_PUT);\n\n$request->setQueryData([\n 'apiKey' => 'SOME_STRING_VALUE'\n]);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('{}');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + }, + { + "lang": "java", + "source": "HttpResponse response = Unirest.put(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D?apiKey=SOME_STRING_VALUE\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .body(\"{}\")\n .asString();" + }, + { + "lang": "go", + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D?apiKey=SOME_STRING_VALUE\"\n\n\tpayload := strings.NewReader(\"{}\")\n\n\treq, _ := http.NewRequest(\"PUT\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + }, + { + "lang": "python", + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"{}\"\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"PUT\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D?apiKey=SOME_STRING_VALUE\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + }, + { + "lang": "csharp", + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D?apiKey=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.PUT);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"{}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" + }, + { + "lang": "ruby", + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D?apiKey=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Put.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest.body = \"{}\"\n\nresponse = http.request(request)\nputs response.read_body" + } + ] + }, + "delete": { + "summary": "Delete mesh", + "tags": [ + "Meshes" + ], + "parameters": [ + { + "name": "orgId", + "description": "Organization id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "projectId", + "description": "Project id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "workspaceId", + "description": "Workspace id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "meshId", + "description": "Mesh id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Authorization", + "description": "Access token", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "apiKey", + "description": "API key", + "in": "query", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Delete mesh success" + }, + "401": { + "description": "Unauthorized - Oauth token is not valid" + }, + "403": { + "description": "Forbidden - Oauth token is missing / User does not belong to organization" + }, + "404": { + "description": "Specified mesh not found" + }, + "500": { + "description": "Error deleting mesh" + } + }, + "x-codeSamples": [ + { + "lang": "shell", + "source": "curl --request DELETE \\\n --url 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D?apiKey=SOME_STRING_VALUE' \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json'" + }, + { + "lang": "node", + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D';\n\nlet options = {\n method: 'DELETE',\n qs: {apiKey: 'SOME_STRING_VALUE'},\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'}\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" + }, + { + "lang": "php", + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D');\n$request->setMethod(HTTP_METH_DELETE);\n\n$request->setQueryData([\n 'apiKey' => 'SOME_STRING_VALUE'\n]);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + }, + { + "lang": "java", + "source": "HttpResponse response = Unirest.delete(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D?apiKey=SOME_STRING_VALUE\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .asString();" + }, + { + "lang": "go", + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D?apiKey=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"DELETE\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + }, + { + "lang": "python", + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"DELETE\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D?apiKey=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + }, + { + "lang": "csharp", + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D?apiKey=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.DELETE);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + }, + { + "lang": "ruby", + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D?apiKey=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + } + ] + } + }, + "/console/organizations/{orgId}/projects/{projectId}/workspaces/{workspaceId}/meshes/describe": { + "get": { + "summary": "Describe mesh", + "tags": [ + "Meshes" + ], + "parameters": [ + { + "name": "orgId", + "description": "Organization id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "projectId", + "description": "Project id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "workspaceId", + "description": "Workspace id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Authorization", + "description": "Access token", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "apiKey", + "description": "API key", + "in": "query", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Get mesh success" + }, + "401": { + "description": "Unauthorized - Oauth token is not valid" + }, + "403": { + "description": "Forbidden - Oauth token is missing / User does not belong to organization" + }, + "404": { + "description": "Specified mesh not found" + }, + "500": { + "description": "Error retrieving specified mesh" + } + }, + "x-codeSamples": [ + { + "lang": "shell", + "source": "curl --request GET \\\n --url 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/describe?apiKey=SOME_STRING_VALUE' \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json'" + }, + { + "lang": "node", + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/describe';\n\nlet options = {\n method: 'GET',\n qs: {apiKey: 'SOME_STRING_VALUE'},\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'}\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" + }, + { + "lang": "php", + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/describe');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setQueryData([\n 'apiKey' => 'SOME_STRING_VALUE'\n]);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + }, + { + "lang": "java", + "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/describe?apiKey=SOME_STRING_VALUE\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .asString();" + }, + { + "lang": "go", + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/describe?apiKey=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + }, + { + "lang": "python", + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/describe?apiKey=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + }, + { + "lang": "csharp", + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/describe?apiKey=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + }, + { + "lang": "ruby", + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/describe?apiKey=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + } + ] + } + }, + "/console/organizations/{orgId}/projects/{projectId}/workspaces/{workspaceId}/meshes/{meshId}/sources": { + "post": { + "summary": "Create mesh source", + "tags": [ + "Meshes" + ], + "parameters": [ + { + "name": "orgId", + "description": "Organization id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "projectId", + "description": "Project id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "workspaceId", + "description": "Workspace id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "meshId", + "description": "Mesh id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Authorization", + "description": "Access token", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "apiKey", + "description": "API key", + "in": "query", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/Mesh" + }, + "responses": { + "204": { + "description": "Create mesh sources success" + }, + "400": { + "description": "Bad Request - Invalid source configuration" + }, + "401": { + "description": "Unauthorized - Oauth token is not valid" + }, + "403": { + "description": "Forbidden - Oauth token is missing / User does not belong to organization" + }, + "404": { + "description": "Specified mesh not found" + }, + "409": { + "description": "Conflict - A source with the same name already exists for the specified mesh" + }, + "500": { + "description": "Error adding source" + } + }, + "x-codeSamples": [ + { + "lang": "shell", + "source": "curl --request POST \\\n --url 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D/sources?apiKey=SOME_STRING_VALUE' \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --data '{}'" + }, + { + "lang": "node", + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D/sources';\n\nlet options = {\n method: 'POST',\n qs: {apiKey: 'SOME_STRING_VALUE'},\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'},\n body: '{}'\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" + }, + { + "lang": "php", + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D/sources');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setQueryData([\n 'apiKey' => 'SOME_STRING_VALUE'\n]);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('{}');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + }, + { + "lang": "java", + "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D/sources?apiKey=SOME_STRING_VALUE\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .body(\"{}\")\n .asString();" + }, + { + "lang": "go", + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D/sources?apiKey=SOME_STRING_VALUE\"\n\n\tpayload := strings.NewReader(\"{}\")\n\n\treq, _ := http.NewRequest(\"POST\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + }, + { + "lang": "python", + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"{}\"\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D/sources?apiKey=SOME_STRING_VALUE\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + }, + { + "lang": "csharp", + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D/sources?apiKey=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"{}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" + }, + { + "lang": "ruby", + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D/sources?apiKey=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest.body = \"{}\"\n\nresponse = http.request(request)\nputs response.read_body" + } + ] + } + }, + "/console/organizations/{orgId}/projects/{projectId}/workspaces/{workspaceId}/meshes/{meshId}/sources/{sourceName}": { + "delete": { + "summary": "Delete mesh sources", + "tags": [ + "Meshes" + ], + "parameters": [ + { + "name": "orgId", + "description": "Organization id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "projectId", + "description": "Project id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "workspaceId", + "description": "Workspace id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "meshId", + "description": "Mesh id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "sourceName", + "description": "Mesh source name", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Authorization", + "description": "Access token", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "apiKey", + "description": "API key", + "in": "query", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Delete mesh sources success" + }, + "401": { + "description": "Unauthorized - Oauth token is not valid" + }, + "403": { + "description": "Forbidden - Oauth token is missing / User does not belong to organization" + }, + "404": { + "description": "Specified mesh not found / Source name not found on mesh" + }, + "500": { + "description": "Error deleting source from mesh" + } + }, + "x-codeSamples": [ + { + "lang": "shell", + "source": "curl --request DELETE \\\n --url 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D/sources/%7BsourceName%7D?apiKey=SOME_STRING_VALUE' \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json'" + }, + { + "lang": "node", + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D/sources/%7BsourceName%7D';\n\nlet options = {\n method: 'DELETE',\n qs: {apiKey: 'SOME_STRING_VALUE'},\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'}\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" + }, + { + "lang": "php", + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D/sources/%7BsourceName%7D');\n$request->setMethod(HTTP_METH_DELETE);\n\n$request->setQueryData([\n 'apiKey' => 'SOME_STRING_VALUE'\n]);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + }, + { + "lang": "java", + "source": "HttpResponse response = Unirest.delete(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D/sources/%7BsourceName%7D?apiKey=SOME_STRING_VALUE\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .asString();" + }, + { + "lang": "go", + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D/sources/%7BsourceName%7D?apiKey=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"DELETE\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + }, + { + "lang": "python", + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"DELETE\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D/sources/%7BsourceName%7D?apiKey=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + }, + { + "lang": "csharp", + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D/sources/%7BsourceName%7D?apiKey=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.DELETE);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + }, + { + "lang": "ruby", + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/meshes/%7BmeshId%7D/sources/%7BsourceName%7D?apiKey=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + } + ] + } + }, + "/console/organizations/{orgId}/credentials/oauth-server-to-server": { + "post": { + "summary": "Create oauth server to server credential", + "tags": [ + "OAuth server to server" + ], + "parameters": [ + { + "name": "orgId", + "description": "Org ID", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Authorization", + "description": "Access token", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "x-api-key", + "description": "API key", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/OAuthServerToServer" + }, + "responses": { + "201": { + "description": "Created", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "apiKey": { + "type": "string" + }, + "orgId": { + "type": "string" + }, + "technicalAccountId": { + "type": "string" + } + } + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden, ERR_MSG_QUOTA_EXCEEDED" + }, + "409": { + "description": "Conflict, ERR_MSG_DUPLICATE_NAME" + }, + "500": { + "description": "Error creating oauth server to server credential" + } + }, + "x-codeSamples": [ + { + "lang": "shell", + "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'accept: application/json' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE' \\\n --data '{\"name\":\"string\",\"description\":\"string\",\"technicalAccountName\":\"string\"}'" + }, + { + "lang": "node", + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server';\n\nlet options = {\n method: 'POST',\n headers: {\n accept: 'application/json',\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n },\n body: '{\"name\":\"string\",\"description\":\"string\",\"technicalAccountName\":\"string\"}'\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" + }, + { + "lang": "php", + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'accept' => 'application/json',\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('{\"name\":\"string\",\"description\":\"string\",\"technicalAccountName\":\"string\"}');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + }, + { + "lang": "java", + "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server\")\n .header(\"accept\", \"application/json\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .body(\"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"technicalAccountName\\\":\\\"string\\\"}\")\n .asString();" + }, + { + "lang": "go", + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server\"\n\n\tpayload := strings.NewReader(\"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"technicalAccountName\\\":\\\"string\\\"}\")\n\n\treq, _ := http.NewRequest(\"POST\", url, payload)\n\n\treq.Header.Add(\"accept\", \"application/json\")\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + }, + { + "lang": "python", + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"technicalAccountName\\\":\\\"string\\\"}\"\n\nheaders = {\n 'accept': \"application/json\",\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + }, + { + "lang": "csharp", + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"accept\", \"application/json\");\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"technicalAccountName\\\":\\\"string\\\"}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" + }, + { + "lang": "ruby", + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = 'application/json'\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\nrequest.body = \"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"technicalAccountName\\\":\\\"string\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body" + } + ] + } + }, + "/console/organizations/{orgId}/credentials/oauth-server-to-server/{credentialId}": { + "put": { + "summary": "Update oauth server to server credential", + "tags": [ + "OAuth server to server" + ], + "parameters": [ + { + "name": "orgId", + "description": "Org ID", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "credentialId", + "description": "Credential ID", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Authorization", + "description": "Access token", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "x-api-key", + "description": "API key", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/OAuthServerToServer" + }, + "responses": { + "200": { + "description": "Updated", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "apikey": { + "type": "string" + }, + "orgId": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "status": { + "type": "string" + }, + "type": { + "type": "string" + }, + "createdDate": { + "type": "string" + }, + "lastModifiedDate": { + "type": "string" + } + } + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden, ERR_MSG_QUOTA_EXCEEDED" + }, + "409": { + "description": "Conflict, ERR_MSG_DUPLICATE_NAME" + }, + "500": { + "description": "Error creating oauth server to server credential" + } + }, + "x-codeSamples": [ + { + "lang": "shell", + "source": "curl --request PUT \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'accept: application/json' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE' \\\n --data '{\"name\":\"string\",\"description\":\"string\",\"technicalAccountName\":\"string\"}'" + }, + { + "lang": "node", + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D';\n\nlet options = {\n method: 'PUT',\n headers: {\n accept: 'application/json',\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n },\n body: '{\"name\":\"string\",\"description\":\"string\",\"technicalAccountName\":\"string\"}'\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" + }, + { + "lang": "php", + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D');\n$request->setMethod(HTTP_METH_PUT);\n\n$request->setHeaders([\n 'accept' => 'application/json',\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('{\"name\":\"string\",\"description\":\"string\",\"technicalAccountName\":\"string\"}');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + }, + { + "lang": "java", + "source": "HttpResponse response = Unirest.put(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D\")\n .header(\"accept\", \"application/json\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .body(\"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"technicalAccountName\\\":\\\"string\\\"}\")\n .asString();" + }, + { + "lang": "go", + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D\"\n\n\tpayload := strings.NewReader(\"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"technicalAccountName\\\":\\\"string\\\"}\")\n\n\treq, _ := http.NewRequest(\"PUT\", url, payload)\n\n\treq.Header.Add(\"accept\", \"application/json\")\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + }, + { + "lang": "python", + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"technicalAccountName\\\":\\\"string\\\"}\"\n\nheaders = {\n 'accept': \"application/json\",\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"PUT\", \"/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + }, + { + "lang": "csharp", + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D\");\nvar request = new RestRequest(Method.PUT);\nrequest.AddHeader(\"accept\", \"application/json\");\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"technicalAccountName\\\":\\\"string\\\"}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" + }, + { + "lang": "ruby", + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Put.new(url)\nrequest[\"accept\"] = 'application/json'\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\nrequest.body = \"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"technicalAccountName\\\":\\\"string\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body" + } + ] + } + }, + "/console/organizations/{orgId}/credentials/oauth-server-to-server/{credentialId}/binding": { + "post": { + "summary": "Create oauth server to server credential binding", + "tags": [ + "OAuth server to server" + ], + "parameters": [ + { + "name": "orgId", + "description": "Org ID", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Authorization", + "description": "Access token", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "x-api-key", + "description": "API key", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "credentialId", + "description": "Credential id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "201": { + "description": "Created", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "organizationId": { + "type": "string" + }, + "clientId": { + "type": "string" + }, + "allowedScopes": { + "type": "string" + }, + "servicePrincipalId": { + "type": "string" + }, + "createdByUser": { + "type": "string" + }, + "createdAt": { + "type": "string" + } + } + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "500": { + "description": "Error creating oauth server to server credential binding" + } + }, + "x-codeSamples": [ + { + "lang": "shell", + "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/binding \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'accept: application/json' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + }, + { + "lang": "node", + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/binding';\n\nlet options = {\n method: 'POST',\n headers: {\n accept: 'application/json',\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" + }, + { + "lang": "php", + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/binding');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'accept' => 'application/json',\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + }, + { + "lang": "java", + "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/binding\")\n .header(\"accept\", \"application/json\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + }, + { + "lang": "go", + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/binding\"\n\n\treq, _ := http.NewRequest(\"POST\", url, nil)\n\n\treq.Header.Add(\"accept\", \"application/json\")\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + }, + { + "lang": "python", + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'accept': \"application/json\",\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/binding\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + }, + { + "lang": "csharp", + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/binding\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"accept\", \"application/json\");\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + }, + { + "lang": "ruby", + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/binding\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = 'application/json'\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + } + ] + }, + "delete": { + "summary": "Delete oauth server to server credential binding", + "tags": [ + "OAuth server to server" + ], + "parameters": [ + { + "name": "orgId", + "description": "Org ID", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Authorization", + "description": "Access token", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "x-api-key", + "description": "API key", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "credentialId", + "description": "Credential id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "400": { + "description": "Bad Request" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, "404": { - "description": "Not Found" + "description": "Not found" }, "500": { - "description": "Internal Server Error" + "description": "Error deleting oauth server to server credential binding" } }, "x-codeSamples": [ { "lang": "shell", - "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json'" + "source": "curl --request DELETE \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/binding \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'accept: application/json' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D',\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'}\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/binding';\n\nlet options = {\n method: 'DELETE',\n headers: {\n accept: 'application/json',\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/binding');\n$request->setMethod(HTTP_METH_DELETE);\n\n$request->setHeaders([\n 'accept' => 'application/json',\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .asString();" + "source": "HttpResponse response = Unirest.delete(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/binding\")\n .header(\"accept\", \"application/json\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/binding\"\n\n\treq, _ := http.NewRequest(\"DELETE\", url, nil)\n\n\treq.Header.Add(\"accept\", \"application/json\")\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/apps/%7BappId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'accept': \"application/json\",\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"DELETE\", \"/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/binding\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/binding\");\nvar request = new RestRequest(Method.DELETE);\nrequest.AddHeader(\"accept\", \"application/json\");\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/binding\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"accept\"] = 'application/json'\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] - } - }, - "/console/organizations/{orgId}/apps/searchName/{appName}": { + }, "get": { - "summary": "get Application by Name", + "summary": "Get oauth server to server credential binding", "tags": [ - "AppRegistry" + "OAuth server to server" ], "parameters": [ { "name": "orgId", - "description": "AMS Organization ID", + "description": "Org ID", "in": "path", "required": true, "schema": { @@ -2544,237 +5716,58 @@ } }, { - "name": "appName", - "description": "Application name", - "in": "path", + "name": "Authorization", + "description": "Access token", + "in": "header", "required": true, "schema": { "type": "string" } }, { - "name": "Authorization", - "description": "Authorization", + "name": "x-api-key", + "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } + }, + { + "name": "credentialId", + "description": "Credential id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } } ], "responses": { "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "appId": { - "type": "string", - "description": "application id" - }, - "appType": { - "type": "string", - "description": "application type - use JGR for Jaeger apps" - }, - "created": { - "type": "object", - "description": "activity log for application created", - "properties": { - "by": { - "type": "object", - "properties": { - "guid": { - "type": "string", - "description": "user guid" - } - } - }, - "on": { - "type": "string", - "description": "created timestamp" - } - } - }, - "description": { - "type": "string", - "description": "application description" - }, - "icon": { - "type": "string", - "description": "URL for the icon" - }, - "images": { - "type": "object", - "properties": { - "featuredImage1": { - "type": "string" - }, - "featuredImage2": { - "type": "string" - }, - "featuredImage3": { - "type": "string" - }, - "featuredImage4": { - "type": "string" - }, - "featuredImage5": { - "type": "string" - } - } - }, - "lastModified": { - "type": "object", - "description": "activity log for application last modified", - "properties": { - "by": { - "type": "object", - "properties": { - "guid": { - "type": "string", - "description": "user guid" - } - } - }, - "on": { - "type": "string", - "description": "last modified timestamp" - } - } - }, - "name": { - "type": "string", - "description": "application name" - }, - "reviewed": { - "type": "object", - "description": "activity log for application reviewed", - "properties": { - "by": { - "type": "object", - "properties": { - "guid": { - "type": "string", - "description": "user guid" - } - } - }, - "on": { - "type": "string", - "description": "reviewed timestamp" - }, - "notes": { - "type": "string", - "description": "reviewer notes" - } - } - }, - "status": { - "type": "string", - "description": "application status" - }, - "submitted": { - "type": "object", - "description": "activity log for application submitted", - "properties": { - "by": { - "type": "object", - "properties": { - "guid": { - "type": "string", - "description": "user guid" - } - } - }, - "on": { - "type": "string", - "description": "submitted timestamp" - }, - "notes": { - "type": "string", - "description": "submitter notes" - } - } + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "organizationId": { + "type": "string" }, - "support": { - "type": "object", - "description": "support information for the application", - "properties": { - "email": { - "type": "string" - }, - "contact": { - "type": "string" - }, - "website": { - "type": "string" - } - } + "clientId": { + "type": "string" }, - "title": { + "allowedScopes": { "type": "string" }, - "workspaces": { - "type": "array", - "description": "list of workspaces in the application", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "workspace id" - }, - "name": { - "type": "string", - "description": "workspace name" - }, - "endPoint": { - "type": "string" - }, - "deepLink": { - "type": "string" - }, - "shellProps": { - "type": "string" - }, - "releaseNotes": { - "type": "string" - }, - "approveList": { - "type": "object", - "description": "list of approveList users & orgs", - "properties": { - "users": { - "type": "array", - "items": { - "type": "object", - "properties": { - "guid": { - "type": "string" - } - } - } - }, - "orgs": { - "type": "array", - "items": { - "type": "object", - "properties": { - "orgId": { - "type": "string" - }, - "orgName": { - "type": "string" - } - } - } - } - } - } - } - } + "servicePrincipalId": { + "type": "string" + }, + "createdByUser": { + "type": "string" + }, + "createdAt": { + "type": "string" } } } @@ -2791,67 +5784,76 @@ "description": "Forbidden" }, "404": { - "description": "Not Found" + "description": "Not found" }, "500": { - "description": "Internal Server Error" + "description": "Error getting oauth server to server credential binding" } }, "x-codeSamples": [ { "lang": "shell", - "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/searchName/%7BappName%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json'" + "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/binding \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/searchName/%7BappName%7D',\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'}\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/binding';\n\nlet options = {\n method: 'GET',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/searchName/%7BappName%7D');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/binding');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/searchName/%7BappName%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .asString();" + "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/binding\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/searchName/%7BappName%7D\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/binding\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/apps/searchName/%7BappName%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/binding\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/searchName/%7BappName%7D\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/binding\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/searchName/%7BappName%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/binding\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, - "/console/organizations/{orgId}/apps/{appId}/submit": { - "post": { - "summary": "submit an Application", + "/console/organizations/{orgId}/credentials/oauth-server-to-server/{credentialId}/services": { + "put": { + "summary": "Subscribe oauth server to server credential to services", "tags": [ - "AppRegistry" + "OAuth server to server" ], "parameters": [ { - "name": "orgId", - "description": "AMS Organization ID", - "in": "path", + "name": "Authorization", + "description": "Authorization", + "in": "header", "required": true, "schema": { "type": "string" } }, { - "name": "appId", - "description": "Application id", + "name": "x-api-key", + "description": "API key", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "orgId", + "description": "AMS org id", "in": "path", "required": true, "schema": { @@ -2859,9 +5861,9 @@ } }, { - "name": "Authorization", - "description": "Authorization", - "in": "header", + "name": "credentialId", + "description": "Credential id", + "in": "path", "required": true, "schema": { "type": "string" @@ -2869,227 +5871,26 @@ } ], "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - }, - "description": "submitter notes" + "$ref": "#/components/requestBodies/Subscriptionlist" }, "responses": { "200": { - "description": "Application Submitted Successfully", + "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { - "appId": { - "type": "string", - "description": "application id" - }, - "appType": { - "type": "string", - "description": "application type - use JGR for Jaeger apps" - }, - "created": { - "type": "object", - "description": "activity log for application created", - "properties": { - "by": { - "type": "object", - "properties": { - "guid": { - "type": "string", - "description": "user guid" - } - } - }, - "on": { - "type": "string", - "description": "created timestamp" - } - } - }, - "description": { - "type": "string", - "description": "application description" - }, - "icon": { - "type": "string", - "description": "URL for the icon" - }, - "images": { - "type": "object", - "properties": { - "featuredImage1": { - "type": "string" - }, - "featuredImage2": { - "type": "string" - }, - "featuredImage3": { - "type": "string" - }, - "featuredImage4": { - "type": "string" - }, - "featuredImage5": { - "type": "string" - } - } - }, - "lastModified": { - "type": "object", - "description": "activity log for application last modified", - "properties": { - "by": { - "type": "object", - "properties": { - "guid": { - "type": "string", - "description": "user guid" - } - } - }, - "on": { - "type": "string", - "description": "last modified timestamp" - } - } - }, - "name": { - "type": "string", - "description": "application name" - }, - "reviewed": { - "type": "object", - "description": "activity log for application reviewed", - "properties": { - "by": { - "type": "object", - "properties": { - "guid": { - "type": "string", - "description": "user guid" - } - } - }, - "on": { - "type": "string", - "description": "reviewed timestamp" - }, - "notes": { - "type": "string", - "description": "reviewer notes" - } - } - }, - "status": { - "type": "string", - "description": "application status" - }, - "submitted": { - "type": "object", - "description": "activity log for application submitted", - "properties": { - "by": { - "type": "object", - "properties": { - "guid": { - "type": "string", - "description": "user guid" - } - } - }, - "on": { - "type": "string", - "description": "submitted timestamp" - }, - "notes": { - "type": "string", - "description": "submitter notes" - } - } - }, - "support": { - "type": "object", - "description": "support information for the application", - "properties": { - "email": { - "type": "string" - }, - "contact": { - "type": "string" - }, - "website": { - "type": "string" - } + "sdkList": { + "type": "array", + "items": { + "type": "string" } }, - "title": { - "type": "string" - }, - "workspaces": { + "errorList": { "type": "array", - "description": "list of workspaces in the application", "items": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "workspace id" - }, - "name": { - "type": "string", - "description": "workspace name" - }, - "endPoint": { - "type": "string" - }, - "deepLink": { - "type": "string" - }, - "shellProps": { - "type": "string" - }, - "releaseNotes": { - "type": "string" - }, - "approveList": { - "type": "object", - "description": "list of approveList users & orgs", - "properties": { - "users": { - "type": "array", - "items": { - "type": "object", - "properties": { - "guid": { - "type": "string" - } - } - } - }, - "orgs": { - "type": "array", - "items": { - "type": "object", - "properties": { - "orgId": { - "type": "string" - }, - "orgName": { - "type": "string" - } - } - } - } - } - } - } + "type": "string" } } } @@ -3116,301 +5917,104 @@ "x-codeSamples": [ { "lang": "shell", - "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D/submit \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json'" + "source": "curl --request PUT \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/services \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'accept: application/json' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE' \\\n --data '[{\"sdkCode\":\"string\",\"atlasPlanCode\":\"string\",\"licenseConfigs\":[{\"id\":\"string\",\"name\":\"string\",\"productId\":\"string\",\"description\":\"string\",\"selected\":true}],\"roles\":[{\"id\":\"string\",\"code\":\"string\",\"name\":\"string\"}]}]'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'POST',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D/submit',\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'}\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/services';\n\nlet options = {\n method: 'PUT',\n headers: {\n accept: 'application/json',\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n },\n body: '[{\"sdkCode\":\"string\",\"atlasPlanCode\":\"string\",\"licenseConfigs\":[{\"id\":\"string\",\"name\":\"string\",\"productId\":\"string\",\"description\":\"string\",\"selected\":true}],\"roles\":[{\"id\":\"string\",\"code\":\"string\",\"name\":\"string\"}]}]'\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D/submit');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/services');\n$request->setMethod(HTTP_METH_PUT);\n\n$request->setHeaders([\n 'accept' => 'application/json',\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('[{\"sdkCode\":\"string\",\"atlasPlanCode\":\"string\",\"licenseConfigs\":[{\"id\":\"string\",\"name\":\"string\",\"productId\":\"string\",\"description\":\"string\",\"selected\":true}],\"roles\":[{\"id\":\"string\",\"code\":\"string\",\"name\":\"string\"}]}]');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D/submit\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .asString();" + "source": "HttpResponse response = Unirest.put(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/services\")\n .header(\"accept\", \"application/json\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .body(\"[{\\\"sdkCode\\\":\\\"string\\\",\\\"atlasPlanCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"id\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\",\\\"productId\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"selected\\\":true}],\\\"roles\\\":[{\\\"id\\\":\\\"string\\\",\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}]\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D/submit\"\n\n\treq, _ := http.NewRequest(\"POST\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/services\"\n\n\tpayload := strings.NewReader(\"[{\\\"sdkCode\\\":\\\"string\\\",\\\"atlasPlanCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"id\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\",\\\"productId\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"selected\\\":true}],\\\"roles\\\":[{\\\"id\\\":\\\"string\\\",\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}]\")\n\n\treq, _ := http.NewRequest(\"PUT\", url, payload)\n\n\treq.Header.Add(\"accept\", \"application/json\")\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/apps/%7BappId%7D/submit\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"[{\\\"sdkCode\\\":\\\"string\\\",\\\"atlasPlanCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"id\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\",\\\"productId\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"selected\\\":true}],\\\"roles\\\":[{\\\"id\\\":\\\"string\\\",\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}]\"\n\nheaders = {\n 'accept': \"application/json\",\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"PUT\", \"/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/services\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D/submit\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/services\");\nvar request = new RestRequest(Method.PUT);\nrequest.AddHeader(\"accept\", \"application/json\");\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"[{\\\"sdkCode\\\":\\\"string\\\",\\\"atlasPlanCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"id\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\",\\\"productId\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"selected\\\":true}],\\\"roles\\\":[{\\\"id\\\":\\\"string\\\",\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}]\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D/submit\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/services\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Put.new(url)\nrequest[\"accept\"] = 'application/json'\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\nrequest.body = \"[{\\\"sdkCode\\\":\\\"string\\\",\\\"atlasPlanCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"id\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\",\\\"productId\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"selected\\\":true}],\\\"roles\\\":[{\\\"id\\\":\\\"string\\\",\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}]\"\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, - "/console/organizations/{orgId}/apps": { - "get": { - "summary": "get all Applications for a user", + "/console/organizations/{orgId}/credentials/oauth-server-to-server/{credentialId}/service/subscribe": { + "patch": { + "summary": "Subscribe oauth server to server credential to service", "tags": [ - "AppRegistry" + "OAuth server to server" ], "parameters": [ { - "name": "orgId", - "description": "AMS Organization ID", - "in": "path", + "name": "Authorization", + "description": "Authorization", + "in": "header", "required": true, "schema": { "type": "string" } }, { - "name": "appType", - "description": "Application type - use JGR", - "in": "query", + "name": "x-api-key", + "description": "API key", + "in": "header", "required": true, "schema": { "type": "string" } }, { - "name": "offset", - "description": "offset", - "in": "query", - "required": true, - "schema": { - "type": "integer" - } - }, - { - "name": "pageSize", - "description": "pageSize", - "in": "query", + "name": "orgId", + "description": "AMS org id", + "in": "path", "required": true, "schema": { - "type": "integer" + "type": "string" } }, { - "name": "Authorization", - "description": "Authorization", - "in": "header", + "name": "credentialId", + "description": "Credential id", + "in": "path", "required": true, "schema": { "type": "string" } } ], + "requestBody": { + "$ref": "#/components/requestBodies/SubscribeItem" + }, "responses": { "200": { "description": "OK", - "type": "array", - "items": { - "type": "object", - "properties": { - "appId": { - "type": "string", - "description": "application id" - }, - "appType": { - "type": "string", - "description": "application type - use JGR for Jaeger apps" - }, - "created": { - "type": "object", - "description": "activity log for application created", - "properties": { - "by": { - "type": "object", - "properties": { - "guid": { - "type": "string", - "description": "user guid" - } - } - }, - "on": { - "type": "string", - "description": "created timestamp" - } - } - }, - "description": { - "type": "string", - "description": "application description" - }, - "icon": { - "type": "string", - "description": "URL for the icon" - }, - "images": { - "type": "object", - "properties": { - "featuredImage1": { - "type": "string" - }, - "featuredImage2": { - "type": "string" - }, - "featuredImage3": { - "type": "string" - }, - "featuredImage4": { - "type": "string" - }, - "featuredImage5": { - "type": "string" - } - } - }, - "lastModified": { - "type": "object", - "description": "activity log for application last modified", - "properties": { - "by": { - "type": "object", - "properties": { - "guid": { - "type": "string", - "description": "user guid" - } - } - }, - "on": { - "type": "string", - "description": "last modified timestamp" - } - } - }, - "name": { - "type": "string", - "description": "application name" - }, - "reviewed": { - "type": "object", - "description": "activity log for application reviewed", - "properties": { - "by": { - "type": "object", - "properties": { - "guid": { - "type": "string", - "description": "user guid" - } - } - }, - "on": { - "type": "string", - "description": "reviewed timestamp" - }, - "notes": { - "type": "string", - "description": "reviewer notes" - } - } - }, - "status": { - "type": "string", - "description": "application status" - }, - "submitted": { + "content": { + "application/json": { + "schema": { "type": "object", - "description": "activity log for application submitted", "properties": { - "by": { - "type": "object", - "properties": { - "guid": { - "type": "string", - "description": "user guid" - } + "sdkList": { + "type": "array", + "items": { + "type": "string" } }, - "on": { - "type": "string", - "description": "submitted timestamp" - }, - "notes": { - "type": "string", - "description": "submitter notes" - } - } - }, - "support": { - "type": "object", - "description": "support information for the application", - "properties": { - "email": { - "type": "string" - }, - "contact": { - "type": "string" - }, - "website": { - "type": "string" - } - } - }, - "title": { - "type": "string" - }, - "workspaces": { - "type": "array", - "description": "list of workspaces in the application", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "workspace id" - }, - "name": { - "type": "string", - "description": "workspace name" - }, - "endPoint": { - "type": "string" - }, - "deepLink": { - "type": "string" - }, - "shellProps": { - "type": "string" - }, - "releaseNotes": { + "errorList": { + "type": "array", + "items": { "type": "string" - }, - "approveList": { - "type": "object", - "description": "list of approveList users & orgs", - "properties": { - "users": { - "type": "array", - "items": { - "type": "object", - "properties": { - "guid": { - "type": "string" - } - } - } - }, - "orgs": { - "type": "array", - "items": { - "type": "object", - "properties": { - "orgId": { - "type": "string" - }, - "orgName": { - "type": "string" - } - } - } - } - } } } } @@ -3437,86 +6041,77 @@ "x-codeSamples": [ { "lang": "shell", - "source": "curl --request GET \\\n --url 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps?appType=SOME_STRING_VALUE&offset=SOME_INTEGER_VALUE&pageSize=SOME_INTEGER_VALUE' \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json'" + "source": "curl --request PATCH \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/service/subscribe \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'accept: application/json' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE' \\\n --data '{\"sdkCode\":\"string\",\"atlasPlanCode\":\"string\",\"licenseConfigs\":[{\"id\":\"string\",\"name\":\"string\",\"productId\":\"string\",\"description\":\"string\",\"selected\":true}],\"roles\":[{\"id\":\"string\",\"code\":\"string\",\"name\":\"string\"}]}'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps',\n qs: {\n appType: 'SOME_STRING_VALUE',\n offset: 'SOME_INTEGER_VALUE',\n pageSize: 'SOME_INTEGER_VALUE'\n },\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'}\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/service/subscribe';\n\nlet options = {\n method: 'PATCH',\n headers: {\n accept: 'application/json',\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n },\n body: '{\"sdkCode\":\"string\",\"atlasPlanCode\":\"string\",\"licenseConfigs\":[{\"id\":\"string\",\"name\":\"string\",\"productId\":\"string\",\"description\":\"string\",\"selected\":true}],\"roles\":[{\"id\":\"string\",\"code\":\"string\",\"name\":\"string\"}]}'\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setQueryData([\n 'appType' => 'SOME_STRING_VALUE',\n 'offset' => 'SOME_INTEGER_VALUE',\n 'pageSize' => 'SOME_INTEGER_VALUE'\n]);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/service/subscribe');\n$request->setMethod(HttpRequest::HTTP_METH_PATCH);\n\n$request->setHeaders([\n 'accept' => 'application/json',\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('{\"sdkCode\":\"string\",\"atlasPlanCode\":\"string\",\"licenseConfigs\":[{\"id\":\"string\",\"name\":\"string\",\"productId\":\"string\",\"description\":\"string\",\"selected\":true}],\"roles\":[{\"id\":\"string\",\"code\":\"string\",\"name\":\"string\"}]}');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps?appType=SOME_STRING_VALUE&offset=SOME_INTEGER_VALUE&pageSize=SOME_INTEGER_VALUE\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .asString();" + "source": "HttpResponse response = Unirest.patch(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/service/subscribe\")\n .header(\"accept\", \"application/json\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .body(\"{\\\"sdkCode\\\":\\\"string\\\",\\\"atlasPlanCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"id\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\",\\\"productId\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"selected\\\":true}],\\\"roles\\\":[{\\\"id\\\":\\\"string\\\",\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps?appType=SOME_STRING_VALUE&offset=SOME_INTEGER_VALUE&pageSize=SOME_INTEGER_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/service/subscribe\"\n\n\tpayload := strings.NewReader(\"{\\\"sdkCode\\\":\\\"string\\\",\\\"atlasPlanCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"id\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\",\\\"productId\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"selected\\\":true}],\\\"roles\\\":[{\\\"id\\\":\\\"string\\\",\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}\")\n\n\treq, _ := http.NewRequest(\"PATCH\", url, payload)\n\n\treq.Header.Add(\"accept\", \"application/json\")\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/apps?appType=SOME_STRING_VALUE&offset=SOME_INTEGER_VALUE&pageSize=SOME_INTEGER_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"{\\\"sdkCode\\\":\\\"string\\\",\\\"atlasPlanCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"id\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\",\\\"productId\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"selected\\\":true}],\\\"roles\\\":[{\\\"id\\\":\\\"string\\\",\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}\"\n\nheaders = {\n 'accept': \"application/json\",\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"PATCH\", \"/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/service/subscribe\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps?appType=SOME_STRING_VALUE&offset=SOME_INTEGER_VALUE&pageSize=SOME_INTEGER_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/service/subscribe\");\nvar request = new RestRequest(Method.PATCH);\nrequest.AddHeader(\"accept\", \"application/json\");\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"sdkCode\\\":\\\"string\\\",\\\"atlasPlanCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"id\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\",\\\"productId\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"selected\\\":true}],\\\"roles\\\":[{\\\"id\\\":\\\"string\\\",\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps?appType=SOME_STRING_VALUE&offset=SOME_INTEGER_VALUE&pageSize=SOME_INTEGER_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/service/subscribe\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Patch.new(url)\nrequest[\"accept\"] = 'application/json'\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\nrequest.body = \"{\\\"sdkCode\\\":\\\"string\\\",\\\"atlasPlanCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"id\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\",\\\"productId\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"selected\\\":true}],\\\"roles\\\":[{\\\"id\\\":\\\"string\\\",\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}\"\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, - "/console/organizations/{orgId}/apps/{appId}/upload": { - "post": { - "summary": "upload icon for the application", + "/console/organizations/{orgId}/credentials/oauth-server-to-server/{credentialId}/service/unsubscribe": { + "patch": { + "summary": "Unsubscribe oauth server to server credential from service", "tags": [ - "AppRegistry" + "OAuth server to server" ], "parameters": [ { - "name": "orgId", - "description": "AMS Organization ID", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "appId", - "description": "AppRegistry Application ID", - "in": "path", + "name": "Authorization", + "description": "Authorization", + "in": "header", "required": true, "schema": { "type": "string" } }, { - "name": "appType", - "description": "Application type - use JGR", - "in": "query", + "name": "x-api-key", + "description": "API key", + "in": "header", "required": true, "schema": { "type": "string" } }, { - "name": "assetType", - "description": "Asset type - use ICON", - "in": "query", + "name": "orgId", + "description": "AMS org id", + "in": "path", "required": true, "schema": { "type": "string" } }, { - "name": "Authorization", - "description": "Authorization", - "in": "header", + "name": "credentialId", + "description": "Credential id", + "in": "path", "required": true, "schema": { "type": "string" @@ -3524,28 +6119,32 @@ } ], "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "type": "object", - "properties": { - "file": { - "description": "icon file", - "type": "string", - "format": "binary" - } - }, - "required": [ - "file" - ] - } - } - }, - "required": true + "$ref": "#/components/requestBodies/SubscribeItem" }, "responses": { "200": { - "description": "OK" + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "sdkList": { + "type": "array", + "items": { + "type": "string" + } + }, + "errorList": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } }, "400": { "description": "Bad Request" @@ -3566,49 +6165,67 @@ "x-codeSamples": [ { "lang": "shell", - "source": "curl --request POST \\\n --url 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D/upload?appType=SOME_STRING_VALUE&assetType=SOME_STRING_VALUE' \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'accept: multipart/form-data' \\\n --header 'content-type: application/json'" + "source": "curl --request PATCH \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/service/unsubscribe \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'accept: application/json' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE' \\\n --data '{\"sdkCode\":\"string\",\"atlasPlanCode\":\"string\",\"licenseConfigs\":[{\"id\":\"string\",\"name\":\"string\",\"productId\":\"string\",\"description\":\"string\",\"selected\":true}],\"roles\":[{\"id\":\"string\",\"code\":\"string\",\"name\":\"string\"}]}'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'POST',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D/upload',\n qs: {appType: 'SOME_STRING_VALUE', assetType: 'SOME_STRING_VALUE'},\n headers: {\n accept: 'multipart/form-data',\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/service/unsubscribe';\n\nlet options = {\n method: 'PATCH',\n headers: {\n accept: 'application/json',\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n },\n body: '{\"sdkCode\":\"string\",\"atlasPlanCode\":\"string\",\"licenseConfigs\":[{\"id\":\"string\",\"name\":\"string\",\"productId\":\"string\",\"description\":\"string\",\"selected\":true}],\"roles\":[{\"id\":\"string\",\"code\":\"string\",\"name\":\"string\"}]}'\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D/upload');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setQueryData([\n 'appType' => 'SOME_STRING_VALUE',\n 'assetType' => 'SOME_STRING_VALUE'\n]);\n\n$request->setHeaders([\n 'accept' => 'multipart/form-data',\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/service/unsubscribe');\n$request->setMethod(HttpRequest::HTTP_METH_PATCH);\n\n$request->setHeaders([\n 'accept' => 'application/json',\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('{\"sdkCode\":\"string\",\"atlasPlanCode\":\"string\",\"licenseConfigs\":[{\"id\":\"string\",\"name\":\"string\",\"productId\":\"string\",\"description\":\"string\",\"selected\":true}],\"roles\":[{\"id\":\"string\",\"code\":\"string\",\"name\":\"string\"}]}');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D/upload?appType=SOME_STRING_VALUE&assetType=SOME_STRING_VALUE\")\n .header(\"accept\", \"multipart/form-data\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .asString();" + "source": "HttpResponse response = Unirest.patch(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/service/unsubscribe\")\n .header(\"accept\", \"application/json\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .body(\"{\\\"sdkCode\\\":\\\"string\\\",\\\"atlasPlanCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"id\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\",\\\"productId\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"selected\\\":true}],\\\"roles\\\":[{\\\"id\\\":\\\"string\\\",\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D/upload?appType=SOME_STRING_VALUE&assetType=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"POST\", url, nil)\n\n\treq.Header.Add(\"accept\", \"multipart/form-data\")\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/service/unsubscribe\"\n\n\tpayload := strings.NewReader(\"{\\\"sdkCode\\\":\\\"string\\\",\\\"atlasPlanCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"id\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\",\\\"productId\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"selected\\\":true}],\\\"roles\\\":[{\\\"id\\\":\\\"string\\\",\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}\")\n\n\treq, _ := http.NewRequest(\"PATCH\", url, payload)\n\n\treq.Header.Add(\"accept\", \"application/json\")\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'accept': \"multipart/form-data\",\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/apps/%7BappId%7D/upload?appType=SOME_STRING_VALUE&assetType=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"{\\\"sdkCode\\\":\\\"string\\\",\\\"atlasPlanCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"id\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\",\\\"productId\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"selected\\\":true}],\\\"roles\\\":[{\\\"id\\\":\\\"string\\\",\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}\"\n\nheaders = {\n 'accept': \"application/json\",\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"PATCH\", \"/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/service/unsubscribe\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D/upload?appType=SOME_STRING_VALUE&assetType=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"accept\", \"multipart/form-data\");\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/service/unsubscribe\");\nvar request = new RestRequest(Method.PATCH);\nrequest.AddHeader(\"accept\", \"application/json\");\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"sdkCode\\\":\\\"string\\\",\\\"atlasPlanCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"id\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\",\\\"productId\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"selected\\\":true}],\\\"roles\\\":[{\\\"id\\\":\\\"string\\\",\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D/upload?appType=SOME_STRING_VALUE&assetType=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = 'multipart/form-data'\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/service/unsubscribe\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Patch.new(url)\nrequest[\"accept\"] = 'application/json'\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\nrequest.body = \"{\\\"sdkCode\\\":\\\"string\\\",\\\"atlasPlanCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"id\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\",\\\"productId\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"selected\\\":true}],\\\"roles\\\":[{\\\"id\\\":\\\"string\\\",\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}\"\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, - "/console/organizations/{orgId}/apps/health": { + "/console/organizations/{orgId}/credentials/oauth-server-to-server/{credentialId}/status": { "get": { - "summary": "get AppRegistry Health", + "summary": "Get oauth server to server credential migration status", "tags": [ - "AppRegistry" + "OAuth server to server" ], "parameters": [ + { + "name": "Authorization", + "description": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "x-api-key", + "description": "API key", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "orgId", - "description": "AMS Organization ID", + "description": "AMS org id", "in": "path", "required": true, "schema": { @@ -3616,9 +6233,9 @@ } }, { - "name": "Authorization", - "description": "Authorization", - "in": "header", + "name": "credentialId", + "description": "Credential id", + "in": "path", "required": true, "schema": { "type": "string" @@ -3633,17 +6250,20 @@ "schema": { "type": "object", "properties": { - "status": { - "type": "string" + "migrationStatus": { + "type": "string", + "enum": [ + "NOT_STARTED", + "STARTED", + "COMPLETED", + "NONE" + ] } } } } } }, - "400": { - "description": "Bad Request" - }, "401": { "description": "Unauthorized" }, @@ -3660,58 +6280,67 @@ "x-codeSamples": [ { "lang": "shell", - "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/health \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json'" + "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/status \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/health',\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'}\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/status';\n\nlet options = {\n method: 'GET',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/health');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/status');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/health\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .asString();" + "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/status\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/health\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/status\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/apps/health\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/status\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/health\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/status\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/health\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/status\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, - "/console/organizations/{orgId}/policy/{intId}": { - "get": { - "summary": "get Application Policy", + "/console/organizations/{orgId}/credentials/oauth-server-to-server/{credentialId}/finalize": { + "patch": { + "summary": "The API finishes migration from JWT to oauth server to server credential", "tags": [ - "AtlasPolicyEngine" + "OAuth server to server" ], "parameters": [ { - "name": "orgId", - "description": "AMS Organization ID", - "in": "path", + "name": "Authorization", + "description": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "x-api-key", + "description": "API key", + "in": "header", "required": true, "schema": { "type": "string" } }, { - "name": "intId", - "description": "Integration ID", + "name": "orgId", + "description": "AMS org id", "in": "path", "required": true, "schema": { @@ -3719,9 +6348,9 @@ } }, { - "name": "Authorization", - "description": "Authorization", - "in": "header", + "name": "credentialId", + "description": "Credential id", + "in": "path", "required": true, "schema": { "type": "string" @@ -3730,71 +6359,7 @@ ], "responses": { "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "orgCode": { - "type": "string", - "description": "IMS org id" - }, - "appCode": { - "type": "string", - "description": "AMS application id" - }, - "appPolicyCode": { - "type": "string" - }, - "apiKey": { - "type": "string" - }, - "quotaPolicyCode": { - "type": "string" - }, - "planCode": { - "type": "string" - }, - "status": { - "type": "string" - }, - "_links": { - "type": "array", - "items": { - "type": "object", - "properties": { - "deprecation": { - "type": "string" - }, - "href": { - "type": "string" - }, - "hreflang": { - "type": "string" - }, - "media": { - "type": "string" - }, - "rel": { - "type": "string" - }, - "templated": { - "type": "boolean" - }, - "title": { - "type": "string" - }, - "type": { - "type": "string" - } - } - } - } - } - } - } - } + "description": "OK" }, "400": { "description": "Bad Request" @@ -3815,67 +6380,58 @@ "x-codeSamples": [ { "lang": "shell", - "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json'" + "source": "curl --request PATCH \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/finalize \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'accept: application/json' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D',\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'}\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/finalize';\n\nlet options = {\n method: 'PATCH',\n headers: {\n accept: 'application/json',\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/finalize');\n$request->setMethod(HttpRequest::HTTP_METH_PATCH);\n\n$request->setHeaders([\n 'accept' => 'application/json',\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .asString();" + "source": "HttpResponse response = Unirest.patch(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/finalize\")\n .header(\"accept\", \"application/json\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/finalize\"\n\n\treq, _ := http.NewRequest(\"PATCH\", url, nil)\n\n\treq.Header.Add(\"accept\", \"application/json\")\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/policy/%7BintId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'accept': \"application/json\",\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"PATCH\", \"/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/finalize\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/finalize\");\nvar request = new RestRequest(Method.PATCH);\nrequest.AddHeader(\"accept\", \"application/json\");\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/credentials/oauth-server-to-server/%7BcredentialId%7D/finalize\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Patch.new(url)\nrequest[\"accept\"] = 'application/json'\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, - "/console/organizations/{orgId}/policy/{intId}/usage": { + "/console/organizations": { "get": { - "summary": "get Quota Usage", + "summary": "list organizations", "tags": [ - "AtlasPolicyEngine" + "Organizations" ], "parameters": [ { - "name": "orgId", - "description": "AMS Organization ID", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "intId", - "description": "Integration ID", - "in": "path", + "name": "Authorization", + "description": "Authorization", + "in": "header", "required": true, "schema": { "type": "string" } }, { - "name": "Authorization", - "description": "Authorization", + "name": "x-api-key", + "description": "API key", "in": "header", "required": true, "schema": { @@ -3889,44 +6445,31 @@ "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "policyCode": { - "type": "string" - }, - "planCode": { - "type": "string" - }, - "orgCode": { - "type": "string" - }, - "refreshCycle": { - "type": "string" - }, - "policyType": { - "type": "string" - }, - "status": { - "type": "string" - }, - "availableQuantity": { - "type": "integer" - }, - "consumedQuantity": { - "type": "integer" - }, - "selectors": { - "type": "array", - "items": { - "type": "object", - "properties": { - "selector": { - "type": "string" - }, - "consumedQuantity": { - "type": "integer" - } - } + "type": "array", + "items": { + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "AMS org code (IMS org id - if applicable)" + }, + "description": { + "type": "string" + }, + "id": { + "type": "string", + "description": "AMS org id" + }, + "name": { + "type": "string" + }, + "type": { + "type": "string", + "description": "org type" + }, + "role": { + "type": "string", + "description": "the user role in that org, ADMIN or DEVELOPER" } } } @@ -3953,42 +6496,42 @@ "x-codeSamples": [ { "lang": "shell", - "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D/usage \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json'" + "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D/usage',\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'}\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations';\n\nlet options = {\n method: 'GET',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D/usage');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D/usage\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .asString();" + "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D/usage\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/policy/%7BintId%7D/usage\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D/usage\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D/usage\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, - "/console/organizations/{orgId}/integrations/entp": { - "post": { - "summary": "create entp integration", + "/console/organizations/{orgId}/integrations": { + "get": { + "summary": "list integrations for an organization", "tags": [ "Organizations" ], @@ -4021,62 +6564,98 @@ } }, { - "name": "name", - "description": "integration name", + "name": "page", + "description": "page index", "in": "query", - "required": true, + "required": false, "schema": { - "type": "string" + "type": "integer" } }, { - "name": "description", + "name": "size", + "description": "page size", "in": "query", - "required": true, + "required": false, "schema": { - "type": "string" + "type": "integer" } } ], - "requestBody": { - "required": true, - "content": { - "multipart/form-data": { - "schema": { - "type": "object", - "required": [ - "certificate" - ], - "properties": { - "certificate": { - "type": "string", - "format": "binary" + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "page": { + "type": "integer" + }, + "pages": { + "type": "integer" + }, + "size": { + "type": "integer" + }, + "total": { + "type": "integer" + }, + "content": { + "type": "array", + "items": { + "type": "object", + "properties": { + "apikey": { + "type": "string" + }, + "createdDate": { + "type": "string" + }, + "description": { + "type": "string" + }, + "id": { + "type": "string", + "description": "integration id" + }, + "lastModified": { + "type": "string" + }, + "name": { + "type": "string" + }, + "orgId": { + "type": "string", + "description": "AMS org id" + }, + "production": { + "type": "boolean" + }, + "sdkList": { + "type": "array", + "items": { + "type": "string", + "description": "sdk code" + } + }, + "status": { + "type": "string", + "description": "enum [ENABLED, DISABLED]" + }, + "type": { + "type": "string", + "description": "enum [adobeid, entp, internal]" + } + } + } + } } } } } }, - "description": "form data" - }, - "responses": { - "200": { - "description": "OK", - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "apiKey": { - "type": "string" - }, - "orgId": { - "type": "string" - }, - "technicalAccountId": { - "type": "string" - } - } - }, "400": { "description": "Bad Request" }, @@ -4096,42 +6675,42 @@ "x-codeSamples": [ { "lang": "shell", - "source": "curl --request POST \\\n --url 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp?name=SOME_STRING_VALUE&description=SOME_STRING_VALUE' \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + "source": "curl --request GET \\\n --url 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations?page=SOME_INTEGER_VALUE&size=SOME_INTEGER_VALUE' \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'POST',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp',\n qs: {name: 'SOME_STRING_VALUE', description: 'SOME_STRING_VALUE'},\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations';\n\nlet options = {\n method: 'GET',\n qs: {page: 'SOME_INTEGER_VALUE', size: 'SOME_INTEGER_VALUE'},\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setQueryData([\n 'name' => 'SOME_STRING_VALUE',\n 'description' => 'SOME_STRING_VALUE'\n]);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setQueryData([\n 'page' => 'SOME_INTEGER_VALUE',\n 'size' => 'SOME_INTEGER_VALUE'\n]);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp?name=SOME_STRING_VALUE&description=SOME_STRING_VALUE\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations?page=SOME_INTEGER_VALUE&size=SOME_INTEGER_VALUE\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp?name=SOME_STRING_VALUE&description=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"POST\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations?page=SOME_INTEGER_VALUE&size=SOME_INTEGER_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/integrations/entp?name=SOME_STRING_VALUE&description=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/integrations?page=SOME_INTEGER_VALUE&size=SOME_INTEGER_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp?name=SOME_STRING_VALUE&description=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations?page=SOME_INTEGER_VALUE&size=SOME_INTEGER_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp?name=SOME_STRING_VALUE&description=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations?page=SOME_INTEGER_VALUE&size=SOME_INTEGER_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, - "/console/organizations/{orgId}/integrations/entp/{intId}/bindings": { - "post": { - "summary": "upload and bind certificate", + "/console/organizations/{orgId}/services": { + "get": { + "summary": "list services for an organization", "tags": [ "Organizations" ], @@ -4162,58 +6741,75 @@ "schema": { "type": "string" } - }, - { - "name": "intId", - "description": "integration id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } } ], - "requestBody": { - "required": true, - "content": { - "multipart/form-data": { - "schema": { - "type": "object", - "required": [ - "certificate" - ], - "properties": { - "certificate": { - "type": "string", - "format": "binary" - } - } - } - } - }, - "description": "form data" - }, "responses": { "200": { "description": "OK", - "type": "array", - "items": { - "type": "object", - "properties": { - "bindingId": { - "type": "string" - }, - "orgId": { - "type": "string" - }, - "technicalAccountId": { - "type": "string" - }, - "certificateFingerprint": { - "type": "string" - }, - "notAfter": { - "type": "integer" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "code": { + "type": "string" + }, + "enabled": { + "type": "boolean" + }, + "type": { + "type": "string" + }, + "platformList": { + "type": "array", + "items": { + "type": "string" + } + }, + "docsUrl": { + "type": "string" + }, + "learnMoreUrl": { + "type": "string" + }, + "description": { + "type": "string" + }, + "properties": { + "type": "object", + "properties": { + "licenseConfigs": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "productId": { + "type": "string" + }, + "description": { + "type": "string" + } + } + } + } + } + }, + "requiresApproval": { + "type": "boolean" + } + } + } } } } @@ -4237,40 +6833,42 @@ "x-codeSamples": [ { "lang": "shell", - "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/services \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'POST',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/services';\n\nlet options = {\n method: 'GET',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/services');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/services\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings\"\n\n\treq, _ := http.NewRequest(\"POST\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/services\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/services\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/services\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/services\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] - }, + } + }, + "/console/organizations/{orgId}/recipients": { "get": { - "summary": "list integration bindings", + "summary": "Returns the list of users that receive email notifications", "tags": [ "Organizations" ], @@ -4301,38 +6899,37 @@ "schema": { "type": "string" } - }, - { - "name": "intId", - "description": "integration id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } } ], "responses": { "200": { "description": "OK", - "type": "array", - "items": { - "type": "object", - "properties": { - "bindingId": { - "type": "string" - }, - "orgId": { - "type": "string" - }, - "technicalAccountId": { - "type": "string" - }, - "certificateFingerprint": { - "type": "string" - }, - "notAfter": { - "type": "integer" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "user_id": { + "type": "string", + "description": "the IMS user id" + }, + "email": { + "type": "string" + }, + "firstname": { + "type": "boolean" + }, + "lastname": { + "type": "string" + }, + "role": { + "type": "string", + "description": "the role of the user in the org, either ORG_ADMIN, LICENSE_DEV_ADMIN or TEAM_MEMBER" + } + } + } } } } @@ -4356,42 +6953,42 @@ "x-codeSamples": [ { "lang": "shell", - "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/recipients \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/recipients';\n\nlet options = {\n method: 'GET',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/recipients');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/recipients\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/recipients\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/recipients\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/recipients\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/recipients\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, - "/console/organizations/{orgId}/integrations/entp/{intId}/bindings/{bindingId}": { - "delete": { - "summary": "delete binding", + "/console/organizations/{orgId}/project-plugin": { + "post": { + "summary": "Creates project and plugin", "tags": [ "Organizations" ], @@ -4422,85 +7019,110 @@ "schema": { "type": "string" } - }, - { - "name": "intId", - "description": "integration id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "bindingId", - "description": "IMS binding id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } } ], - "responses": { - "200": { - "description": "OK" - }, - "400": { - "description": "Bad Request" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "pluginId", + "hostApp", + "appType" + ], + "properties": { + "pluginId": { + "type": "string" + }, + "hostApp": { + "type": "string" + }, + "appType": { + "type": "string" + }, + "workspaceId": { + "type": "integer" + } + } + } + } }, - "404": { - "description": "Not Found" + "description": "Plugin info", + "required": true + }, + "responses": { + "201": { + "description": "Create project and plugin success", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "pluginId": { + "type": "string", + "description": "Plugin id" + }, + "projectId": { + "type": "string", + "description": "Project id" + }, + "workspaceId": { + "type": "string", + "description": "Workspace id" + }, + "projectTitle": { + "type": "string", + "description": "Project title" + } + } + } + } + } }, - "500": { - "description": "Internal Server Error" + "409": { + "description": "Plugin already exists in org (To avoid generating multiple projects for plugin we assume pluginId must be unique per org)" } }, "x-codeSamples": [ { "lang": "shell", - "source": "curl --request DELETE \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings/%7BbindingId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/project-plugin \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE' \\\n --data '{\"pluginId\":\"string\",\"hostApp\":\"string\",\"appType\":\"string\",\"workspaceId\":0}'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'DELETE',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings/%7BbindingId%7D',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/project-plugin';\n\nlet options = {\n method: 'POST',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n },\n body: '{\"pluginId\":\"string\",\"hostApp\":\"string\",\"appType\":\"string\",\"workspaceId\":0}'\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings/%7BbindingId%7D');\n$request->setMethod(HTTP_METH_DELETE);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/project-plugin');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('{\"pluginId\":\"string\",\"hostApp\":\"string\",\"appType\":\"string\",\"workspaceId\":0}');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.delete(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings/%7BbindingId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/project-plugin\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .body(\"{\\\"pluginId\\\":\\\"string\\\",\\\"hostApp\\\":\\\"string\\\",\\\"appType\\\":\\\"string\\\",\\\"workspaceId\\\":0}\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings/%7BbindingId%7D\"\n\n\treq, _ := http.NewRequest(\"DELETE\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/project-plugin\"\n\n\tpayload := strings.NewReader(\"{\\\"pluginId\\\":\\\"string\\\",\\\"hostApp\\\":\\\"string\\\",\\\"appType\\\":\\\"string\\\",\\\"workspaceId\\\":0}\")\n\n\treq, _ := http.NewRequest(\"POST\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"DELETE\", \"/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings/%7BbindingId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"{\\\"pluginId\\\":\\\"string\\\",\\\"hostApp\\\":\\\"string\\\",\\\"appType\\\":\\\"string\\\",\\\"workspaceId\\\":0}\"\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/project-plugin\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings/%7BbindingId%7D\");\nvar request = new RestRequest(Method.DELETE);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/project-plugin\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"pluginId\\\":\\\"string\\\",\\\"hostApp\\\":\\\"string\\\",\\\"appType\\\":\\\"string\\\",\\\"workspaceId\\\":0}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings/%7BbindingId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/project-plugin\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\nrequest.body = \"{\\\"pluginId\\\":\\\"string\\\",\\\"hostApp\\\":\\\"string\\\",\\\"appType\\\":\\\"string\\\",\\\"workspaceId\\\":0}\"\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, - "/console/organizations/{orgId}/integrations/entp/{intId}/services": { - "put": { - "summary": "subscribe entp integration to services", + "/console/organizations/{orgId}/master-service-principals-account": { + "post": { + "summary": "Creates master technical service principal account", "tags": [ "Organizations" ], @@ -4531,101 +7153,95 @@ "schema": { "type": "string" } - }, - { - "name": "intId", - "description": "integration id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } } ], - "requestBody": { - "$ref": "#/components/requestBodies/Subscriptionlist" - }, "responses": { "200": { - "description": "OK", - "type": "object", - "properties": { - "sdkList": { - "type": "array", - "items": { - "type": "string" - } - }, - "errorList": { - "type": "array", - "items": { - "type": "string" + "description": "Create master technical account response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "orgCode": { + "type": "string", + "description": "IMS organization code" + }, + "technicalAccountId": { + "type": "string", + "description": "Master technical account" + }, + "scopes": { + "type": "string", + "description": "List of real scopes assigned to service principal binding" + } + } } } } }, - "400": { - "description": "Bad Request" - }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" - }, - "404": { - "description": "Not Found" - }, - "500": { - "description": "Internal Server Error" } }, "x-codeSamples": [ { "lang": "shell", - "source": "curl --request PUT \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/services \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/master-service-principals-account \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'PUT',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/services',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/master-service-principals-account';\n\nlet options = {\n method: 'POST',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/services');\n$request->setMethod(HTTP_METH_PUT);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/master-service-principals-account');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.put(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/services\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/master-service-principals-account\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/services\"\n\n\treq, _ := http.NewRequest(\"PUT\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/master-service-principals-account\"\n\n\treq, _ := http.NewRequest(\"POST\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"PUT\", \"/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/services\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/master-service-principals-account\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/services\");\nvar request = new RestRequest(Method.PUT);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/master-service-principals-account\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/services\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Put.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/master-service-principals-account\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, - "/console/organizations/{orgId}/integrations/{intId}": { + "/console/organizations/{orgId}/projects": { "get": { - "summary": "get integration details", + "summary": "List Projects", "tags": [ - "Organizations" + "projects" ], "parameters": [ + { + "name": "orgId", + "description": "Organization ID", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "Authorization", - "description": "Authorization", + "description": "Access token", "in": "header", "required": true, "schema": { @@ -4642,258 +7258,249 @@ } }, { - "name": "orgId", - "description": "AMS org id", - "in": "path", - "required": true, + "name": "sortField", + "description": "Order By Field. Allowed values [date_last_modified, date_created, title]", + "in": "query", + "required": false, "schema": { "type": "string" } }, { - "name": "intId", - "description": "integration id", - "in": "path", - "required": true, + "name": "sortOrder", + "description": "Sort Order. Allowed values [DESC, ASC]", + "in": "query", + "required": false, "schema": { "type": "string" } - } - ], - "responses": { - "200": { - "description": "OK", - "type": "object", - "properties": { - "apikey": { - "type": "string" - }, - "description": { - "type": "string" - }, - "eventProviders": { - "type": "array", - "items": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "id": { - "type": "integer" - } - } - } - }, - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "orgCode": { - "type": "string" - }, - "orgId": { - "type": "string" - }, - "orgName": { - "type": "string" - }, - "platform": { - "type": "string" - }, - "production": { - "type": "boolean" - }, - "requestState": { - "type": "string", - "description": "enum [WAITING, APPROVED, REJECTED, RESET]" - }, - "sdkList": { - "type": "array", - "items": { - "type": "string", - "description": "sdk code" - } - }, - "status": { - "type": "string" - }, - "type": { - "type": "string" - } - } - }, - "400": { - "description": "Bad Request" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - }, - "500": { - "description": "Internal Server Error" - } - }, - "x-codeSamples": [ - { - "lang": "shell", - "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" - }, - { - "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { - "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" - }, - { - "lang": "java", - "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" - }, - { - "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" - }, - { - "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/integrations/%7BintId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "name": "size", + "description": "Page Size. If no value specified, default value of 100 will be used only if a value for page parameter is specified", + "in": "query", + "required": false, + "schema": { + "type": "number" + } }, { - "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + "name": "page", + "description": "Page Number. Page Number starts at 1. If no value is specified, all records will be returned", + "in": "query", + "required": false, + "schema": { + "type": "number" + } }, { - "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" - } - ] - }, - "delete": { - "summary": "delete integration", - "tags": [ - "Organizations" - ], - "parameters": [ - { - "name": "Authorization", - "description": "Authorization", - "in": "header", - "required": true, + "name": "title", + "description": "If this field is included, only projects with exactly matching title will be returned.", + "in": "query", + "required": false, "schema": { "type": "string" } }, { - "name": "x-api-key", - "description": "API key", - "in": "header", - "required": true, + "name": "appType", + "description": "Plugin/application type ?appType=UXP,ZXP", + "in": "query", + "required": false, "schema": { "type": "string" } }, { - "name": "orgId", - "description": "AMS org id", - "in": "path", - "required": true, + "name": "appSubType", + "description": "Plugin/application sub type/hostApp ?appSubType=SPRK,PHSP", + "in": "query", + "required": false, "schema": { "type": "string" } }, { - "name": "intId", - "description": "integration id", - "in": "path", - "required": true, + "name": "projectIds", + "description": "Projects ids we want to filter ?projectIds=1,2,3", + "in": "query", + "required": false, "schema": { "type": "string" } - } - ], - "responses": { - "204": { - "description": "No Content" + } + ], + "responses": { + "200": { + "description": "Found projects", + "headers": { + "X-Pagination-Count": { + "description": "Total number of matching records", + "schema": { + "type": "integer" + } + }, + "X-Pagination-Page": { + "description": "Current page number", + "schema": { + "type": "integer" + } + }, + "X-Pagination-Size": { + "description": "Page size", + "schema": { + "type": "integer" + } + } + }, + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Project id" + }, + "name": { + "type": "string", + "description": "Project name" + }, + "description": { + "type": "string", + "description": "Project description" + }, + "type": { + "type": "string", + "description": "Project type" + }, + "enabled": { + "type": "boolean", + "description": "Is project enabled" + }, + "deleted": { + "type": "boolean", + "description": "Is project deleted" + }, + "title": { + "type": "string", + "description": "Project title" + }, + "org_id": { + "type": "string", + "description": "Org id" + }, + "date_created": { + "type": "string", + "format": "date", + "description": "Project create date" + }, + "date_last_modified": { + "type": "string", + "format": "date", + "description": "Project last modify date" + }, + "who_created": { + "type": "string", + "description": "Created by" + }, + "who_last_modified": { + "type": "string", + "description": "Last modified by" + }, + "metadata": { + "type": "object", + "properties": { + "workspaces": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Workspace id" + }, + "name": { + "type": "string", + "description": "Workspace name" + }, + "runtime": { + "type": "string", + "description": "Runtime namespace" + } + } + } + } + } + } + } + } + } + } + } }, "400": { - "description": "Bad Request" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" + "description": "The following errors are possible - sortField must be one of date_last_modified, date_created, title; sortOrder must be one of ASC DESC; size must be a positive integer; page must be a positive integer" }, "500": { - "description": "Internal Server Error" + "description": "Error getting projects" } }, "x-codeSamples": [ { "lang": "shell", - "source": "curl --request DELETE \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + "source": "curl --request GET \\\n --url 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects?sortField=SOME_STRING_VALUE&sortOrder=SOME_STRING_VALUE&size=SOME_NUMBER_VALUE&page=SOME_NUMBER_VALUE&title=SOME_STRING_VALUE&appType=SOME_STRING_VALUE&appSubType=SOME_STRING_VALUE&projectIds=SOME_STRING_VALUE' \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'DELETE',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects';\n\nlet options = {\n method: 'GET',\n qs: {\n sortField: 'SOME_STRING_VALUE',\n sortOrder: 'SOME_STRING_VALUE',\n size: 'SOME_NUMBER_VALUE',\n page: 'SOME_NUMBER_VALUE',\n title: 'SOME_STRING_VALUE',\n appType: 'SOME_STRING_VALUE',\n appSubType: 'SOME_STRING_VALUE',\n projectIds: 'SOME_STRING_VALUE'\n },\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D');\n$request->setMethod(HTTP_METH_DELETE);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setQueryData([\n 'sortField' => 'SOME_STRING_VALUE',\n 'sortOrder' => 'SOME_STRING_VALUE',\n 'size' => 'SOME_NUMBER_VALUE',\n 'page' => 'SOME_NUMBER_VALUE',\n 'title' => 'SOME_STRING_VALUE',\n 'appType' => 'SOME_STRING_VALUE',\n 'appSubType' => 'SOME_STRING_VALUE',\n 'projectIds' => 'SOME_STRING_VALUE'\n]);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.delete(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects?sortField=SOME_STRING_VALUE&sortOrder=SOME_STRING_VALUE&size=SOME_NUMBER_VALUE&page=SOME_NUMBER_VALUE&title=SOME_STRING_VALUE&appType=SOME_STRING_VALUE&appSubType=SOME_STRING_VALUE&projectIds=SOME_STRING_VALUE\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D\"\n\n\treq, _ := http.NewRequest(\"DELETE\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects?sortField=SOME_STRING_VALUE&sortOrder=SOME_STRING_VALUE&size=SOME_NUMBER_VALUE&page=SOME_NUMBER_VALUE&title=SOME_STRING_VALUE&appType=SOME_STRING_VALUE&appSubType=SOME_STRING_VALUE&projectIds=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"DELETE\", \"/console/organizations/%7BorgId%7D/integrations/%7BintId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/projects?sortField=SOME_STRING_VALUE&sortOrder=SOME_STRING_VALUE&size=SOME_NUMBER_VALUE&page=SOME_NUMBER_VALUE&title=SOME_STRING_VALUE&appType=SOME_STRING_VALUE&appSubType=SOME_STRING_VALUE&projectIds=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D\");\nvar request = new RestRequest(Method.DELETE);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects?sortField=SOME_STRING_VALUE&sortOrder=SOME_STRING_VALUE&size=SOME_NUMBER_VALUE&page=SOME_NUMBER_VALUE&title=SOME_STRING_VALUE&appType=SOME_STRING_VALUE&appSubType=SOME_STRING_VALUE&projectIds=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects?sortField=SOME_STRING_VALUE&sortOrder=SOME_STRING_VALUE&size=SOME_NUMBER_VALUE&page=SOME_NUMBER_VALUE&title=SOME_STRING_VALUE&appType=SOME_STRING_VALUE&appSubType=SOME_STRING_VALUE&projectIds=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] - } - }, - "/console/organizations/{orgId}/integrations/{intId}/secrets": { - "get": { - "summary": "get integration secrets", + }, + "post": { + "summary": "Create project", "tags": [ - "Organizations" + "projects" ], "parameters": [ { - "name": "Authorization", - "description": "Authorization", - "in": "header", + "name": "orgId", + "description": "Organization ID", + "in": "path", "required": true, "schema": { "type": "string" } }, { - "name": "x-api-key", - "description": "API key", + "name": "Authorization", + "description": "Access token", "in": "header", "required": true, "schema": { @@ -4901,45 +7508,67 @@ } }, { - "name": "orgId", - "description": "AMS org id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "intId", - "description": "integration id", - "in": "path", + "name": "x-api-key", + "description": "API key", + "in": "header", "required": true, "schema": { "type": "string" } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "name", + "title", + "type" + ], + "properties": { + "name": { + "type": "string" + }, + "title": { + "type": "string" + }, + "who_created": { + "type": "string" + }, + "description": { + "type": "string" + }, + "type": { + "type": "string" + } + } + } + } + }, + "description": "New project info", + "required": true + }, "responses": { - "200": { - "description": "OK", - "type": "object", - "properties": { - "client_id": { - "type": "string" - }, - "client_secrets": { - "type": "array", - "items": { + "201": { + "description": "Create project success", + "content": { + "application/json": { + "schema": { "type": "object", "properties": { - "client_secret": { - "type": "string" + "projectId": { + "type": "string", + "description": "Project id" }, - "expires_at": { - "type": "string" + "projectType": { + "type": "string", + "description": "Project type" }, - "expires_at_str": { - "type": "string" + "workspaceId": { + "type": "string", + "description": "Workspace id" } } } @@ -4965,49 +7594,76 @@ "x-codeSamples": [ { "lang": "shell", - "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/secrets \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE' \\\n --data '{\"name\":\"string\",\"title\":\"string\",\"who_created\":\"string\",\"description\":\"string\",\"type\":\"string\"}'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/secrets',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects';\n\nlet options = {\n method: 'POST',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n },\n body: '{\"name\":\"string\",\"title\":\"string\",\"who_created\":\"string\",\"description\":\"string\",\"type\":\"string\"}'\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/secrets');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('{\"name\":\"string\",\"title\":\"string\",\"who_created\":\"string\",\"description\":\"string\",\"type\":\"string\"}');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/secrets\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .body(\"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"who_created\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"type\\\":\\\"string\\\"}\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/secrets\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects\"\n\n\tpayload := strings.NewReader(\"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"who_created\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"type\\\":\\\"string\\\"}\")\n\n\treq, _ := http.NewRequest(\"POST\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/secrets\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"who_created\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"type\\\":\\\"string\\\"}\"\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/projects\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/secrets\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"who_created\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"type\\\":\\\"string\\\"}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/secrets\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\nrequest.body = \"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"who_created\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"type\\\":\\\"string\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, - "/console/organizations": { + "/console/organizations/{orgId}/projects/{projectId}/workspaces": { "post": { - "summary": "create an IMS Org", + "summary": "Create workspace", "tags": [ - "Organizations" + "workspaces" ], "parameters": [ + { + "name": "orgId", + "description": "Organization ID", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "projectId", + "description": "Project ID", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "Authorization", - "description": "Authorization", + "description": "Access token", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "x-api-key", + "description": "API key", "in": "header", "required": true, "schema": { @@ -5015,124 +7671,118 @@ } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "title": { + "type": "string" + }, + "description": { + "type": "string" + } + } + } + } + }, + "description": "New workspace info", + "required": true + }, "responses": { "201": { - "description": "IMS Org Created Successfully", + "description": "Create workspace success", "content": { "application/json": { "schema": { "type": "object", - "properties": { - "id": { - "type": "string" - }, - "code": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "type": { + "properties": { + "projectId": { "type": "string", - "description": "ConsumerType enum [\"adobeid\",\"entp\",\"internal\",\"direct\"]" - }, - "idAlias": { - "type": "string" - }, - "roles": { - "type": "array", - "items": { - "type": "object", - "properties": { - "principal": { - "type": "string" - }, - "organization": { - "type": "string" - }, - "nameRole": { - "type": "string" - }, - "target": { - "type": "string" - }, - "targetType": { - "type": "string" - }, - "targetData": { - "type": "linkedHashMap" - } - } - } + "description": "Project id" }, - "role": { - "type": "string" + "workspaceId": { + "type": "string", + "description": "Workspace id" } } } } } }, - "400": { - "description": "Bad Request" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, "500": { - "description": "Internal Server Error" + "description": "Error creating workspace" } }, "x-codeSamples": [ { "lang": "shell", - "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/organizations \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json'" + "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE' \\\n --data '{\"name\":\"string\",\"title\":\"string\",\"description\":\"string\"}'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'POST',\n url: 'https://developers-stage.adobe.io/console/organizations',\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'}\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces';\n\nlet options = {\n method: 'POST',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n },\n body: '{\"name\":\"string\",\"title\":\"string\",\"description\":\"string\"}'\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('{\"name\":\"string\",\"title\":\"string\",\"description\":\"string\"}');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .asString();" + "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .body(\"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations\"\n\n\treq, _ := http.NewRequest(\"POST\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces\"\n\n\tpayload := strings.NewReader(\"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\")\n\n\treq, _ := http.NewRequest(\"POST\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\"\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\nrequest.body = \"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body" } ] }, "get": { - "summary": "list organizations", + "summary": "List Workspaces", "tags": [ - "Organizations" + "projects" ], "parameters": [ + { + "name": "orgId", + "description": "Organization ID", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "projectId", + "description": "Project ID", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "Authorization", - "description": "Authorization", + "description": "Access token", "in": "header", "required": true, "schema": { @@ -5151,273 +7801,270 @@ ], "responses": { "200": { - "description": "OK", - "type": "object", - "properties": { - "content": { - "type": "array", - "properties": { - "code": { - "type": "string", - "description": "AMS org code (IMS org id - if applicable)" - }, - "description": { - "type": "string" - }, - "id": { - "type": "string", - "description": "AMS org id" - }, - "name": { - "type": "string" - }, - "type": { - "type": "string", - "description": "org type" + "description": "Workspaces for project", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Workspace id" + }, + "name": { + "type": "string", + "description": "Workspace name" + }, + "title": { + "type": "string", + "description": "Workspace title" + }, + "description": { + "type": "string", + "description": "Workspace description" + }, + "quota_usage": { + "type": "string", + "description": "Quota usage for workspace" + }, + "enabled": { + "type": "boolean", + "description": "Is project enabled" + }, + "runtime_enabled": { + "type": "boolean", + "description": "Is runtime enabled" + }, + "date_created": { + "type": "string", + "format": "date", + "description": "Workspace create date" + }, + "date_last_modified": { + "type": "string", + "format": "date", + "description": "Workspace last modify date" + }, + "who_created": { + "type": "string", + "description": "Created by" + }, + "who_last_modified": { + "type": "string", + "description": "Last modified by" + } + } } } } } }, - "400": { - "description": "Bad Request" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - }, "500": { - "description": "Internal Server Error" + "description": "Error returning workspaces for project" } }, "x-codeSamples": [ { "lang": "shell", - "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces';\n\nlet options = {\n method: 'GET',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, - "/console/organizations/{orgId}/integrations": { - "get": { - "summary": "list integrations for an organization", + "/console/organizations/{orgId}/projects/{projectId}/plugins": { + "post": { + "summary": "Create plugin in project", "tags": [ - "Organizations" + "projects" ], "parameters": [ { - "name": "Authorization", - "description": "Authorization", - "in": "header", + "name": "orgId", + "description": "Organization ID", + "in": "path", "required": true, "schema": { "type": "string" } }, { - "name": "x-api-key", - "description": "API key", - "in": "header", + "name": "projectId", + "description": "Project ID", + "in": "path", "required": true, "schema": { "type": "string" } }, { - "name": "orgId", - "description": "AMS org id", - "in": "path", + "name": "Authorization", + "description": "Access token", + "in": "header", "required": true, "schema": { "type": "string" } }, { - "name": "page", - "description": "page index", - "in": "query", - "required": false, - "schema": { - "type": "integer" - } - }, - { - "name": "size", - "description": "page size", - "in": "query", - "required": false, + "name": "x-api-key", + "description": "API key", + "in": "header", + "required": true, "schema": { - "type": "integer" + "type": "string" } } ], - "responses": { - "200": { - "description": "OK", - "type": "array", - "items": { - "type": "object", - "properties": { - "apikey": { - "type": "string" - }, - "createdDate": { - "type": "string" - }, - "description": { - "type": "string" - }, - "id": { - "type": "string", - "description": "integration id" - }, - "lastModified": { - "type": "string" - }, - "name": { - "type": "string" - }, - "orgId": { - "type": "string", - "description": "AMS org id" - }, - "production": { - "type": "boolean" - }, - "sdkList": { - "type": "array", - "items": { - "type": "string", - "description": "sdk code" + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "pluginId", + "hostApp", + "appType" + ], + "properties": { + "pluginId": { + "type": "string" + }, + "hostApp": { + "type": "string" + }, + "appType": { + "type": "string" + } + } + } + } + }, + "description": "Plugin info", + "required": true + }, + "responses": { + "201": { + "description": "Create project plugin success", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "pluginId": { + "type": "string", + "description": "Plugin id" + }, + "projectId": { + "type": "string", + "description": "Project id" + }, + "workspaceId": { + "type": "string", + "description": "Workspace id" + } } - }, - "status": { - "type": "string", - "description": "enum [ENABLED, DISABLED]" - }, - "type": { - "type": "string", - "description": "enum [adobeid, entp, internal]" } } - }, - "page": { - "type": "integer" - }, - "pages": { - "type": "integer" - }, - "size": { - "type": "integer" - }, - "total": { - "type": "integer" } }, - "400": { - "description": "Bad Request" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - }, "500": { - "description": "Internal Server Error" + "description": "Error creating project plugin" } }, "x-codeSamples": [ { "lang": "shell", - "source": "curl --request GET \\\n --url 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations?page=SOME_INTEGER_VALUE&size=SOME_INTEGER_VALUE' \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/plugins \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE' \\\n --data '{\"pluginId\":\"string\",\"hostApp\":\"string\",\"appType\":\"string\"}'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations',\n qs: {page: 'SOME_INTEGER_VALUE', size: 'SOME_INTEGER_VALUE'},\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/plugins';\n\nlet options = {\n method: 'POST',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n },\n body: '{\"pluginId\":\"string\",\"hostApp\":\"string\",\"appType\":\"string\"}'\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setQueryData([\n 'page' => 'SOME_INTEGER_VALUE',\n 'size' => 'SOME_INTEGER_VALUE'\n]);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/plugins');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('{\"pluginId\":\"string\",\"hostApp\":\"string\",\"appType\":\"string\"}');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations?page=SOME_INTEGER_VALUE&size=SOME_INTEGER_VALUE\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/plugins\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .body(\"{\\\"pluginId\\\":\\\"string\\\",\\\"hostApp\\\":\\\"string\\\",\\\"appType\\\":\\\"string\\\"}\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations?page=SOME_INTEGER_VALUE&size=SOME_INTEGER_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/plugins\"\n\n\tpayload := strings.NewReader(\"{\\\"pluginId\\\":\\\"string\\\",\\\"hostApp\\\":\\\"string\\\",\\\"appType\\\":\\\"string\\\"}\")\n\n\treq, _ := http.NewRequest(\"POST\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/integrations?page=SOME_INTEGER_VALUE&size=SOME_INTEGER_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"{\\\"pluginId\\\":\\\"string\\\",\\\"hostApp\\\":\\\"string\\\",\\\"appType\\\":\\\"string\\\"}\"\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/plugins\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations?page=SOME_INTEGER_VALUE&size=SOME_INTEGER_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/plugins\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"pluginId\\\":\\\"string\\\",\\\"hostApp\\\":\\\"string\\\",\\\"appType\\\":\\\"string\\\"}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations?page=SOME_INTEGER_VALUE&size=SOME_INTEGER_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/plugins\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\nrequest.body = \"{\\\"pluginId\\\":\\\"string\\\",\\\"hostApp\\\":\\\"string\\\",\\\"appType\\\":\\\"string\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, - "/console/organizations/{orgId}/services": { - "get": { - "summary": "list services for an organization", + "/console/organizations/{orgId}/projects/{projectId}": { + "delete": { + "summary": "Delete Project", "tags": [ - "Organizations" + "projects" ], "parameters": [ { - "name": "Authorization", - "description": "Authorization", - "in": "header", + "name": "orgId", + "description": "Organization ID", + "in": "path", "required": true, "schema": { "type": "string" } }, { - "name": "x-api-key", - "description": "API key", + "name": "projectId", + "description": "Project ID", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Authorization", + "description": "Access token", "in": "header", "required": true, "schema": { @@ -5425,9 +8072,9 @@ } }, { - "name": "orgId", - "description": "AMS org id", - "in": "path", + "name": "x-api-key", + "description": "API key", + "in": "header", "required": true, "schema": { "type": "string" @@ -5436,131 +8083,65 @@ ], "responses": { "200": { - "description": "OK", - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "code": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "type": { - "type": "string" - }, - "platformList": { - "type": "array", - "items": { - "type": "string" - } - }, - "docsUrl": { - "type": "string" - }, - "learnMoreUrl": { - "type": "string" - }, - "description": { - "type": "string" - }, - "properties": { - "type": "object", - "properties": { - "licenseConfigs": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "productId": { - "type": "string" - }, - "description": { - "type": "string" - } - } - } - } - } - }, - "requiresApproval": { - "type": "boolean" - } - } - } - }, - "400": { - "description": "Bad Request" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" + "description": "Delete project success" }, "500": { - "description": "Internal Server Error" + "description": "Error deleting project" } }, "x-codeSamples": [ { "lang": "shell", - "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/services \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + "source": "curl --request DELETE \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/services',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D';\n\nlet options = {\n method: 'DELETE',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/services');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D');\n$request->setMethod(HTTP_METH_DELETE);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/services\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + "source": "HttpResponse response = Unirest.delete(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/services\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\"\n\n\treq, _ := http.NewRequest(\"DELETE\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/services\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"DELETE\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/services\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\");\nvar request = new RestRequest(Method.DELETE);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/services\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] - } - }, - "/console/organizations/{orgId}/projects": { - "get": { - "summary": "List Projects", + }, + "patch": { + "summary": "Edit Project", "tags": [ "projects" ], "parameters": [ { "name": "orgId", - "description": "Organization ID", + "description": "Org ID", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "projectId", + "description": "Project ID", "in": "path", "required": true, "schema": { @@ -5586,113 +8167,75 @@ } } ], - "responses": { - "200": { - "description": "Found projects", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Project id" - }, - "name": { - "type": "string", - "description": "Project name" - }, - "description": { - "type": "string", - "description": "Project description" - }, - "type": { - "type": "string", - "description": "Project type" - }, - "enabled": { - "type": "boolean", - "description": "Is project enabled" - }, - "deleted": { - "type": "boolean", - "description": "Is project deleted" - }, - "title": { - "type": "string", - "description": "Project title" - }, - "org_id": { - "type": "string", - "description": "Org id" - }, - "date_created": { - "type": "string", - "format": "date", - "description": "Project create date" - }, - "date_last_modified": { - "type": "string", - "format": "date", - "description": "Project last modify date" - }, - "who_created": { - "type": "string", - "description": "Created by" - }, - "who_last_modified": { - "type": "string", - "description": "Last modified by" - } - } + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "notifications_enabled": { + "type": "boolean" } } } } }, + "description": "New project info, the (name AND title) OR (notifications_enabled) properties MUST be set." + }, + "responses": { + "200": { + "description": "Edit project success" + }, "500": { - "description": "Error getting projects" + "description": "Error editing project" } }, "x-codeSamples": [ { "lang": "shell", - "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + "source": "curl --request PATCH \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE' \\\n --data '{\"name\":\"string\",\"title\":\"string\",\"description\":\"string\",\"notifications_enabled\":true}'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D';\n\nlet options = {\n method: 'PATCH',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n },\n body: '{\"name\":\"string\",\"title\":\"string\",\"description\":\"string\",\"notifications_enabled\":true}'\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D');\n$request->setMethod(HttpRequest::HTTP_METH_PATCH);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('{\"name\":\"string\",\"title\":\"string\",\"description\":\"string\",\"notifications_enabled\":true}');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + "source": "HttpResponse response = Unirest.patch(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .body(\"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"notifications_enabled\\\":true}\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\"\n\n\tpayload := strings.NewReader(\"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"notifications_enabled\\\":true}\")\n\n\treq, _ := http.NewRequest(\"PATCH\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/projects\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"notifications_enabled\\\":true}\"\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"PATCH\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\");\nvar request = new RestRequest(Method.PATCH);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"notifications_enabled\\\":true}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Patch.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\nrequest.body = \"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"notifications_enabled\\\":true}\"\n\nresponse = http.request(request)\nputs response.read_body" } ] }, - "post": { - "summary": "Create project", + "get": { + "summary": "Get project by ID", "tags": [ "projects" ], @@ -5706,6 +8249,15 @@ "type": "string" } }, + { + "name": "projectId", + "description": "Project ID", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "Authorization", "description": "Access token", @@ -5725,249 +8277,246 @@ } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "name", - "title", - "type" - ], - "properties": { - "name": { - "type": "string" - }, - "title": { - "type": "string" - }, - "who_created": { - "type": "string" - }, - "description": { - "type": "string" - }, - "type": { - "type": "string" - } - } - } - } - }, - "description": "New project info", - "required": true - }, "responses": { - "201": { - "description": "Create project success", + "200": { + "description": "Found project", "content": { "application/json": { "schema": { "type": "object", "properties": { - "projectId": { + "id": { "type": "string", "description": "Project id" }, - "projectType": { + "name": { + "type": "string", + "description": "Project name" + }, + "description": { + "type": "string", + "description": "Project description" + }, + "type": { "type": "string", "description": "Project type" }, - "workspaceId": { + "enabled": { + "type": "boolean", + "description": "Is project enabled" + }, + "deleted": { + "type": "boolean", + "description": "Is project deleted" + }, + "title": { "type": "string", - "description": "Workspace id" + "description": "Project title" + }, + "org_id": { + "type": "string", + "description": "Org id" + }, + "date_created": { + "type": "string", + "format": "date", + "description": "Project create date" + }, + "date_last_modified": { + "type": "string", + "format": "date", + "description": "Project last modify date" + }, + "who_created": { + "type": "string", + "description": "Created by" + }, + "who_last_modified": { + "type": "string", + "description": "Last modified by" } } } } } }, - "400": { - "description": "Bad Request" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - }, "500": { - "description": "Internal Server Error" + "description": "Error getting project" } }, "x-codeSamples": [ { "lang": "shell", - "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE' \\\n --data '{\"name\":\"string\",\"title\":\"string\",\"who_created\":\"string\",\"description\":\"string\",\"type\":\"string\"}'" + "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'POST',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n },\n body: {\n name: 'string',\n title: 'string',\n who_created: 'string',\n description: 'string',\n type: 'string'\n },\n json: true\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D';\n\nlet options = {\n method: 'GET',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('{\"name\":\"string\",\"title\":\"string\",\"who_created\":\"string\",\"description\":\"string\",\"type\":\"string\"}');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .body(\"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"who_created\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"type\\\":\\\"string\\\"}\")\n .asString();" + "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects\"\n\n\tpayload := strings.NewReader(\"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"who_created\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"type\\\":\\\"string\\\"}\")\n\n\treq, _ := http.NewRequest(\"POST\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"who_created\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"type\\\":\\\"string\\\"}\"\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/projects\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"who_created\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"type\\\":\\\"string\\\"}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\nrequest.body = \"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"who_created\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"type\\\":\\\"string\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, - "/console/organizations/{orgId}/projects/{projectId}/workspaces": { + "/console/organizations/{orgId}/projects/{projectId}/can-delete": { "post": { - "summary": "Create workspace", + "summary": "Checks if project can be deleted", "tags": [ - "workspaces" + "projects" ], "parameters": [ { - "name": "orgId", - "description": "Organization ID", - "in": "path", + "name": "Authorization", + "description": "Authorization", + "in": "header", "required": true, "schema": { "type": "string" } }, { - "name": "projectId", - "description": "Project ID", - "in": "path", + "name": "x-api-key", + "description": "API key", + "in": "header", "required": true, "schema": { "type": "string" } }, { - "name": "Authorization", - "description": "Access token", - "in": "header", + "name": "orgId", + "description": "AMS org id", + "in": "path", "required": true, "schema": { "type": "string" } }, { - "name": "x-api-key", - "description": "API key", - "in": "header", + "name": "projectId", + "description": "Project id", + "in": "path", "required": true, "schema": { "type": "string" } + }, + { + "name": "workspaceId", + "description": "Workspace id", + "in": "query", + "required": false, + "schema": { + "type": "string" + } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string" - }, - "title": { - "type": "string" - }, - "description": { - "type": "string" - } - } - } - } - }, - "description": "New workspace info", - "required": true - }, "responses": { - "201": { - "description": "Create workspace success", + "200": { + "description": "Api call succeeds. In case deletion is not allowed - the response will contain errors list", "content": { "application/json": { "schema": { "type": "object", "properties": { - "projectId": { - "type": "string", - "description": "Project id" - }, - "workspaceId": { - "type": "string", - "description": "Workspace id" + "errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "workspaceId": { + "type": "string" + }, + "resourceUrls": { + "type": "array", + "items": { + "type": "string" + } + } + } + } } } } } } }, - "500": { - "description": "Error creating workspace" + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" } }, "x-codeSamples": [ { "lang": "shell", - "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE' \\\n --data '{\"name\":\"string\",\"title\":\"string\",\"description\":\"string\"}'" + "source": "curl --request POST \\\n --url 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/can-delete?workspaceId=SOME_STRING_VALUE' \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'POST',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n },\n body: {name: 'string', title: 'string', description: 'string'},\n json: true\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/can-delete';\n\nlet options = {\n method: 'POST',\n qs: {workspaceId: 'SOME_STRING_VALUE'},\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('{\"name\":\"string\",\"title\":\"string\",\"description\":\"string\"}');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/can-delete');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setQueryData([\n 'workspaceId' => 'SOME_STRING_VALUE'\n]);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .body(\"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\")\n .asString();" + "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/can-delete?workspaceId=SOME_STRING_VALUE\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces\"\n\n\tpayload := strings.NewReader(\"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\")\n\n\treq, _ := http.NewRequest(\"POST\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/can-delete?workspaceId=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"POST\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\"\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/can-delete?workspaceId=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/can-delete?workspaceId=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\nrequest.body = \"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/can-delete?workspaceId=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] - }, - "get": { - "summary": "List Workspaces", + } + }, + "/console/organizations/{orgId}/projects/{projectId}/workspaces/{workspaceId}/namespace": { + "post": { + "summary": "Create runtime namespace", "tags": [ - "projects" + "runtime" ], "parameters": [ { @@ -5989,18 +8538,9 @@ } }, { - "name": "Authorization", - "description": "Access token", - "in": "header", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "x-api-key", - "description": "API key", - "in": "header", + "name": "workspaceId", + "description": "Workspace ID", + "in": "path", "required": true, "schema": { "type": "string" @@ -6009,60 +8549,19 @@ ], "responses": { "200": { - "description": "Workspaces for project", + "description": "Create runtime namespace success", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Workspace id" - }, - "name": { - "type": "string", - "description": "Workspace name" - }, - "title": { - "type": "string", - "description": "Workspace title" - }, - "description": { - "type": "string", - "description": "Workspace description" - }, - "quota_usage": { - "type": "string", - "description": "Quota usage for workspace" - }, - "enabled": { - "type": "boolean", - "description": "Is project enabled" - }, - "runtime_enabled": { - "type": "boolean", - "description": "Is runtime enabled" - }, - "date_created": { - "type": "string", - "format": "date", - "description": "Workspace create date" - }, - "date_last_modified": { - "type": "string", - "format": "date", - "description": "Workspace last modify date" - }, - "who_created": { - "type": "string", - "description": "Created by" - }, - "who_last_modified": { - "type": "string", - "description": "Last modified by" - } + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Namespace name" + }, + "auth": { + "type": "string", + "description": "Auth key" } } } @@ -6070,50 +8569,50 @@ } }, "500": { - "description": "Error returning workspaces for project" + "description": "Error creating runtime namespace" } }, "x-codeSamples": [ { "lang": "shell", - "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/namespace \\\n --header 'content-type: application/json'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/namespace';\n\nlet options = {method: 'POST', headers: {'content-type': 'application/json'}};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/namespace');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'content-type' => 'application/json'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/namespace\")\n .header(\"content-type\", \"application/json\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/namespace\"\n\n\treq, _ := http.NewRequest(\"POST\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = { 'content-type': \"application/json\" }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/namespace\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/namespace\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/namespace\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, - "/console/organizations/{orgId}/projects/{projectId}": { - "delete": { - "summary": "Delete Project", + "/console/organizations/{orgId}/projects/{projectId}/workspaces/{workspaceId}": { + "patch": { + "summary": "Edit Workspace", "tags": [ - "projects" + "workspaces" ], "parameters": [ { @@ -6134,6 +8633,15 @@ "type": "string" } }, + { + "name": "workspaceId", + "description": "Workspace ID", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "Authorization", "description": "Access token", @@ -6153,58 +8661,85 @@ } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "title": { + "type": "string" + }, + "whoLastModified": { + "type": "string" + }, + "description": { + "type": "string" + } + } + } + } + }, + "description": "New workspace info" + }, "responses": { "200": { - "description": "Delete project success" + "description": "Edit workspace success" }, "500": { - "description": "Error deleting project" + "description": "Error editing workspace" } }, "x-codeSamples": [ { "lang": "shell", - "source": "curl --request DELETE \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + "source": "curl --request PATCH \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE' \\\n --data '{\"name\":\"string\",\"title\":\"string\",\"whoLastModified\":\"string\",\"description\":\"string\"}'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'DELETE',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D';\n\nlet options = {\n method: 'PATCH',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n },\n body: '{\"name\":\"string\",\"title\":\"string\",\"whoLastModified\":\"string\",\"description\":\"string\"}'\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D');\n$request->setMethod(HTTP_METH_DELETE);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D');\n$request->setMethod(HttpRequest::HTTP_METH_PATCH);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('{\"name\":\"string\",\"title\":\"string\",\"whoLastModified\":\"string\",\"description\":\"string\"}');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.delete(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + "source": "HttpResponse response = Unirest.patch(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .body(\"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"whoLastModified\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\"\n\n\treq, _ := http.NewRequest(\"DELETE\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\"\n\n\tpayload := strings.NewReader(\"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"whoLastModified\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\")\n\n\treq, _ := http.NewRequest(\"PATCH\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"DELETE\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"whoLastModified\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\"\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"PATCH\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\");\nvar request = new RestRequest(Method.DELETE);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\");\nvar request = new RestRequest(Method.PATCH);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"whoLastModified\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Patch.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\nrequest.body = \"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"whoLastModified\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body" } ] }, - "patch": { - "summary": "Edit Project", + "get": { + "summary": "Get Workspace", "tags": [ - "projects" + "workspaces" ], "parameters": [ { "name": "orgId", - "description": "Org ID", + "description": "Organization ID", "in": "path", "required": true, "schema": { @@ -6220,6 +8755,15 @@ "type": "string" } }, + { + "name": "workspaceId", + "description": "Workspace ID", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "Authorization", "description": "Access token", @@ -6239,78 +8783,108 @@ } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "name", - "title" - ], - "properties": { - "name": { - "type": "string" - }, - "title": { - "type": "string" - }, - "description": { - "type": "string" + "responses": { + "200": { + "description": "Found workspace", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Workspace id" + }, + "name": { + "type": "string", + "description": "Workspace name" + }, + "title": { + "type": "string", + "description": "Workspace title" + }, + "description": { + "type": "string", + "description": "Workspace description" + }, + "quota_usage": { + "type": "string", + "description": "Quota usage for workspace" + }, + "enabled": { + "type": "boolean", + "description": "Is project enabled" + }, + "runtime_enabled": { + "type": "boolean", + "description": "Is runtime enabled" + }, + "date_created": { + "type": "string", + "format": "date", + "description": "Workspace create date" + }, + "date_last_modified": { + "type": "string", + "format": "date", + "description": "Workspace last modify date" + }, + "who_created": { + "type": "string", + "description": "Created by" + }, + "who_last_modified": { + "type": "string", + "description": "Last modified by" + } } } } } }, - "description": "New project info" - }, - "responses": { - "200": { - "description": "Edit project success" - }, "500": { - "description": "Error editing project" + "description": "Error getting workspace" } }, "x-codeSamples": [ { "lang": "shell", - "source": "curl --request PATCH \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE' \\\n --data '{\"name\":\"string\",\"title\":\"string\",\"description\":\"string\"}'" + "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'PATCH',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n },\n body: {name: 'string', title: 'string', description: 'string'},\n json: true\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D';\n\nlet options = {\n method: 'GET',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D');\n$request->setMethod(HttpRequest::HTTP_METH_PATCH);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('{\"name\":\"string\",\"title\":\"string\",\"description\":\"string\"}');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.patch(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .body(\"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\")\n .asString();" + "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\"\n\n\tpayload := strings.NewReader(\"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\")\n\n\treq, _ := http.NewRequest(\"PATCH\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\"\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"PATCH\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\");\nvar request = new RestRequest(Method.PATCH);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Patch.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\nrequest.body = \"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] }, - "get": { - "summary": "Get project by ID", + "delete": { + "summary": "Delete a workspace", "tags": [ - "projects" + "workspaces" ], "parameters": [ { @@ -6331,6 +8905,15 @@ "type": "string" } }, + { + "name": "workspaceId", + "description": "Workspace ID", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "Authorization", "description": "Access token", @@ -6352,117 +8935,58 @@ ], "responses": { "200": { - "description": "Found project", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Project id" - }, - "name": { - "type": "string", - "description": "Project name" - }, - "description": { - "type": "string", - "description": "Project description" - }, - "type": { - "type": "string", - "description": "Project type" - }, - "enabled": { - "type": "boolean", - "description": "Is project enabled" - }, - "deleted": { - "type": "boolean", - "description": "Is project deleted" - }, - "title": { - "type": "string", - "description": "Project title" - }, - "org_id": { - "type": "string", - "description": "Org id" - }, - "date_created": { - "type": "string", - "format": "date", - "description": "Project create date" - }, - "date_last_modified": { - "type": "string", - "format": "date", - "description": "Project last modify date" - }, - "who_created": { - "type": "string", - "description": "Created by" - }, - "who_last_modified": { - "type": "string", - "description": "Last modified by" - } - } - } - } - } + "description": "Delete workspace success" }, "500": { - "description": "Error getting project" + "description": "Error deleting workspace" } }, "x-codeSamples": [ { "lang": "shell", - "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + "source": "curl --request DELETE \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D';\n\nlet options = {\n method: 'DELETE',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D');\n$request->setMethod(HTTP_METH_DELETE);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + "source": "HttpResponse response = Unirest.delete(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\"\n\n\treq, _ := http.NewRequest(\"DELETE\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"DELETE\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\");\nvar request = new RestRequest(Method.DELETE);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, - "/console/organizations/{orgId}/projects/{projectId}/workspaces/{workspaceId}/namespace": { - "post": { - "summary": "Create runtime namespace", + "/console/organizations/{orgId}/projects/{projectId}/workspaces/{workspaceId}/plugins": { + "get": { + "summary": "Get plugins for workspace", "tags": [ - "runtime" + "workspaces" ], "parameters": [ { "name": "orgId", - "description": "Organization ID", + "description": "Org ID", "in": "path", "required": true, "schema": { @@ -6486,23 +9010,44 @@ "schema": { "type": "string" } + }, + { + "name": "Authorization", + "description": "Access token", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "x-api-key", + "description": "API key", + "in": "header", + "required": true, + "schema": { + "type": "string" + } } ], "responses": { "200": { - "description": "Create runtime namespace success", + "description": "Return list of plugins", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "Namespace name" - }, - "auth": { - "type": "string", - "description": "Auth key" + "type": "array", + "items": { + "type": "object", + "properties": { + "id_workspace": { + "type": "string", + "description": "Workspace id" + }, + "id_plugin": { + "type": "string", + "description": "Plugin id" + } } } } @@ -6510,55 +9055,55 @@ } }, "500": { - "description": "Error creating runtime namespace" + "description": "Error getting plugins for workspace" } }, "x-codeSamples": [ { "lang": "shell", - "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/namespace \\\n --header 'content-type: application/json'" + "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/plugins \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'POST',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/namespace',\n headers: {'content-type': 'application/json'}\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/plugins';\n\nlet options = {\n method: 'GET',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/namespace');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'content-type' => 'application/json'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/plugins');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/namespace\")\n .header(\"content-type\", \"application/json\")\n .asString();" + "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/plugins\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/namespace\"\n\n\treq, _ := http.NewRequest(\"POST\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/plugins\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = { 'content-type': \"application/json\" }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/namespace\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/plugins\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/namespace\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/plugins\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/namespace\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/plugins\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, - "/console/organizations/{orgId}/projects/{projectId}/workspaces/{workspaceId}": { - "patch": { - "summary": "Edit Workspace", + "/console/organizations/{orgId}/projects/{projectId}/workspaces/{workspaceId}/credentials": { + "get": { + "summary": "Get Credentials", "tags": [ "workspaces" ], "parameters": [ { "name": "orgId", - "description": "Organization ID", + "description": "Org ID", "in": "path", "required": true, "schema": { @@ -6602,85 +9147,88 @@ } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string" - }, - "title": { - "type": "string" - }, - "whoLastModified": { - "type": "string" - }, - "description": { - "type": "string" + "responses": { + "200": { + "description": "Return list of credentials", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id_workspace": { + "type": "string", + "description": "Workspace id" + }, + "id_integration": { + "type": "string", + "description": "Credential id" + }, + "flow_type": { + "type": "string", + "description": "Flow type" + }, + "credential_type": { + "type": "string", + "description": "Credential type" + } + } } } } } }, - "description": "New workspace info" - }, - "responses": { - "200": { - "description": "Edit workspace success" - }, "500": { - "description": "Error editing workspace" + "description": "Error getting credentials for workspace" } }, "x-codeSamples": [ { "lang": "shell", - "source": "curl --request PATCH \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE' \\\n --data '{\"name\":\"string\",\"title\":\"string\",\"whoLastModified\":\"string\",\"description\":\"string\"}'" + "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'PATCH',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n },\n body: {\n name: 'string',\n title: 'string',\n whoLastModified: 'string',\n description: 'string'\n },\n json: true\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials';\n\nlet options = {\n method: 'GET',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D');\n$request->setMethod(HttpRequest::HTTP_METH_PATCH);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('{\"name\":\"string\",\"title\":\"string\",\"whoLastModified\":\"string\",\"description\":\"string\"}');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.patch(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .body(\"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"whoLastModified\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\")\n .asString();" + "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\"\n\n\tpayload := strings.NewReader(\"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"whoLastModified\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\")\n\n\treq, _ := http.NewRequest(\"PATCH\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"whoLastModified\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\"\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"PATCH\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\");\nvar request = new RestRequest(Method.PATCH);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"whoLastModified\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Patch.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\nrequest.body = \"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"whoLastModified\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] - }, - "get": { - "summary": "Get Workspace", + } + }, + "/console/organizations/{orgId}/projects/{projectId}/workspaces/{workspaceId}/credentials/entp": { + "post": { + "summary": "Create Enterprise Credential", "tags": [ "workspaces" ], "parameters": [ { "name": "orgId", - "description": "Organization ID", + "description": "Org ID", "in": "path", "required": true, "schema": { @@ -6724,59 +9272,58 @@ } } ], + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "certifiate": { + "description": "certificate data", + "type": "string", + "format": "binary" + }, + "name": { + "description": "Enterprise credential name", + "type": "string" + }, + "description": { + "description": "Enterprise credential description", + "type": "string" + } + }, + "required": [ + "certifiate", + "name", + "description" + ] + } + } + }, + "required": true + }, "responses": { "200": { - "description": "Found workspace", + "description": "Return enterprise credential details", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Workspace id" - }, - "name": { - "type": "string", - "description": "Workspace name" - }, - "title": { - "type": "string", - "description": "Workspace title" - }, - "description": { - "type": "string", - "description": "Workspace description" - }, - "quota_usage": { - "type": "string", - "description": "Quota usage for workspace" - }, - "enabled": { - "type": "boolean", - "description": "Is project enabled" - }, - "runtime_enabled": { - "type": "boolean", - "description": "Is runtime enabled" - }, - "date_created": { - "type": "string", - "format": "date", - "description": "Workspace create date" - }, - "date_last_modified": { - "type": "string", - "format": "date", - "description": "Workspace last modify date" - }, - "who_created": { - "type": "string", - "description": "Created by" - }, - "who_last_modified": { - "type": "string", - "description": "Last modified by" + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Credential id" + }, + "apiKey": { + "type": "string", + "description": "Credential API Key" + }, + "orgId": { + "type": "string", + "description": "IMS Org ID" + } } } } @@ -6784,53 +9331,55 @@ } }, "500": { - "description": "Error getting workspace" + "description": "Error creating enterprise credential for workspace" } }, "x-codeSamples": [ { "lang": "shell", - "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/entp \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'accept: multipart/form-data' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/entp';\n\nlet options = {\n method: 'POST',\n headers: {\n accept: 'multipart/form-data',\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/entp');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'accept' => 'multipart/form-data',\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/entp\")\n .header(\"accept\", \"multipart/form-data\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/entp\"\n\n\treq, _ := http.NewRequest(\"POST\", url, nil)\n\n\treq.Header.Add(\"accept\", \"multipart/form-data\")\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'accept': \"multipart/form-data\",\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/entp\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/entp\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"accept\", \"multipart/form-data\");\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/entp\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = 'multipart/form-data'\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] - }, - "delete": { - "summary": "Delete a workspace", + } + }, + "/console/organizations/{orgId}/projects/{projectId}/workspaces/{workspaceId}/credentials/analytics": { + "post": { + "summary": "Create Analytics Credential", "tags": [ "workspaces" ], "parameters": [ { "name": "orgId", - "description": "Organization ID", + "description": "Org ID", "in": "path", "required": true, "schema": { @@ -6874,53 +9423,88 @@ } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Analytics" + } + } + }, + "description": "Analytics credential object", + "required": true + }, "responses": { "200": { - "description": "Delete workspace success" + "description": "Return analytics credential details", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Credential id" + }, + "apiKey": { + "type": "string", + "description": "Credential API Key" + }, + "orgId": { + "type": "string", + "description": "IMS Org ID" + } + } + } + } + } + } }, "500": { - "description": "Error deleting workspace" + "description": "Error creating analytics credential for workspace" } }, "x-codeSamples": [ { "lang": "shell", - "source": "curl --request DELETE \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/analytics \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE' \\\n --data '{\"name\":\"string\",\"description\":\"string\",\"platform\":\"Web\",\"urlScheme\":\"string\",\"redirectUriList\":[\"string\"],\"defaultRedirectUri\":\"string\",\"domain\":\"string\"}'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'DELETE',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/analytics';\n\nlet options = {\n method: 'POST',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n },\n body: '{\"name\":\"string\",\"description\":\"string\",\"platform\":\"Web\",\"urlScheme\":\"string\",\"redirectUriList\":[\"string\"],\"defaultRedirectUri\":\"string\",\"domain\":\"string\"}'\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D');\n$request->setMethod(HTTP_METH_DELETE);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/analytics');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('{\"name\":\"string\",\"description\":\"string\",\"platform\":\"Web\",\"urlScheme\":\"string\",\"redirectUriList\":[\"string\"],\"defaultRedirectUri\":\"string\",\"domain\":\"string\"}');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.delete(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/analytics\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .body(\"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"Web\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\"}\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\"\n\n\treq, _ := http.NewRequest(\"DELETE\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/analytics\"\n\n\tpayload := strings.NewReader(\"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"Web\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\"}\")\n\n\treq, _ := http.NewRequest(\"POST\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"DELETE\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"Web\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\"}\"\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/analytics\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\");\nvar request = new RestRequest(Method.DELETE);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/analytics\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"Web\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\"}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/analytics\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\nrequest.body = \"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"Web\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, - "/console/organizations/{orgId}/projects/{projectId}/workspaces/{workspaceId}/plugins": { - "get": { - "summary": "Get plugins for workspace", + "/console/organizations/{orgId}/projects/{projectId}/workspaces/{workspaceId}/credentials/adobeId": { + "post": { + "summary": "Create AdobeId Credential", "tags": [ "workspaces" ], @@ -6971,9 +9555,12 @@ } } ], + "requestBody": { + "$ref": "#/components/requestBodies/Adobeid" + }, "responses": { "200": { - "description": "Return list of plugins", + "description": "Return adobeid credential details", "content": { "application/json": { "schema": { @@ -6981,13 +9568,17 @@ "items": { "type": "object", "properties": { - "id_workspace": { + "id": { "type": "string", - "description": "Workspace id" + "description": "Credential id" }, - "id_plugin": { + "apiKey": { "type": "string", - "description": "Plugin id" + "description": "Credential API Key" + }, + "orgId": { + "type": "string", + "description": "IMS Org ID" } } } @@ -6996,48 +9587,48 @@ } }, "500": { - "description": "Error getting plugins for workspace" + "description": "Error creating adobeId credential for workspace" } }, "x-codeSamples": [ { "lang": "shell", - "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/plugins \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/adobeId \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE' \\\n --data '{\"name\":\"string\",\"description\":\"string\",\"platform\":\"WebApp\",\"urlScheme\":\"string\",\"redirectUriList\":[\"string\"],\"defaultRedirectUri\":\"string\",\"domain\":\"string\"}'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/plugins',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/adobeId';\n\nlet options = {\n method: 'POST',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n },\n body: '{\"name\":\"string\",\"description\":\"string\",\"platform\":\"WebApp\",\"urlScheme\":\"string\",\"redirectUriList\":[\"string\"],\"defaultRedirectUri\":\"string\",\"domain\":\"string\"}'\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/plugins');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/adobeId');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('{\"name\":\"string\",\"description\":\"string\",\"platform\":\"WebApp\",\"urlScheme\":\"string\",\"redirectUriList\":[\"string\"],\"defaultRedirectUri\":\"string\",\"domain\":\"string\"}');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/plugins\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/adobeId\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .body(\"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"WebApp\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\"}\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/plugins\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/adobeId\"\n\n\tpayload := strings.NewReader(\"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"WebApp\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\"}\")\n\n\treq, _ := http.NewRequest(\"POST\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/plugins\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"WebApp\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\"}\"\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/adobeId\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/plugins\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/adobeId\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"WebApp\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\"}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/plugins\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/adobeId\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\nrequest.body = \"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"WebApp\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, - "/console/organizations/{orgId}/projects/{projectId}/workspaces/{workspaceId}/credentials": { - "get": { - "summary": "Get Credentials", + "/console/organizations/{orgId}/projects/{projectId}/workspaces/{workspaceId}/credentials/{credentialType}/{credentialId}/services": { + "put": { + "summary": "Subscribe Credential to Services", "tags": [ "workspaces" ], @@ -7069,6 +9660,24 @@ "type": "string" } }, + { + "name": "credentialType", + "description": "Type of credential (adobeid, analytics, entp)", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "credentialId", + "description": "ID of credential", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "Authorization", "description": "Access token", @@ -7088,9 +9697,19 @@ } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscribeToServices" + } + } + }, + "description": "SDK codes to add to credential" + }, "responses": { "200": { - "description": "Return list of credentials", + "description": "List of services credential is subscribed to", "content": { "application/json": { "schema": { @@ -7098,21 +9717,9 @@ "items": { "type": "object", "properties": { - "id_workspace": { - "type": "string", - "description": "Workspace id" - }, - "id_credential": { - "type": "string", - "description": "Credential id" - }, - "flow_type": { - "type": "string", - "description": "Flow type" - }, - "credential_type": { + "sdkList": { "type": "string", - "description": "Credential type" + "description": "List of SDK codes associated with credential" } } } @@ -7120,49 +9727,49 @@ } } }, - "500": { - "description": "Error getting credentials for workspace" + "404": { + "description": "Credential not found" } }, "x-codeSamples": [ { "lang": "shell", - "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + "source": "curl --request PUT \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/%7BcredentialType%7D/%7BcredentialId%7D/services \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE' \\\n --data '[{\"sdkCode\":\"string\",\"atlasPlanCode\":\"string\",\"licenseConfigs\":[{\"productId\":\"string\",\"id\":\"string\",\"op\":\"string\"}],\"roles\":[{\"id\":0,\"code\":\"string\",\"name\":\"string\"}]}]'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/%7BcredentialType%7D/%7BcredentialId%7D/services';\n\nlet options = {\n method: 'PUT',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n },\n body: '[{\"sdkCode\":\"string\",\"atlasPlanCode\":\"string\",\"licenseConfigs\":[{\"productId\":\"string\",\"id\":\"string\",\"op\":\"string\"}],\"roles\":[{\"id\":0,\"code\":\"string\",\"name\":\"string\"}]}]'\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/%7BcredentialType%7D/%7BcredentialId%7D/services');\n$request->setMethod(HTTP_METH_PUT);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('[{\"sdkCode\":\"string\",\"atlasPlanCode\":\"string\",\"licenseConfigs\":[{\"productId\":\"string\",\"id\":\"string\",\"op\":\"string\"}],\"roles\":[{\"id\":0,\"code\":\"string\",\"name\":\"string\"}]}]');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + "source": "HttpResponse response = Unirest.put(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/%7BcredentialType%7D/%7BcredentialId%7D/services\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .body(\"[{\\\"sdkCode\\\":\\\"string\\\",\\\"atlasPlanCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"productId\\\":\\\"string\\\",\\\"id\\\":\\\"string\\\",\\\"op\\\":\\\"string\\\"}],\\\"roles\\\":[{\\\"id\\\":0,\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}]\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/%7BcredentialType%7D/%7BcredentialId%7D/services\"\n\n\tpayload := strings.NewReader(\"[{\\\"sdkCode\\\":\\\"string\\\",\\\"atlasPlanCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"productId\\\":\\\"string\\\",\\\"id\\\":\\\"string\\\",\\\"op\\\":\\\"string\\\"}],\\\"roles\\\":[{\\\"id\\\":0,\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}]\")\n\n\treq, _ := http.NewRequest(\"PUT\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"[{\\\"sdkCode\\\":\\\"string\\\",\\\"atlasPlanCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"productId\\\":\\\"string\\\",\\\"id\\\":\\\"string\\\",\\\"op\\\":\\\"string\\\"}],\\\"roles\\\":[{\\\"id\\\":0,\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}]\"\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"PUT\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/%7BcredentialType%7D/%7BcredentialId%7D/services\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/%7BcredentialType%7D/%7BcredentialId%7D/services\");\nvar request = new RestRequest(Method.PUT);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"[{\\\"sdkCode\\\":\\\"string\\\",\\\"atlasPlanCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"productId\\\":\\\"string\\\",\\\"id\\\":\\\"string\\\",\\\"op\\\":\\\"string\\\"}],\\\"roles\\\":[{\\\"id\\\":0,\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}]\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/%7BcredentialType%7D/%7BcredentialId%7D/services\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Put.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\nrequest.body = \"[{\\\"sdkCode\\\":\\\"string\\\",\\\"atlasPlanCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"productId\\\":\\\"string\\\",\\\"id\\\":\\\"string\\\",\\\"op\\\":\\\"string\\\"}],\\\"roles\\\":[{\\\"id\\\":0,\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}]\"\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, - "/console/organizations/{orgId}/projects/{projectId}/workspaces/{workspaceId}/credentials/entp": { - "post": { - "summary": "Create Enterprise Credential", + "/console/organizations/{orgId}/projects/{projectId}/workspaces/{workspaceId}/endpoints": { + "put": { + "summary": "Update endpoints in a workspace", "tags": [ "workspaces" ], @@ -7215,86 +9822,72 @@ ], "requestBody": { "content": { - "multipart/form-data": { + "application/json": { "schema": { - "$ref": "#/components/schemas/components/credentials/Entp" + "type": "object", + "properties": { + "endpoints": { + "type": "object" + } + } } } - }, - "description": "Enterprise credential object", - "required": true + } }, "responses": { "200": { - "description": "Return enterprise credential details", + "description": "Endpoints added to the workspace", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Credential id" - }, - "apiKey": { - "type": "string", - "description": "Credential API Key" - }, - "orgId": { - "type": "string", - "description": "IMS Org ID" - } + "type": "object", + "properties": { + "endpoints": { + "type": "object" } } } } } - }, - "500": { - "description": "Error creating enterprise credential for workspace" } }, "x-codeSamples": [ { "lang": "shell", - "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/entp \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'accept: multipart/form-data' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE' \\\n --data '{\"certificate\":null,\"name\":\"string\",\"description\":\"string\"}'" + "source": "curl --request PUT \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/endpoints \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE' \\\n --data '{\"endpoints\":{}}'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'POST',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/entp',\n headers: {\n accept: 'multipart/form-data',\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n },\n body: {certificate: null, name: 'string', description: 'string'},\n json: true\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/endpoints';\n\nlet options = {\n method: 'PUT',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n },\n body: '{\"endpoints\":{}}'\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/entp');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'accept' => 'multipart/form-data',\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('{\"certificate\":null,\"name\":\"string\",\"description\":\"string\"}');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/endpoints');\n$request->setMethod(HTTP_METH_PUT);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('{\"endpoints\":{}}');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/entp\")\n .header(\"accept\", \"multipart/form-data\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .body(\"{\\\"certificate\\\":null,\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\")\n .asString();" + "source": "HttpResponse response = Unirest.put(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/endpoints\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .body(\"{\\\"endpoints\\\":{}}\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/entp\"\n\n\tpayload := strings.NewReader(\"{\\\"certificate\\\":null,\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\")\n\n\treq, _ := http.NewRequest(\"POST\", url, payload)\n\n\treq.Header.Add(\"accept\", \"multipart/form-data\")\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/endpoints\"\n\n\tpayload := strings.NewReader(\"{\\\"endpoints\\\":{}}\")\n\n\treq, _ := http.NewRequest(\"PUT\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"{\\\"certificate\\\":null,\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\"\n\nheaders = {\n 'accept': \"multipart/form-data\",\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/entp\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"{\\\"endpoints\\\":{}}\"\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"PUT\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/endpoints\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/entp\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"accept\", \"multipart/form-data\");\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"certificate\\\":null,\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/endpoints\");\nvar request = new RestRequest(Method.PUT);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"endpoints\\\":{}}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/entp\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = 'multipart/form-data'\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\nrequest.body = \"{\\\"certificate\\\":null,\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/endpoints\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Put.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\nrequest.body = \"{\\\"endpoints\\\":{}}\"\n\nresponse = http.request(request)\nputs response.read_body" } ] - } - }, - "/console/organizations/{orgId}/projects/{projectId}/workspaces/{workspaceId}/credentials/analytics": { - "post": { - "summary": "Create Analytics Credential", + }, + "get": { + "summary": "Get endpoints in a workspace", "tags": [ "workspaces" ], @@ -7345,104 +9938,69 @@ } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/components/credentials/Adobeid" - } - } - }, - "description": "Analytics credential object", - "required": true - }, "responses": { "200": { - "description": "Return analytics credential details", + "description": "Endpoints added to the workspace", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Credential id" - }, - "apiKey": { - "type": "string", - "description": "Credential API Key" - }, - "orgId": { - "type": "string", - "description": "IMS Org ID" - } + "type": "object", + "properties": { + "endpoints": { + "type": "object" } } } } } - }, - "500": { - "description": "Error creating analytics credential for workspace" } }, "x-codeSamples": [ { "lang": "shell", - "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/analytics \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE' \\\n --data '{\"name\":\"string\",\"description\":\"string\",\"platform\":\"string\",\"urlScheme\":\"string\",\"redirectUriList\":[\"string\"],\"defaultRedirectUri\":\"string\",\"domain\":\"string\",\"approvalInfo\":{\"websiteUrl\":\"string\",\"companyWebsiteUrl\":\"string\",\"integrationWebsiteUrl\":\"string\",\"contactEmail\":\"string\",\"integrationDescription\":\"string\",\"descriptionTypekit\":\"string\",\"descriptionCCStorage\":\"string\",\"otherCreativeSDK\":\"string\",\"domain\":\"string\",\"sdkComponents\":[\"string\"],\"requestState\":\"string\",\"requestStateList\":[{\"rejectReasons\":\"string\",\"requestState\":\"string\",\"created\":\"string\",\"comments\":\"string\"}]}}'" + "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/endpoints \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'POST',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/analytics',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n },\n body: {\n name: 'string',\n description: 'string',\n platform: 'string',\n urlScheme: 'string',\n redirectUriList: ['string'],\n defaultRedirectUri: 'string',\n domain: 'string',\n approvalInfo: {\n websiteUrl: 'string',\n companyWebsiteUrl: 'string',\n integrationWebsiteUrl: 'string',\n contactEmail: 'string',\n integrationDescription: 'string',\n descriptionTypekit: 'string',\n descriptionCCStorage: 'string',\n otherCreativeSDK: 'string',\n domain: 'string',\n sdkComponents: ['string'],\n requestState: 'string',\n requestStateList: [\n {\n rejectReasons: 'string',\n requestState: 'string',\n created: 'string',\n comments: 'string'\n }\n ]\n }\n },\n json: true\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/endpoints';\n\nlet options = {\n method: 'GET',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/analytics');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('{\"name\":\"string\",\"description\":\"string\",\"platform\":\"string\",\"urlScheme\":\"string\",\"redirectUriList\":[\"string\"],\"defaultRedirectUri\":\"string\",\"domain\":\"string\",\"approvalInfo\":{\"websiteUrl\":\"string\",\"companyWebsiteUrl\":\"string\",\"integrationWebsiteUrl\":\"string\",\"contactEmail\":\"string\",\"integrationDescription\":\"string\",\"descriptionTypekit\":\"string\",\"descriptionCCStorage\":\"string\",\"otherCreativeSDK\":\"string\",\"domain\":\"string\",\"sdkComponents\":[\"string\"],\"requestState\":\"string\",\"requestStateList\":[{\"rejectReasons\":\"string\",\"requestState\":\"string\",\"created\":\"string\",\"comments\":\"string\"}]}}');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/endpoints');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/analytics\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .body(\"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"string\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"approvalInfo\\\":{\\\"websiteUrl\\\":\\\"string\\\",\\\"companyWebsiteUrl\\\":\\\"string\\\",\\\"integrationWebsiteUrl\\\":\\\"string\\\",\\\"contactEmail\\\":\\\"string\\\",\\\"integrationDescription\\\":\\\"string\\\",\\\"descriptionTypekit\\\":\\\"string\\\",\\\"descriptionCCStorage\\\":\\\"string\\\",\\\"otherCreativeSDK\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"sdkComponents\\\":[\\\"string\\\"],\\\"requestState\\\":\\\"string\\\",\\\"requestStateList\\\":[{\\\"rejectReasons\\\":\\\"string\\\",\\\"requestState\\\":\\\"string\\\",\\\"created\\\":\\\"string\\\",\\\"comments\\\":\\\"string\\\"}]}}\")\n .asString();" + "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/endpoints\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/analytics\"\n\n\tpayload := strings.NewReader(\"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"string\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"approvalInfo\\\":{\\\"websiteUrl\\\":\\\"string\\\",\\\"companyWebsiteUrl\\\":\\\"string\\\",\\\"integrationWebsiteUrl\\\":\\\"string\\\",\\\"contactEmail\\\":\\\"string\\\",\\\"integrationDescription\\\":\\\"string\\\",\\\"descriptionTypekit\\\":\\\"string\\\",\\\"descriptionCCStorage\\\":\\\"string\\\",\\\"otherCreativeSDK\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"sdkComponents\\\":[\\\"string\\\"],\\\"requestState\\\":\\\"string\\\",\\\"requestStateList\\\":[{\\\"rejectReasons\\\":\\\"string\\\",\\\"requestState\\\":\\\"string\\\",\\\"created\\\":\\\"string\\\",\\\"comments\\\":\\\"string\\\"}]}}\")\n\n\treq, _ := http.NewRequest(\"POST\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/endpoints\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"string\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"approvalInfo\\\":{\\\"websiteUrl\\\":\\\"string\\\",\\\"companyWebsiteUrl\\\":\\\"string\\\",\\\"integrationWebsiteUrl\\\":\\\"string\\\",\\\"contactEmail\\\":\\\"string\\\",\\\"integrationDescription\\\":\\\"string\\\",\\\"descriptionTypekit\\\":\\\"string\\\",\\\"descriptionCCStorage\\\":\\\"string\\\",\\\"otherCreativeSDK\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"sdkComponents\\\":[\\\"string\\\"],\\\"requestState\\\":\\\"string\\\",\\\"requestStateList\\\":[{\\\"rejectReasons\\\":\\\"string\\\",\\\"requestState\\\":\\\"string\\\",\\\"created\\\":\\\"string\\\",\\\"comments\\\":\\\"string\\\"}]}}\"\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/analytics\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/endpoints\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/analytics\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"string\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"approvalInfo\\\":{\\\"websiteUrl\\\":\\\"string\\\",\\\"companyWebsiteUrl\\\":\\\"string\\\",\\\"integrationWebsiteUrl\\\":\\\"string\\\",\\\"contactEmail\\\":\\\"string\\\",\\\"integrationDescription\\\":\\\"string\\\",\\\"descriptionTypekit\\\":\\\"string\\\",\\\"descriptionCCStorage\\\":\\\"string\\\",\\\"otherCreativeSDK\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"sdkComponents\\\":[\\\"string\\\"],\\\"requestState\\\":\\\"string\\\",\\\"requestStateList\\\":[{\\\"rejectReasons\\\":\\\"string\\\",\\\"requestState\\\":\\\"string\\\",\\\"created\\\":\\\"string\\\",\\\"comments\\\":\\\"string\\\"}]}}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/endpoints\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/analytics\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\nrequest.body = \"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"string\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"approvalInfo\\\":{\\\"websiteUrl\\\":\\\"string\\\",\\\"companyWebsiteUrl\\\":\\\"string\\\",\\\"integrationWebsiteUrl\\\":\\\"string\\\",\\\"contactEmail\\\":\\\"string\\\",\\\"integrationDescription\\\":\\\"string\\\",\\\"descriptionTypekit\\\":\\\"string\\\",\\\"descriptionCCStorage\\\":\\\"string\\\",\\\"otherCreativeSDK\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"sdkComponents\\\":[\\\"string\\\"],\\\"requestState\\\":\\\"string\\\",\\\"requestStateList\\\":[{\\\"rejectReasons\\\":\\\"string\\\",\\\"requestState\\\":\\\"string\\\",\\\"created\\\":\\\"string\\\",\\\"comments\\\":\\\"string\\\"}]}}\"\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/endpoints\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, - "/console/organizations/{orgId}/projects/{projectId}/workspaces/{workspaceId}/credentials/adobeId": { - "post": { - "summary": "Create AdobeId Credential", + "/console/organizations/{orgId}/projects_workspaces/credentials/{credentialId}": { + "get": { + "summary": "Get project/workspace IDs for a credential", "tags": [ "workspaces" ], "parameters": [ { "name": "orgId", - "description": "Org ID", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "projectId", - "description": "Project ID", + "description": "Organization ID", "in": "path", "required": true, "schema": { @@ -7450,8 +10008,8 @@ } }, { - "name": "workspaceId", - "description": "Workspace ID", + "name": "credentialId", + "description": "Credential ID", "in": "path", "required": true, "schema": { @@ -7477,20 +10035,9 @@ } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/components/credentials/Adobeid" - } - } - }, - "description": "AdobeId credential object", - "required": true - }, "responses": { "200": { - "description": "Return adobeid credential details", + "description": "Project/workspace IDs", "content": { "application/json": { "schema": { @@ -7498,17 +10045,17 @@ "items": { "type": "object", "properties": { - "id": { + "projectId": { "type": "string", - "description": "Credential id" + "description": "Project id" }, - "apiKey": { + "workspaceId": { "type": "string", - "description": "Credential API Key" + "description": "Workspace id" }, - "orgId": { + "credentialId": { "type": "string", - "description": "IMS Org ID" + "description": "Credential id" } } } @@ -7516,83 +10063,59 @@ } } }, + "404": { + "description": "Project/workspace not found" + }, "500": { - "description": "Error creating adobeId credential for workspace" + "description": "Error retrieving workspace/project info" } }, "x-codeSamples": [ { "lang": "shell", - "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/adobeId \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE' \\\n --data '{\"name\":\"string\",\"description\":\"string\",\"platform\":\"string\",\"urlScheme\":\"string\",\"redirectUriList\":[\"string\"],\"defaultRedirectUri\":\"string\",\"domain\":\"string\",\"approvalInfo\":{\"websiteUrl\":\"string\",\"companyWebsiteUrl\":\"string\",\"integrationWebsiteUrl\":\"string\",\"contactEmail\":\"string\",\"integrationDescription\":\"string\",\"descriptionTypekit\":\"string\",\"descriptionCCStorage\":\"string\",\"otherCreativeSDK\":\"string\",\"domain\":\"string\",\"sdkComponents\":[\"string\"],\"requestState\":\"string\",\"requestStateList\":[{\"rejectReasons\":\"string\",\"requestState\":\"string\",\"created\":\"string\",\"comments\":\"string\"}]}}'" + "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/credentials/%7BcredentialId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'POST',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/adobeId',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n },\n body: {\n name: 'string',\n description: 'string',\n platform: 'string',\n urlScheme: 'string',\n redirectUriList: ['string'],\n defaultRedirectUri: 'string',\n domain: 'string',\n approvalInfo: {\n websiteUrl: 'string',\n companyWebsiteUrl: 'string',\n integrationWebsiteUrl: 'string',\n contactEmail: 'string',\n integrationDescription: 'string',\n descriptionTypekit: 'string',\n descriptionCCStorage: 'string',\n otherCreativeSDK: 'string',\n domain: 'string',\n sdkComponents: ['string'],\n requestState: 'string',\n requestStateList: [\n {\n rejectReasons: 'string',\n requestState: 'string',\n created: 'string',\n comments: 'string'\n }\n ]\n }\n },\n json: true\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/credentials/%7BcredentialId%7D';\n\nlet options = {\n method: 'GET',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/adobeId');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('{\"name\":\"string\",\"description\":\"string\",\"platform\":\"string\",\"urlScheme\":\"string\",\"redirectUriList\":[\"string\"],\"defaultRedirectUri\":\"string\",\"domain\":\"string\",\"approvalInfo\":{\"websiteUrl\":\"string\",\"companyWebsiteUrl\":\"string\",\"integrationWebsiteUrl\":\"string\",\"contactEmail\":\"string\",\"integrationDescription\":\"string\",\"descriptionTypekit\":\"string\",\"descriptionCCStorage\":\"string\",\"otherCreativeSDK\":\"string\",\"domain\":\"string\",\"sdkComponents\":[\"string\"],\"requestState\":\"string\",\"requestStateList\":[{\"rejectReasons\":\"string\",\"requestState\":\"string\",\"created\":\"string\",\"comments\":\"string\"}]}}');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/credentials/%7BcredentialId%7D');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/adobeId\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .body(\"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"string\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"approvalInfo\\\":{\\\"websiteUrl\\\":\\\"string\\\",\\\"companyWebsiteUrl\\\":\\\"string\\\",\\\"integrationWebsiteUrl\\\":\\\"string\\\",\\\"contactEmail\\\":\\\"string\\\",\\\"integrationDescription\\\":\\\"string\\\",\\\"descriptionTypekit\\\":\\\"string\\\",\\\"descriptionCCStorage\\\":\\\"string\\\",\\\"otherCreativeSDK\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"sdkComponents\\\":[\\\"string\\\"],\\\"requestState\\\":\\\"string\\\",\\\"requestStateList\\\":[{\\\"rejectReasons\\\":\\\"string\\\",\\\"requestState\\\":\\\"string\\\",\\\"created\\\":\\\"string\\\",\\\"comments\\\":\\\"string\\\"}]}}\")\n .asString();" + "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/credentials/%7BcredentialId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/adobeId\"\n\n\tpayload := strings.NewReader(\"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"string\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"approvalInfo\\\":{\\\"websiteUrl\\\":\\\"string\\\",\\\"companyWebsiteUrl\\\":\\\"string\\\",\\\"integrationWebsiteUrl\\\":\\\"string\\\",\\\"contactEmail\\\":\\\"string\\\",\\\"integrationDescription\\\":\\\"string\\\",\\\"descriptionTypekit\\\":\\\"string\\\",\\\"descriptionCCStorage\\\":\\\"string\\\",\\\"otherCreativeSDK\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"sdkComponents\\\":[\\\"string\\\"],\\\"requestState\\\":\\\"string\\\",\\\"requestStateList\\\":[{\\\"rejectReasons\\\":\\\"string\\\",\\\"requestState\\\":\\\"string\\\",\\\"created\\\":\\\"string\\\",\\\"comments\\\":\\\"string\\\"}]}}\")\n\n\treq, _ := http.NewRequest(\"POST\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/credentials/%7BcredentialId%7D\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"string\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"approvalInfo\\\":{\\\"websiteUrl\\\":\\\"string\\\",\\\"companyWebsiteUrl\\\":\\\"string\\\",\\\"integrationWebsiteUrl\\\":\\\"string\\\",\\\"contactEmail\\\":\\\"string\\\",\\\"integrationDescription\\\":\\\"string\\\",\\\"descriptionTypekit\\\":\\\"string\\\",\\\"descriptionCCStorage\\\":\\\"string\\\",\\\"otherCreativeSDK\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"sdkComponents\\\":[\\\"string\\\"],\\\"requestState\\\":\\\"string\\\",\\\"requestStateList\\\":[{\\\"rejectReasons\\\":\\\"string\\\",\\\"requestState\\\":\\\"string\\\",\\\"created\\\":\\\"string\\\",\\\"comments\\\":\\\"string\\\"}]}}\"\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/adobeId\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/projects_workspaces/credentials/%7BcredentialId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/adobeId\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"string\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"approvalInfo\\\":{\\\"websiteUrl\\\":\\\"string\\\",\\\"companyWebsiteUrl\\\":\\\"string\\\",\\\"integrationWebsiteUrl\\\":\\\"string\\\",\\\"contactEmail\\\":\\\"string\\\",\\\"integrationDescription\\\":\\\"string\\\",\\\"descriptionTypekit\\\":\\\"string\\\",\\\"descriptionCCStorage\\\":\\\"string\\\",\\\"otherCreativeSDK\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"sdkComponents\\\":[\\\"string\\\"],\\\"requestState\\\":\\\"string\\\",\\\"requestStateList\\\":[{\\\"rejectReasons\\\":\\\"string\\\",\\\"requestState\\\":\\\"string\\\",\\\"created\\\":\\\"string\\\",\\\"comments\\\":\\\"string\\\"}]}}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/credentials/%7BcredentialId%7D\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/adobeId\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\nrequest.body = \"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"string\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"approvalInfo\\\":{\\\"websiteUrl\\\":\\\"string\\\",\\\"companyWebsiteUrl\\\":\\\"string\\\",\\\"integrationWebsiteUrl\\\":\\\"string\\\",\\\"contactEmail\\\":\\\"string\\\",\\\"integrationDescription\\\":\\\"string\\\",\\\"descriptionTypekit\\\":\\\"string\\\",\\\"descriptionCCStorage\\\":\\\"string\\\",\\\"otherCreativeSDK\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"sdkComponents\\\":[\\\"string\\\"],\\\"requestState\\\":\\\"string\\\",\\\"requestStateList\\\":[{\\\"rejectReasons\\\":\\\"string\\\",\\\"requestState\\\":\\\"string\\\",\\\"created\\\":\\\"string\\\",\\\"comments\\\":\\\"string\\\"}]}}\"\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/credentials/%7BcredentialId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, - "/console/organizations/{orgId}/projects/{projectId}/workspaces/{workspaceId}/credentials/{credentialType}/{credentialId}/services": { - "put": { - "summary": "Subscribe Credential to Services", + "/console/organizations/{orgId}/clients/{clientId}/project_workspace": { + "get": { + "summary": "Get project/workspace IDs for a client", "tags": [ "workspaces" ], "parameters": [ { "name": "orgId", - "description": "Org ID", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "projectId", - "description": "Project ID", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "workspaceId", - "description": "Workspace ID", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "credentialType", - "description": "Type of credential (adobeid, analytics, entp)", + "description": "Organization ID", "in": "path", "required": true, "schema": { @@ -7600,8 +10123,8 @@ } }, { - "name": "credentialId", - "description": "ID of credential", + "name": "clientId", + "description": "Client ID", "in": "path", "required": true, "schema": { @@ -7627,30 +10150,25 @@ } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/components/services/SubscribeToServices" - } - } - }, - "description": "SDK codes to add to credential" - }, "responses": { "200": { - "description": "List of services credential is subscribed to", + "description": "Project/workspace IDs", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "sdkList": { - "type": "string", - "description": "List of SDK codes associated with credential" - } + "type": "object", + "properties": { + "projectId": { + "type": "string", + "description": "Project id" + }, + "workspaceId": { + "type": "string", + "description": "Workspace id" + }, + "integrationId": { + "type": "string", + "description": "Integration id" } } } @@ -7658,48 +10176,51 @@ } }, "404": { - "description": "Credential not found" + "description": "Project/workspace not found" + }, + "500": { + "description": "Error retrieving project/workspace info" } }, "x-codeSamples": [ { "lang": "shell", - "source": "curl --request PUT \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/%7BintegrationType%7D/%7BcredentialId%7D/services \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE' \\\n --data '[{\"sdkCode\":\"string\",\"licenseConfigs\":[{\"productId\":\"string\",\"id\":\"string\",\"op\":\"string\"}],\"roles\":[{\"id\":0,\"code\":\"string\",\"name\":\"string\"}]}]'" + "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/clients/%7BclientId%7D/project_workspace \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'PUT',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/%7BintegrationType%7D/%7BcredentialId%7D/services',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n },\n body: [\n {\n sdkCode: 'string',\n licenseConfigs: [{productId: 'string', id: 'string', op: 'string'}],\n roles: [{id: 0, code: 'string', name: 'string'}]\n }\n ],\n json: true\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/clients/%7BclientId%7D/project_workspace';\n\nlet options = {\n method: 'GET',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/%7BintegrationType%7D/%7BcredentialId%7D/services');\n$request->setMethod(HTTP_METH_PUT);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('[{\"sdkCode\":\"string\",\"licenseConfigs\":[{\"productId\":\"string\",\"id\":\"string\",\"op\":\"string\"}],\"roles\":[{\"id\":0,\"code\":\"string\",\"name\":\"string\"}]}]');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/clients/%7BclientId%7D/project_workspace');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.put(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/%7BintegrationType%7D/%7BcredentialId%7D/services\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .body(\"[{\\\"sdkCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"productId\\\":\\\"string\\\",\\\"id\\\":\\\"string\\\",\\\"op\\\":\\\"string\\\"}],\\\"roles\\\":[{\\\"id\\\":0,\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}]\")\n .asString();" + "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/clients/%7BclientId%7D/project_workspace\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/%7BintegrationType%7D/%7BcredentialId%7D/services\"\n\n\tpayload := strings.NewReader(\"[{\\\"sdkCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"productId\\\":\\\"string\\\",\\\"id\\\":\\\"string\\\",\\\"op\\\":\\\"string\\\"}],\\\"roles\\\":[{\\\"id\\\":0,\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}]\")\n\n\treq, _ := http.NewRequest(\"PUT\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/clients/%7BclientId%7D/project_workspace\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"[{\\\"sdkCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"productId\\\":\\\"string\\\",\\\"id\\\":\\\"string\\\",\\\"op\\\":\\\"string\\\"}],\\\"roles\\\":[{\\\"id\\\":0,\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}]\"\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"PUT\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/%7BintegrationType%7D/%7BcredentialId%7D/services\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/clients/%7BclientId%7D/project_workspace\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/%7BintegrationType%7D/%7BcredentialId%7D/services\");\nvar request = new RestRequest(Method.PUT);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"[{\\\"sdkCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"productId\\\":\\\"string\\\",\\\"id\\\":\\\"string\\\",\\\"op\\\":\\\"string\\\"}],\\\"roles\\\":[{\\\"id\\\":0,\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}]\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/clients/%7BclientId%7D/project_workspace\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/%7BintegrationType%7D/%7BcredentialId%7D/services\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Put.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\nrequest.body = \"[{\\\"sdkCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"productId\\\":\\\"string\\\",\\\"id\\\":\\\"string\\\",\\\"op\\\":\\\"string\\\"}],\\\"roles\\\":[{\\\"id\\\":0,\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}]\"\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/clients/%7BclientId%7D/project_workspace\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, - "/console/organizations/{orgId}/projects_workspaces/credentials/{credentialId}": { + "/console/organizations/{orgId}/projects_workspaces/workspaces/{workspaceId}": { "get": { - "summary": "Get project/workspace IDs for an credentials", + "summary": "Get project ID for a workspace", "tags": [ "workspaces" ], @@ -7714,8 +10235,8 @@ } }, { - "name": "credentialId", - "description": "Credential ID", + "name": "workspaceId", + "description": "Workspace ID", "in": "path", "required": true, "schema": { @@ -7743,7 +10264,7 @@ ], "responses": { "200": { - "description": "Project/workspace IDs", + "description": "Project ID", "content": { "application/json": { "schema": { @@ -7758,10 +10279,6 @@ "workspaceId": { "type": "string", "description": "Workspace id" - }, - "credentialId": { - "type": "string", - "description": "Credential id" } } } @@ -7770,58 +10287,67 @@ } }, "404": { - "description": "Credential not found / Project not found" + "description": "Project not found" }, "500": { - "description": "Error retrieving workspace/project info" + "description": "Error retrieving project info" } }, "x-codeSamples": [ { "lang": "shell", - "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/credentials/%7BcredentialId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/workspaces/%7BworkspaceId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/credentials/%7BcredentialId%7D',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/workspaces/%7BworkspaceId%7D';\n\nlet options = {\n method: 'GET',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/credentials/%7BcredentialId%7D');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/workspaces/%7BworkspaceId%7D');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/credentials/%7BcredentialId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/workspaces/%7BworkspaceId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/credentials/%7BcredentialId%7D\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/workspaces/%7BworkspaceId%7D\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/projects_workspaces/credentials/%7BcredentialId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/projects_workspaces/workspaces/%7BworkspaceId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/credentials/%7BcredentialId%7D\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/workspaces/%7BworkspaceId%7D\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/credentials/%7BcredentialId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/workspaces/%7BworkspaceId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, - "/console/organizations/{orgId}/projects_workspaces/workspaces/{workspaceId}": { - "get": { - "summary": "Get project ID for a workspace", + "/console/organizations/{orgId}/projects/{projectId}/workspaces/{workspaceId}/credentials/entp/{credId}/certificate/generateAndAssign": { + "post": { + "summary": "Generate certificate key/pair for existing credential", "tags": [ "workspaces" ], "parameters": [ { "name": "orgId", - "description": "Organization ID", + "description": "Org ID", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "projectId", + "description": "Project ID", "in": "path", "required": true, "schema": { @@ -7837,6 +10363,15 @@ "type": "string" } }, + { + "name": "credId", + "description": "Credential ID", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "Authorization", "description": "Access token", @@ -7858,67 +10393,44 @@ ], "responses": { "200": { - "description": "Project ID", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "projectId": { - "type": "string", - "description": "Project id" - }, - "workspaceId": { - "type": "string", - "description": "Workspace id" - } - } - } - } - } - } - }, - "404": { - "description": "Project not found" + "description": "Returns zip file that contains public/private keys" }, "500": { - "description": "Error retrieving project info" + "description": "Error generating certificate key pair" } }, "x-codeSamples": [ { "lang": "shell", - "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/workspaces/%7BworkspaceId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" + "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/entp/%7BcredId%7D/certificate/generateAndAssign \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'accept: application/json' \\\n --header 'content-type: application/zip' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/workspaces/%7BworkspaceId%7D',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/entp/%7BcredId%7D/certificate/generateAndAssign';\n\nlet options = {\n method: 'POST',\n headers: {\n accept: 'application/json',\n 'content-type': 'application/zip',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", - "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/workspaces/%7BworkspaceId%7D');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/entp/%7BcredId%7D/certificate/generateAndAssign');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'accept' => 'application/json',\n 'content-type' => 'application/zip',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", - "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/workspaces/%7BworkspaceId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" + "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/entp/%7BcredId%7D/certificate/generateAndAssign\")\n .header(\"accept\", \"application/json\")\n .header(\"content-type\", \"application/zip\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", - "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/workspaces/%7BworkspaceId%7D\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/entp/%7BcredId%7D/certificate/generateAndAssign\"\n\n\treq, _ := http.NewRequest(\"POST\", url, nil)\n\n\treq.Header.Add(\"accept\", \"application/json\")\n\treq.Header.Add(\"content-type\", \"application/zip\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", - "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/projects_workspaces/workspaces/%7BworkspaceId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'accept': \"application/json\",\n 'content-type': \"application/zip\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/entp/%7BcredId%7D/certificate/generateAndAssign\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", - "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/workspaces/%7BworkspaceId%7D\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/entp/%7BcredId%7D/certificate/generateAndAssign\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"accept\", \"application/json\");\nrequest.AddHeader(\"content-type\", \"application/zip\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", - "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/workspaces/%7BworkspaceId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/entp/%7BcredId%7D/certificate/generateAndAssign\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = 'application/json'\nrequest[\"content-type\"] = 'application/zip'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } @@ -7957,15 +10469,6 @@ "type": "string" } }, - { - "name": "credentialType", - "description": "Type of credentials (adobeid, analytics, entp)", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, { "name": "credentialId", "description": "ID of credential", @@ -8009,7 +10512,7 @@ }, { "lang": "node", - "source": "const request = require('request');\n\nconst options = {\n method: 'DELETE',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/%7BcredentialId%7D',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/%7BcredentialId%7D';\n\nlet options = {\n method: 'DELETE',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { "lang": "php", @@ -8038,11 +10541,11 @@ ] } }, - "/console/organizations/{orgId}/projects/{projectId}/workspaces/{workspaceId}/endpoints": { - "put": { - "summary": "Update endpoints in a workspace", + "/console/organizations/{orgId}/projects/{projectId}/workspaces/{workspaceId}/credentials/oauth-server-to-server": { + "post": { + "summary": "Create oauth server to server credentials", "tags": [ - "Extensions" + "workspaces" ], "parameters": [ { @@ -8095,141 +10598,94 @@ "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "endpoints": { - "type": "object" - } - } + "$ref": "#/components/schemas/OAuthServerToServer" } } - } + }, + "description": "Oauth server to server credential object", + "required": true }, "responses": { "200": { - "description": "Endpoints added to the workspace", + "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { - "endpoints": { - "type": "object" + "id": { + "type": "string" + }, + "apiKey": { + "type": "string" + }, + "orgId": { + "type": "string" } } } } } + }, + "400": { + "description": "Bad Request" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "500": { + "description": "Error creating service oauth server to server credentials" } - } - }, - "get": { - "summary": "Get endpoints in a workspace", - "tags": [ - "Extensions" - ], - "parameters": [ + }, + "x-codeSamples": [ { - "name": "orgId", - "description": "Org ID", - "in": "path", - "required": true, - "schema": { - "type": "string" - } + "lang": "shell", + "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/oauth-server-to-server \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'accept: application/json' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE' \\\n --data '{\"name\":\"string\",\"description\":\"string\",\"technicalAccountName\":\"string\"}'" }, { - "name": "projectId", - "description": "Project ID", - "in": "path", - "required": true, - "schema": { - "type": "string" - } + "lang": "node", + "source": "const fetch = require('node-fetch');\n\nlet url = 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/oauth-server-to-server';\n\nlet options = {\n method: 'POST',\n headers: {\n accept: 'application/json',\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n },\n body: '{\"name\":\"string\",\"description\":\"string\",\"technicalAccountName\":\"string\"}'\n};\n\nfetch(url, options)\n .then(res => res.json())\n .then(json => console.log(json))\n .catch(err => console.error('error:' + err));" }, { - "name": "workspaceId", - "description": "Workspace ID", - "in": "path", - "required": true, - "schema": { - "type": "string" - } + "lang": "php", + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/oauth-server-to-server');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'accept' => 'application/json',\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('{\"name\":\"string\",\"description\":\"string\",\"technicalAccountName\":\"string\"}');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { - "name": "Authorization", - "description": "Access token", - "in": "header", - "required": true, - "schema": { - "type": "string" - } + "lang": "java", + "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/oauth-server-to-server\")\n .header(\"accept\", \"application/json\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .body(\"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"technicalAccountName\\\":\\\"string\\\"}\")\n .asString();" }, { - "name": "x-api-key", - "description": "API key", - "in": "header", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Endpoints added to the workspace", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "endpoints": { - "type": "object" - } - } - } - } - } + "lang": "go", + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/oauth-server-to-server\"\n\n\tpayload := strings.NewReader(\"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"technicalAccountName\\\":\\\"string\\\"}\")\n\n\treq, _ := http.NewRequest(\"POST\", url, payload)\n\n\treq.Header.Add(\"accept\", \"application/json\")\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + }, + { + "lang": "python", + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"technicalAccountName\\\":\\\"string\\\"}\"\n\nheaders = {\n 'accept': \"application/json\",\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/oauth-server-to-server\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + }, + { + "lang": "csharp", + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/oauth-server-to-server\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"accept\", \"application/json\");\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"technicalAccountName\\\":\\\"string\\\"}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" + }, + { + "lang": "ruby", + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/oauth-server-to-server\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = 'application/json'\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\nrequest.body = \"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"technicalAccountName\\\":\\\"string\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body" } - } + ] } }, - "/console/organizations/{orgId}/xp/{xpId}": { + "/console/organizations/{orgId}/xr-api/v1/app": { "get": { - "summary": "Get all available extension points", + "summary": "get Application Extensions by Id", "tags": [ "Extensions" ], "parameters": [ - { - "name": "Authorization", - "description": "Authorization", - "in": "header", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "x-api-key", - "description": "API key", - "in": "header", - "required": true, - "schema": { - "type": "string" - } - }, { "name": "orgId", - "description": "AMS org id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "xpId", + "description": "AMS Organization ID", "in": "path", "required": true, "schema": { @@ -8237,17 +10693,19 @@ } }, { - "name": "offset", + "name": "appId", + "description": "Application id", "in": "query", - "required": false, + "required": true, "schema": { "type": "string" } }, { - "name": "pageSize", - "in": "query", - "required": false, + "name": "Authorization", + "description": "Authorization", + "in": "header", + "required": true, "schema": { "type": "string" } @@ -8259,164 +10717,238 @@ "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "serviceCode": { - "type": "string" - }, - "version": { - "type": "string" - }, - "idVer": { - "type": "string" - }, - "title": { - "type": "string" - }, - "specVersion": { - "type": "string" - }, - "operations": { - "type": "array", - "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "appId": { + "type": "string", + "description": "application id" + }, + "name": { + "type": "string", + "description": "application name" + }, + "title": { "type": "string" - } - }, - "ficodes": { - "type": "array", - "items": { + }, + "publisherId": { "type": "string" - } - }, - "state": { - "type": "string" - }, - "publisherId": { - "type": "string" - }, - "lifecycle": { - "type": "object", - "properties": { - "created": { + }, + "status": { + "type": "string", + "description": "application status" + }, + "isPrivate": { + "type": "boolean" + }, + "description": { + "type": "string", + "description": "application description" + }, + "version": { + "type": "string" + }, + "workspaces": { + "type": "array", + "description": "list of workspaces in the application", + "items": { "type": "object", "properties": { - "by": { - "type": "object", - "properties": { - "guid": { - "type": "string" - } - } + "id": { + "type": "string", + "description": "workspace id" + }, + "name": { + "type": "string", + "description": "workspace name" }, - "notes": { + "endPoint": { "type": "string" }, - "on": { + "deepLink": { "type": "string" - } - } - }, - "lastModified": { - "type": "object", - "properties": { - "by": { - "type": "object", - "properties": { - "guid": { - "type": "string" - } - } }, - "notes": { + "shellProps": { "type": "string" }, - "on": { + "releaseNotes": { "type": "string" - } - } - }, - "submitted": { - "type": "object", - "properties": { - "by": { + }, + "approveList": { "type": "object", + "description": "list of approveList users & orgs", "properties": { - "guid": { - "type": "string" + "users": { + "type": "array", + "items": { + "type": "object", + "properties": { + "guid": { + "type": "string" + } + } + } + }, + "orgs": { + "type": "array", + "items": { + "type": "object", + "properties": { + "orgId": { + "type": "string" + }, + "orgName": { + "type": "string" + } + } + } } } - }, - "notes": { - "type": "string" - }, - "on": { - "type": "string" } } - }, - "published": { - "type": "object", - "properties": { - "by": { - "type": "object", - "properties": { - "guid": { - "type": "string" + } + }, + "lifecycle": { + "type": "object", + "properties": { + "created": { + "type": "object", + "properties": { + "by": { + "type": "object", + "properties": { + "guid": { + "type": "string" + } } + }, + "notes": { + "type": "string" + }, + "on": { + "type": "string" } - }, - "notes": { - "type": "string" - }, - "on": { - "type": "string" } - } - }, - "reviewed": { - "type": "object", - "properties": { - "by": { - "type": "object", - "properties": { - "guid": { - "type": "string" + }, + "lastModified": { + "type": "object", + "properties": { + "by": { + "type": "object", + "properties": { + "guid": { + "type": "string" + } } + }, + "notes": { + "type": "string" + }, + "on": { + "type": "string" } - }, - "notes": { - "type": "string" - }, - "on": { - "type": "string" } - } - }, - "unpublished": { - "type": "object", - "properties": { - "by": { - "type": "object", - "properties": { - "guid": { - "type": "string" + }, + "submitted": { + "type": "object", + "properties": { + "by": { + "type": "object", + "properties": { + "guid": { + "type": "string" + } } + }, + "notes": { + "type": "string" + }, + "on": { + "type": "string" + } + } + }, + "published": { + "type": "object", + "properties": { + "by": { + "type": "object", + "properties": { + "guid": { + "type": "string" + } + } + }, + "notes": { + "type": "string" + }, + "on": { + "type": "string" + } + } + }, + "reviewed": { + "type": "object", + "properties": { + "by": { + "type": "object", + "properties": { + "guid": { + "type": "string" + } + } + }, + "notes": { + "type": "string" + }, + "on": { + "type": "string" + } + } + }, + "unpublished": { + "type": "object", + "properties": { + "by": { + "type": "object", + "properties": { + "guid": { + "type": "string" + } + } + }, + "notes": { + "type": "string" + }, + "on": { + "type": "string" } - }, - "notes": { - "type": "string" - }, - "on": { - "type": "string" } } } + }, + "support": { + "type": "object", + "description": "support information for the application", + "properties": { + "email": { + "type": "string" + }, + "contact": { + "type": "string" + }, + "website": { + "type": "string" + } + } + }, + "icon": { + "type": "string", + "description": "URL for the icon" + }, + "media": { + "type": "string" } } } @@ -8424,13 +10956,56 @@ } } }, - "404": { - "description": "If service code or EP ID is not found" + "400": { + "description": "Bad Request" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + }, + "500": { + "description": "Internal Server Error" + } + }, + "x-codeSamples": [ + { + "lang": "shell", + "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json'" }, - "405": { - "description": "Invalid Input" + { + "lang": "node", + "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D',\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'}\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + }, + { + "lang": "php", + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + }, + { + "lang": "java", + "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .asString();" + }, + { + "lang": "go", + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + }, + { + "lang": "python", + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/apps/%7BappId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + }, + { + "lang": "csharp", + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + }, + { + "lang": "ruby", + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } - } + ] } } }, @@ -8441,15 +11016,96 @@ ], "components": { "requestBodies": { - "Form": { + "Adobeid": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Adobeid" + } + } + }, + "description": "AdobeId credential object", + "required": true + }, + "OAuthServerToServer": { "content": { "application/json": { - "schema": {} + "schema": { + "$ref": "#/components/schemas/OAuthServerToServer" + } + } + }, + "description": "oauth server to server credential object", + "required": true + }, + "SubscribeItem": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "sdkCode": { + "type": "string" + }, + "atlasPlanCode": { + "type": "string" + }, + "licenseConfigs": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "productId": { + "type": "string" + }, + "description": { + "type": "string" + }, + "selected": { + "type": "boolean" + } + } + } + }, + "roles": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "code": { + "type": "string" + }, + "name": { + "type": "string" + } + } + } + } + } + } } }, - "description": "form", + "description": "form data", "required": true }, + "Mesh": { + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + } + }, "Subscriptionlist": { "content": { "application/json": { @@ -8461,6 +11117,9 @@ "sdkCode": { "type": "string" }, + "atlasPlanCode": { + "type": "string" + }, "licenseConfigs": { "type": "array", "items": { @@ -8470,7 +11129,7 @@ "type": "string" }, "name": { - "type": "name" + "type": "string" }, "productId": { "type": "string" @@ -8511,164 +11170,146 @@ } }, "schemas": { - "components": { - "credentials": { - "Adobeid": { - "type": "object", - "required": [ - "name", - "description", - "platform" - ], - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "platform": { - "type": "string" - }, - "urlScheme": { - "type": "string" - }, - "redirectUriList": { - "type": "array", - "items": { - "type": "string" - } - }, - "defaultRedirectUri": { - "type": "string" - }, - "domain": { - "type": "string" - }, - "approvalInfo": { + "Adobeid": { + "type": "object", + "required": [ + "name", + "description", + "platform", + "defaultRedirectUri" + ], + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "platform": { + "type": "string", + "enum": [ + "WebApp", + "SinglePageApp", + "NativeApp", + "apiKey" + ] + }, + "urlScheme": { + "type": "string" + }, + "redirectUriList": { + "type": "array", + "items": { + "type": "string" + } + }, + "defaultRedirectUri": { + "type": "string" + }, + "domain": { + "type": "string" + } + } + }, + "Analytics": { + "type": "object", + "required": [ + "name", + "description", + "platform", + "defaultRedirectUri" + ], + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "platform": { + "type": "string", + "enum": [ + "Web", + "Android", + "iOS" + ] + }, + "urlScheme": { + "type": "string" + }, + "redirectUriList": { + "type": "array", + "items": { + "type": "string" + } + }, + "defaultRedirectUri": { + "type": "string" + }, + "domain": { + "type": "string" + } + } + }, + "OAuthServerToServer": { + "type": "object", + "required": [ + "name", + "description" + ], + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "technicalAccountName": { + "type": "string" + } + } + }, + "SubscribeToServices": { + "type": "array", + "items": { + "type": "object", + "properties": { + "sdkCode": { + "type": "string" + }, + "atlasPlanCode": { + "type": "string" + }, + "licenseConfigs": { + "type": "array", + "items": { "type": "object", "properties": { - "websiteUrl": { - "type": "string" - }, - "companyWebsiteUrl": { - "type": "string" - }, - "integrationWebsiteUrl": { - "type": "string" - }, - "contactEmail": { - "type": "string" - }, - "integrationDescription": { - "type": "string" - }, - "descriptionTypekit": { + "productId": { "type": "string" }, - "descriptionCCStorage": { + "id": { "type": "string" }, - "otherCreativeSDK": { + "op": { "type": "string" + } + } + } + }, + "roles": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "integer" }, - "domain": { + "code": { "type": "string" }, - "sdkComponents": { - "type": "array", - "items": { - "type": "string" - } - }, - "requestState": { + "name": { "type": "string" - }, - "requestStateList": { - "type": "array", - "items": { - "type": "object", - "properties": { - "rejectReasons": { - "type": "string" - }, - "requestState": { - "type": "string" - }, - "created": { - "type": "string" - }, - "comments": { - "type": "string" - } - } - } - } - } - } - } - }, - "Entp": { - "type": "object", - "required": [ - "certificate", - "name", - "description" - ], - "properties": { - "certificate": { - "type": "file" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - } - } - } - }, - "services": { - "SubscribeToServices": { - "type": "array", - "items": { - "type": "object", - "properties": { - "sdkCode": { - "type": "string" - }, - "licenseConfigs": { - "type": "array", - "items": { - "type": "object", - "properties": { - "productId": { - "type": "string" - }, - "id": { - "type": "string" - }, - "op": { - "type": "string" - } - } - } - }, - "roles": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "integer" - }, - "code": { - "type": "string" - }, - "name": { - "type": "string" - } - } } } } diff --git a/spec/patch/get_application_extensions_by_id.json b/spec/patch/get_application_extensions_by_id.json new file mode 100644 index 0000000..24ce825 --- /dev/null +++ b/spec/patch/get_application_extensions_by_id.json @@ -0,0 +1,334 @@ +{ + "/console/organizations/{orgId}/xr-api/v1/app": { + "get": { + "summary": "get Application Extensions by Id", + "tags": [ + "Extensions" + ], + "parameters": [ + { + "name": "orgId", + "description": "AMS Organization ID", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "appId", + "description": "Application id", + "in": "query", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Authorization", + "description": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "appId": { + "type": "string", + "description": "application id" + }, + "name": { + "type": "string", + "description": "application name" + }, + "title": { + "type": "string" + }, + "publisherId": { + "type": "string" + }, + "status": { + "type": "string", + "description": "application status" + }, + "isPrivate": { + "type": "boolean" + }, + "description": { + "type": "string", + "description": "application description" + }, + "version": { + "type": "string" + }, + "workspaces": { + "type": "array", + "description": "list of workspaces in the application", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "workspace id" + }, + "name": { + "type": "string", + "description": "workspace name" + }, + "endPoint": { + "type": "string" + }, + "deepLink": { + "type": "string" + }, + "shellProps": { + "type": "string" + }, + "releaseNotes": { + "type": "string" + }, + "approveList": { + "type": "object", + "description": "list of approveList users & orgs", + "properties": { + "users": { + "type": "array", + "items": { + "type": "object", + "properties": { + "guid": { + "type": "string" + } + } + } + }, + "orgs": { + "type": "array", + "items": { + "type": "object", + "properties": { + "orgId": { + "type": "string" + }, + "orgName": { + "type": "string" + } + } + } + } + } + } + } + } + }, + "lifecycle": { + "type": "object", + "properties": { + "created": { + "type": "object", + "properties": { + "by": { + "type": "object", + "properties": { + "guid": { + "type": "string" + } + } + }, + "notes": { + "type": "string" + }, + "on": { + "type": "string" + } + } + }, + "lastModified": { + "type": "object", + "properties": { + "by": { + "type": "object", + "properties": { + "guid": { + "type": "string" + } + } + }, + "notes": { + "type": "string" + }, + "on": { + "type": "string" + } + } + }, + "submitted": { + "type": "object", + "properties": { + "by": { + "type": "object", + "properties": { + "guid": { + "type": "string" + } + } + }, + "notes": { + "type": "string" + }, + "on": { + "type": "string" + } + } + }, + "published": { + "type": "object", + "properties": { + "by": { + "type": "object", + "properties": { + "guid": { + "type": "string" + } + } + }, + "notes": { + "type": "string" + }, + "on": { + "type": "string" + } + } + }, + "reviewed": { + "type": "object", + "properties": { + "by": { + "type": "object", + "properties": { + "guid": { + "type": "string" + } + } + }, + "notes": { + "type": "string" + }, + "on": { + "type": "string" + } + } + }, + "unpublished": { + "type": "object", + "properties": { + "by": { + "type": "object", + "properties": { + "guid": { + "type": "string" + } + } + }, + "notes": { + "type": "string" + }, + "on": { + "type": "string" + } + } + } + } + }, + "support": { + "type": "object", + "description": "support information for the application", + "properties": { + "email": { + "type": "string" + }, + "contact": { + "type": "string" + }, + "website": { + "type": "string" + } + } + }, + "icon": { + "type": "string", + "description": "URL for the icon" + }, + "media": { + "type": "string" + } + } + } + } + } + } + }, + "400": { + "description": "Bad Request" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + }, + "500": { + "description": "Internal Server Error" + } + }, + "x-codeSamples": [ + { + "lang": "shell", + "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json'" + }, + { + "lang": "node", + "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D',\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'}\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" + }, + { + "lang": "php", + "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" + }, + { + "lang": "java", + "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .asString();" + }, + { + "lang": "go", + "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" + }, + { + "lang": "python", + "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/apps/%7BappId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" + }, + { + "lang": "csharp", + "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" + }, + { + "lang": "ruby", + "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" + } + ] + } + } +} \ No newline at end of file diff --git a/spec/patch/mapping.json b/spec/patch/mapping.json new file mode 100644 index 0000000..c236fcf --- /dev/null +++ b/spec/patch/mapping.json @@ -0,0 +1,3 @@ +{ + "./get_application_extensions_by_id.json": "paths" +} diff --git a/spec/patch/run.js b/spec/patch/run.js new file mode 100644 index 0000000..3de4891 --- /dev/null +++ b/spec/patch/run.js @@ -0,0 +1,18 @@ +const mapping = require('./mapping.json') +const apiJson = require('../api.json') +const fs = require('node:fs/promises') + +/** @private */ +async function main () { + for (const [key, value] of Object.entries(mapping)) { + const keyData = require(key) + const destinationKey = value + + apiJson[destinationKey] = { ...apiJson[destinationKey], ...keyData } + } + + return fs.writeFile('../api.json', JSON.stringify(apiJson, null, 2)) +} + +main() + .catch(console.error) diff --git a/src/SDKErrors.js b/src/SDKErrors.js index 4feace6..bb76ecc 100644 --- a/src/SDKErrors.js +++ b/src/SDKErrors.js @@ -61,6 +61,7 @@ E('ERROR_EDIT_WORKSPACE', '%s') E('ERROR_GET_WORKSPACE_BY_ID', '%s') E('ERROR_DELETE_WORKSPACE', '%s') E('ERROR_GET_CREDENTIALS', '%s') +E('ERROR_CREATE_OAUTH_SERVER_TO_SERVER_CREDENTIAL', '%s') E('ERROR_CREATE_ENTERPRISE_CREDENTIAL', '%s') E('ERROR_CREATE_ANALYTICS_CREDENTIAL', '%s') E('ERROR_CREATE_ADOBEID_CREDENTIAL', '%s') @@ -77,6 +78,7 @@ E('ERROR_GET_INTEGRATIONS_BY_ORG', '%s') E('ERROR_CREATE_ENTERPRISE_INTEGRATION', '%s') E('ERROR_CREATE_ADOBEID_INTEGRATION', '%s') E('ERROR_UPDATE_ADOBEID_INTEGRATION', '%s') +E('ERROR_SUBSCRIBE_OAUTH_SERVER_TO_SERVER_INTEGRATION_TO_SERVICES', '%s') E('ERROR_SUBSCRIBE_ADOBEID_INTEGRATION_TO_SERVICES', '%s') E('ERROR_SUBSCRIBE_ENTERPRISE_INTEGRATION_TO_SERVICES', '%s') E('ERROR_UPLOAD_AND_BIND_CERTIFICATE', '%s') diff --git a/src/index.js b/src/index.js index 0924001..8a9b4dd 100644 --- a/src/index.js +++ b/src/index.js @@ -206,7 +206,7 @@ class CoreConsoleAPI { // init swagger client const spec = require('../spec/api.json') const swagger = new Swagger({ - spec: spec, + spec, requestInterceptor: requestInterceptorBuilder(this, apiHost), responseInterceptor, usePromise: true @@ -281,7 +281,7 @@ class CoreConsoleAPI { * @returns {Promise} the response */ async getWorkspacesForProject (organizationId, projectId) { - const parameters = { orgId: organizationId, projectId: projectId } + const parameters = { orgId: organizationId, projectId } const sdkDetails = { parameters } try { @@ -504,6 +504,32 @@ class CoreConsoleAPI { } } + /** + * Create a new OAuth Server-to-Server Credential for a Workspace + * + * @param {string} organizationId Organization AMS ID + * @param {string} projectId Project ID + * @param {string} workspaceId Workspace ID + * @param {string} name Credential name + * @param {string} description Credential description + * @returns {Promise} the response + */ + async createOAuthServerToServerCredential (organizationId, projectId, workspaceId, name, description) { + const parameters = { orgId: organizationId, projectId, workspaceId } + const requestBody = { name, description } + const sdkDetails = { parameters } + + try { + const res = await this.sdk.apis.workspaces + .post_console_organizations__orgId__projects__projectId__workspaces__workspaceId__credentials_oauth_server_to_server( + ...this.__createRequestOptions(parameters, requestBody) + ) + return res + } catch (err) { + throw new codes.ERROR_CREATE_OAUTH_SERVER_TO_SERVER_CREDENTIAL({ sdkDetails, messageValues: reduceError(err) }) + } + } + /** * Create a new Enterprise Credential for a Workspace * @@ -598,7 +624,7 @@ class CoreConsoleAPI { projectId, workspaceId, credentialId, - credentialType: credentialType + credentialType } const requestBody = serviceInfo const sdkDetails = { parameters, requestBody } @@ -661,15 +687,29 @@ class CoreConsoleAPI { /** * Delete a Workspace Credential * + * @deprecated Use deleteCredentialById * @param {string} organizationId Organization AMS ID * @param {string} projectId Project ID * @param {string} workspaceId Workspace ID - * @param {string} credentialType Credential type (adobeid, analytics or entp) + * @param {string} credentialType Credential type (adobeid, analytics or entp). Unused. * @param {string} credentialId Credential ID * @returns {Promise} the response */ async deleteCredential (organizationId, projectId, workspaceId, credentialType, credentialId) { - const parameters = { orgId: organizationId, projectId, workspaceId, credentialType, credentialId } + return this.deleteCredentialById(organizationId, projectId, workspaceId, credentialId) + } + + /** + * Delete a Workspace Credential by credential id. + * + * @param {string} organizationId Organization AMS ID + * @param {string} projectId Project ID + * @param {string} workspaceId Workspace ID + * @param {string} credentialId Credential ID + * @returns {Promise} the response + */ + async deleteCredentialById (organizationId, projectId, workspaceId, credentialId) { + const parameters = { orgId: organizationId, projectId, workspaceId, credentialId } const sdkDetails = { parameters } try { @@ -968,6 +1008,30 @@ class CoreConsoleAPI { } } + /** + * Subscribe Organization OAuth Server-to-Server Integration to Services + * + * @param {string} organizationId Organization AMS ID + * @param {string} credentialId Credential ID + * @param {object} serviceInfo Information about the services like SDK Codes, licenseConfig and roles + * @returns {Promise} the response + */ + async subscribeOAuthServerToServerIntegrationToServices (organizationId, credentialId, serviceInfo) { + const parameters = { orgId: organizationId, credentialId } + const requestBody = serviceInfo + const sdkDetails = { parameters, requestBody } + + try { + const res = await this.sdk.apis['OAuth server to server'] + .put_console_organizations__orgId__credentials_oauth_server_to_server__credentialId__services( + ...this.__createRequestOptions(parameters, requestBody) + ) + return res + } catch (err) { + throw new codes.ERROR_SUBSCRIBE_OAUTH_SERVER_TO_SERVER_INTEGRATION_TO_SERVICES({ sdkDetails, messageValues: reduceError(err) }) + } + } + /** * List certification bindings for an Integration * @@ -1223,11 +1287,11 @@ class CoreConsoleAPI { * @returns {Promise} the response */ async getEndPointsInWorkspace (organizationId, projectId, workspaceId) { - const parameters = { orgId: organizationId, projectId: projectId, workspaceId: workspaceId } + const parameters = { orgId: organizationId, projectId, workspaceId } const sdkDetails = { parameters } try { - const res = await this.sdk.apis.Extensions + const res = await this.sdk.apis.workspaces .get_console_organizations__orgId__projects__projectId__workspaces__workspaceId__endpoints( ...this.__createRequestOptions(parameters) ) @@ -1247,11 +1311,11 @@ class CoreConsoleAPI { * @returns {Promise} the response */ async updateEndPointsInWorkspace (organizationId, projectId, workspaceId, endpointDetails) { - const parameters = { orgId: organizationId, projectId: projectId, workspaceId: workspaceId } + const parameters = { orgId: organizationId, projectId, workspaceId } const requestBody = endpointDetails const sdkDetails = { parameters, requestBody } try { - const res = await this.sdk.apis.Extensions + const res = await this.sdk.apis.workspaces .put_console_organizations__orgId__projects__projectId__workspaces__workspaceId__endpoints( ...this.__createRequestOptions(parameters, requestBody) ) @@ -1296,5 +1360,5 @@ class CoreConsoleAPI { } module.exports = { - init: init + init } diff --git a/test/index.test.js b/test/index.test.js index be534d5..924c7e8 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -488,13 +488,12 @@ test('getProjectForWorkspace', async () => { }) }) -test('deleteCredential', async () => { +test('deleteCredential (deprecated)', async () => { const sdkArgs = ['organizationId', 'projectId', 'workspaceId', 'credentialType', 'credentialId'] - const apiParameters = { + const apiParameters = { // this will call deleteCredentialById orgId: 'organizationId', projectId: 'projectId', workspaceId: 'workspaceId', - credentialType: 'credentialType', credentialId: 'credentialId' } const apiOptions = createSwaggerOptions() @@ -509,6 +508,26 @@ test('deleteCredential', async () => { }) }) +test('deleteCredentialById', async () => { + const sdkArgs = ['organizationId', 'projectId', 'workspaceId', 'credentialId'] + const apiParameters = { + orgId: 'organizationId', + projectId: 'projectId', + workspaceId: 'workspaceId', + credentialId: 'credentialId' + } + const apiOptions = createSwaggerOptions() + + await standardTest({ + fullyQualifiedApiName: 'workspaces.delete_console_organizations__orgId__projects__projectId__workspaces__workspaceId__credentials__credentialId_', + sdkFunctionName: 'deleteCredentialById', + apiParameters, + apiOptions, + sdkArgs, + ErrorClass: codes.ERROR_DELETE_CREDENTIAL + }) +}) + test('getOrganizations', async () => { const sdkArgs = [] const apiParameters = {} @@ -943,7 +962,7 @@ test('getEndPointsInWorkspace', async () => { const apiOptions = createSwaggerOptions() await standardTest({ - fullyQualifiedApiName: 'Extensions.get_console_organizations__orgId__projects__projectId__workspaces__workspaceId__endpoints', + fullyQualifiedApiName: 'workspaces.get_console_organizations__orgId__projects__projectId__workspaces__workspaceId__endpoints', sdkFunctionName: 'getEndPointsInWorkspace', apiParameters, apiOptions, @@ -962,7 +981,7 @@ test('updateEndPointsInWorkspace', async () => { const apiOptions = createSwaggerOptions({ some: 'body' }) await standardTest({ - fullyQualifiedApiName: 'Extensions.put_console_organizations__orgId__projects__projectId__workspaces__workspaceId__endpoints', + fullyQualifiedApiName: 'workspaces.put_console_organizations__orgId__projects__projectId__workspaces__workspaceId__endpoints', sdkFunctionName: 'updateEndPointsInWorkspace', apiParameters, apiOptions, @@ -1019,3 +1038,40 @@ test('checkOrgDevTerms', async () => { ErrorClass: codes.ERROR_GET_DEV_TERMS_ACCEPTANCE }) }) + +test('createOAuthServerToServerCredential', async () => { + const sdkArgs = ['organizationId', 'projectId', 'workspaceId', 'name', 'description'] + const apiParameters = { + orgId: 'organizationId', + projectId: 'projectId', + workspaceId: 'workspaceId' + } + const apiOptions = createSwaggerOptions({ description: 'description', name: 'name' }) + + await standardTest({ + fullyQualifiedApiName: 'workspaces.post_console_organizations__orgId__projects__projectId__workspaces__workspaceId__credentials_oauth_server_to_server', + sdkFunctionName: 'createOAuthServerToServerCredential', + apiParameters, + apiOptions, + sdkArgs, + ErrorClass: codes.ERROR_CREATE_OAUTH_SERVER_TO_SERVER_CREDENTIAL + }) +}) + +test('subscribeOAuthServerToServerIntegrationToServices', async () => { + const sdkArgs = ['organizationId', 'credentialId', { some: 'body' }] + const apiParameters = { + orgId: 'organizationId', + credentialId: 'credentialId' + } + const apiOptions = createSwaggerOptions({ some: 'body' }) + + await standardTest({ + fullyQualifiedApiName: 'OAuth server to server.put_console_organizations__orgId__credentials_oauth_server_to_server__credentialId__services', + sdkFunctionName: 'subscribeOAuthServerToServerIntegrationToServices', + apiParameters, + apiOptions, + sdkArgs, + ErrorClass: codes.ERROR_SUBSCRIBE_OAUTH_SERVER_TO_SERVER_INTEGRATION_TO_SERVICES + }) +})