UNPKG

@itentialopensource/adapter-artifactory

Version:

This adapter integrates with system described as: artifactory.

593 lines 18.8 kB
{ "apibuilder": "0.1.0", "swagger": "2.0", "info": { "title": "Artifactory", "description": "Artifactory Swagger from CURL", "version": "", "termsOfService": "http://swagger.io/terms/", "contact": { "email": "apiteam@swagger.io" }, "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.html" } }, "host": "localhost", "basePath": "/artifactory", "schemes": [ "https", "http" ], "tags": [ { "name": "Artifacts", "externalDocs": null }, { "name": "Builds", "externalDocs": null }, { "name": "Storage", "externalDocs": null }, { "name": "default", "description": null, "externalDocs": null } ], "paths": { "/artifactory/{repository}/{path}": { "put": { "parameters": [ { "name": "body", "in": "body", "schema": { "type": "object" }, "value": "{file: <contents>}", "required": true }, { "in": "path", "name": "repository", "type": "string", "required": true }, { "in": "path", "name": "path", "type": "string", "required": true } ], "operationId": "deployArtifact", "tags": [ "Artifacts" ], "responses": { "200": { "description": "successful operation", "schema": { "type": "string" } }, "400": {} } }, "get": { "parameters": [ { "in": "path", "name": "repository", "type": "string", "required": true }, { "in": "path", "name": "path", "type": "string", "required": true } ], "operationId": "retrieveArtifact", "tags": [ "Artifacts" ], "responses": { "200": { "description": "successful operation", "schema": { "type": "string" } }, "400": {} } } }, "/artifactory/api/archive/download/{repository}/{path}": { "get": { "parameters": [ { "in": "query", "name": "archiveType", "type": "string" }, { "in": "query", "name": "includeChecksumFiles", "type": "boolean" }, { "in": "path", "name": "repository", "type": "string", "required": true }, { "in": "path", "name": "path", "type": "string", "required": true } ], "tags": [ "Artifacts" ], "operationId": "retrieveArtifactArchive", "responses": { "200": { "description": "successful operation", "schema": { "type": "string" } }, "400": {} } } }, "/artifactory/api/build": { "get": { "parameters": [], "operationId": "getAllBuilds", "tags": [ "Builds" ], "responses": { "200": { "description": "successful operation", "schema": { "type": "string" } }, "400": {} } }, "put": { "parameters": [ { "name": "body", "in": "body", "schema": { "type": "string" }, "value": "{file: <contents>}", "required": true } ], "tags": [ "Builds" ], "operationId": "uploadBuild", "responses": { "200": { "description": "successful operation", "schema": { "type": "string" } }, "400": {} } } }, "/artifactory/api/build/{buildName}/{buildNumber}": { "get": { "parameters": [ { "in": "path", "name": "buildName", "type": "string", "required": true }, { "in": "path", "name": "buildNumber", "type": "string", "required": true } ], "operationId": "getBuildInfo", "tags": [ "Builds" ], "responses": { "200": { "description": "successful operation", "schema": { "type": "string" } }, "400": {} } } }, "/artifactory/api/build/promote/{buildName}/{buildNumber}": { "post": { "parameters": [ { "in": "path", "name": "buildName", "type": "string", "required": true }, { "in": "path", "name": "buildNumber", "type": "string", "required": true } ], "tags": [ "Builds" ], "operationId": "promoteBuild", "responses": { "200": { "description": "successful operation", "schema": { "type": "string" } }, "400": {} } } }, "/artifactory/api/build/{buildName}": { "delete": { "parameters": [ { "in": "query", "name": "buildNumbers", "type": "number" }, { "in": "query", "name": "artifacts", "type": "number" }, { "in": "query", "name": "deleteAll", "type": "number" }, { "in": "path", "name": "buildName", "type": "string", "required": true } ], "operationId": "deleteBuild", "tags": [ "Builds" ], "responses": { "200": { "description": "successful operation", "schema": { "type": "string" } }, "400": {} } }, "get": { "parameters": [ { "in": "path", "name": "buildName", "type": "string", "required": true } ], "tags": [ "Builds" ], "operationId": "getBuildByName", "responses": { "200": { "description": "successful operation", "schema": { "type": "string" } }, "400": {} } } }, "/artifactory/api/build/rename/{buildName}": { "post": { "parameters": [ { "in": "query", "name": "to", "type": "string" }, { "in": "path", "name": "buildName", "type": "string", "required": true } ], "tags": [ "Builds" ], "operationId": "renameBuild", "responses": { "200": { "description": "successful operation", "schema": { "type": "string" } }, "400": {} } } }, "/artifactory/api/build/distribute/{buildName}/{buildNumber}": { "post": { "parameters": [ { "in": "body", "name": "buildName", "value": "Choose at least one of (list is not necessarily exhaustive): \n, ", "schema": { "type": "string" }, "required": true }, { "in": "body", "name": "buildNumber", "value": "Choose at least one of (list is not necessarily exhaustive): \n, ", "schema": { "type": "string" }, "required": true } ], "operationId": "distributeBuild", "tags": [ "Builds" ], "responses": { "200": { "description": "successful operation", "schema": { "type": "string" } }, "400": {} } } }, "/artifactory/api/storageinfo": { "get": { "parameters": [], "operationId": "getStorageSummary", "tags": [ "Storage" ], "responses": { "200": { "description": "successful operation", "schema": { "type": "string" } }, "400": {} } } }, "/artifactory/api/storage/{repoKey}/{filePath}": { "get": { "parameters": [ { "in": "path", "name": "repoKey", "type": "string", "required": true }, { "in": "path", "name": "filePath", "type": "string", "required": true } ], "operationId": "getStorageFileInfo", "tags": [ "Storage" ], "responses": { "200": { "description": "successful operation", "schema": { "type": "string" } }, "400": {} } }, "put": { "parameters": [ { "in": "query", "name": "properties", "type": "string" }, { "in": "query", "name": "recursive", "type": "number" }, { "in": "path", "name": "repoKey", "type": "string", "required": true }, { "in": "path", "name": "filePath", "type": "string", "required": true } ], "tags": [ "Storage" ], "operationId": "setStorageItemProperties", "responses": { "200": { "description": "successful operation", "schema": { "type": "string" } }, "400": {} } }, "delete": { "parameters": [ { "in": "query", "name": "properties", "type": "string" }, { "in": "query", "name": "recursive", "type": "number" }, { "in": "path", "name": "repoKey", "type": "string", "required": true }, { "in": "path", "name": "filePath", "type": "string", "required": true } ], "operationId": "deleteStorageItemProperties", "tags": [ "Storage" ], "responses": { "200": { "description": "successful operation", "schema": { "type": "string" } }, "400": {} } } }, "/artifactory/api/move/{srcRepoKey}/{srcFilePath}": { "post": { "parameters": [ { "in": "query", "name": "to", "type": "string" }, { "in": "query", "name": "dry", "type": "number" }, { "in": "query", "name": "suppressLayouts", "type": "number" }, { "in": "query", "name": "failFast", "type": "number" }, { "in": "path", "name": "srcRepoKey", "type": "string", "required": true }, { "in": "path", "name": "srcFilePath", "type": "string", "required": true } ], "operationId": "moveFile", "tags": [ "Storage" ], "responses": { "200": { "description": "successful operation", "schema": { "type": "string" } }, "400": {} } } }, "/artifactory/api/checksum/sha256": { "post": { "parameters": [], "operationId": "setStorageChecksum", "tags": [ "Storage" ], "responses": { "200": { "description": "successful operation", "schema": { "type": "string" } }, "400": {} } } } }, "definitions": {}, "externalDocs": { "description": "Find out more about Swagger", "url": "http://swagger.io" }, "consumes": [], "produces": [] }