diff --git a/.circleci/config.yml b/.circleci/config.yml index 81a0e628..4beee935 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -15,7 +15,7 @@ jobs: - run: name: Run Maven Build - command: cd mms-ent && sh mvnw install -Pbuild && sh mvnw install -f repo-amp/target/generated-sources/swagger/java/pom.xml + command: cd mms-ent && sh mvnw install -Pbuild -Dmaven.test.skip=true && sh mvnw install -Dmaven.test.skip=true -f repo-amp/target/generated-sources/swagger/java/pom.xml - save_cache: paths: @@ -58,25 +58,22 @@ jobs: command: ./jfrog rt config --url $ARTIFACTORY_URL --user $ARTIFACTORY_USER --apikey $ARTIFACTORY_APIKEY --interactive false - run: name: Send mms-amp - command: ./jfrog rt u 'mms-ent/repo-amp/target/*.amp' libs-release-local/gov/nasa/jpl/mms/mms-amp/3.4.1/ --build-name=mms-circleci --build-number=$CIRCLE_BUILD_NUM --flat=true + command: ./jfrog rt u 'mms-ent/repo-amp/target/*.amp' libs-release-local/gov/nasa/jpl/mms/mms-amp/3.4.2/ --build-name=mms-circleci --build-number=$CIRCLE_BUILD_NUM --flat=true - run: name: Send mms-share-amp - command: ./jfrog rt u 'mms-ent/share-amp/target/*.amp' libs-release-local/gov/nasa/jpl/mms/mms-share-amp/3.4.1/ --build-name=mms-circleci --build-number=$CIRCLE_BUILD_NUM --flat=true + command: ./jfrog rt u 'mms-ent/share-amp/target/*.amp' libs-release-local/gov/nasa/jpl/mms/mms-share-amp/3.4.2/ --build-name=mms-circleci --build-number=$CIRCLE_BUILD_NUM --flat=true - run: name: Send mms java client - command: ./jfrog rt u 'mms-ent/repo-amp/target/mms-java-client/mms-java-*.jar' libs-release-local/gov/nasa/jpl/mms/mms-java-client/3.4.1/ --build-name=mms-circleci --build-number=$CIRCLE_BUILD_NUM --flat=true - - run: - name: Send mms java client - command: ./jfrog rt u 'mms-ent/repo-amp/target/mms-java-client/pom.xml' libs-release-local/gov/nasa/jpl/mms/mms-java-client/3.4.1/ --build-name=mms-circleci --build-number=$CIRCLE_BUILD_NUM --flat=true + command: ./jfrog rt u 'mms-ent/repo-amp/target/mms-java-client/mms-java-*.jar' libs-release-local/org/openmbee/mms/mms-java-client/3.4.2/ --build-name=mms-circleci --build-number=$CIRCLE_BUILD_NUM --flat=true - run: name: Send mms python client - command: ./jfrog rt u 'mms-ent/repo-amp/target/mms_python_*.zip' libs-release-local/gov/nasa/jpl/mms/mms-python-client/3.4.1/ --build-name=mms-circleci --build-number=$CIRCLE_BUILD_NUM --flat=true + command: ./jfrog rt u 'mms-ent/repo-amp/target/mms_python_*.zip' libs-release-local/gov/nasa/jpl/mms/mms-python-client/3.4.2/ --build-name=mms-circleci --build-number=$CIRCLE_BUILD_NUM --flat=true - run: name: Send mms mathematica client - command: ./jfrog rt u 'mms-ent/repo-amp/target/mms-mathematica-*.zip' libs-release-local/gov/nasa/jpl/mms/mms-mathematica-client/3.4.1/ --build-name=mms-circleci --build-number=$CIRCLE_BUILD_NUM --flat=true + command: ./jfrog rt u 'mms-ent/repo-amp/target/mms-mathematica-*.zip' libs-release-local/gov/nasa/jpl/mms/mms-mathematica-client/3.4.2/ --build-name=mms-circleci --build-number=$CIRCLE_BUILD_NUM --flat=true - run: name: Send mms matlab client - command: ./jfrog rt u 'mms-ent/repo-amp/target/mms-matlab-*.zip' libs-release-local/gov/nasa/jpl/mms/mms-matlab-client/3.4.1/ --build-name=mms-circleci --build-number=$CIRCLE_BUILD_NUM --flat=true + command: ./jfrog rt u 'mms-ent/repo-amp/target/mms-matlab-*.zip' libs-release-local/gov/nasa/jpl/mms/mms-matlab-client/3.4.2/ --build-name=mms-circleci --build-number=$CIRCLE_BUILD_NUM --flat=true workflows: version: 2 diff --git a/.circleci/config.yml.template b/.circleci/config.yml.template index 3a8f1b55..7a6a4efd 100644 --- a/.circleci/config.yml.template +++ b/.circleci/config.yml.template @@ -15,7 +15,7 @@ jobs: - run: name: Run Maven Build - command: cd mms-ent && sh mvnw install -Pbuild && sh mvnw install -f repo-amp/target/generated-sources/swagger/java/pom.xml + command: cd mms-ent && sh mvnw install -Pbuild -Dmaven.test.skip=true && sh mvnw install -Dmaven.test.skip=true -f repo-amp/target/generated-sources/swagger/java/pom.xml - save_cache: paths: @@ -64,10 +64,7 @@ jobs: command: ./jfrog rt u 'mms-ent/share-amp/target/*.amp' libs-snapshot-local/gov/nasa/jpl/mms/mms-share-amp/${version}/ --build-name=mms-circleci --build-number=$CIRCLE_BUILD_NUM --flat=true - run: name: Send mms java client - command: ./jfrog rt u 'mms-ent/repo-amp/target/mms-java-client/mms-java-*.jar' libs-snapshot-local/gov/nasa/jpl/mms/mms-java-client/${version}/ --build-name=mms-circleci --build-number=$CIRCLE_BUILD_NUM --flat=true - - run: - name: Send mms java client - command: ./jfrog rt u 'mms-ent/repo-amp/target/mms-java-client/pom.xml' libs-snapshot-local/gov/nasa/jpl/mms/mms-java-client/${version}/ --build-name=mms-circleci --build-number=$CIRCLE_BUILD_NUM --flat=true + command: ./jfrog rt u 'mms-ent/repo-amp/target/mms-java-client/mms-java-*.jar' libs-snapshot-local/org/openmbee/mms/mms-java-client/${version}/ --build-name=mms-circleci --build-number=$CIRCLE_BUILD_NUM --flat=true - run: name: Send mms python client command: ./jfrog rt u 'mms-ent/repo-amp/target/mms_python_*.zip' libs-snapshot-local/gov/nasa/jpl/mms/mms-python-client/${version}/ --build-name=mms-circleci --build-number=$CIRCLE_BUILD_NUM --flat=true diff --git a/README.md b/README.md index 49275e3c..3e765822 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,21 @@ # Model Management System +[![Language Grade: Java](https://img.shields.io/lgtm/grade/java/g/Open-MBEE/mms.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/Open-MBEE/mms/context:java) [![CircleCI](https://circleci.com/gh/Open-MBEE/mms.svg?style=svg)](https://circleci.com/gh/Open-MBEE/mms) - - +The MMS AMP is a hosted application run atop the [community version of an Alfresco Enterprise Content Management Server](https://docs.alfresco.com/community/concepts/welcome-infocenter_community.html). - +**NOTE 1: AMPs for Alfresco as built from this maven project are meant to be run by [Alfresco Community Edition v5.1.g (AKA 201605-GA)](https://download.alfresco.com/release/community/201605-build-00010/alfresco-community-distribution-201605.zip)** +Per [ Alfresco's documentation on Modules](https://docs.alfresco.com/5.0/concepts/dev-extensions-modules-intro.html), Alfresco Module Packages (AMPs) are installed using the Module Management Tool [MMT](https://docs.alfresco.com/5.0/concepts/dev-extensions-modules-management-tool.html) jar file. The latest version of the two AMPs you will be "exploding" into the "alfresco" and "share" WARs resident within the embedded Tomcat server are available via the download links leading to the two interdependent portions named "mms-repo.amp" and "mms-share.amp", relating to "alfresco.war" and "share.war", respectively. + +[ ![Download](https://api.bintray.com/packages/openmbee/maven/mms-amp/images/download.svg) ](https://bintray.com/openmbee/maven/mms-amp/_latestVersion) of the alfresco WAR related portion of the "MMS" Alfresco module. + +[ ![Download](https://api.bintray.com/packages/openmbee/maven/mms-share-amp/images/download.svg)](https://bintray.com/openmbee/maven/mms-share-amp/_latestVersion) of the share WAR related portion of the "MMS" Alfresco Module. + +In tandem with the EMS-Webapp (colloquially known as the View Editor), and the Magicdraw Development Kit (MDK) for MagicDraw client and Teamwork Cloud users; this github repo serves as a one-stop shop to set up the Model Management Server per the +[MMS-MDK-VE Compatibility Matrix](https://github.com/Open-MBEE/open-mbee.github.io/blob/master/compat%20matrix.pdf). - [ ![Download](https://api.bintray.com/packages/openmbee/maven/mms-amp/images/download.svg) ](https://bintray.com/openmbee/maven/mms-amp/_latestVersion) [![Language Grade: Java](https://img.shields.io/lgtm/grade/java/g/Open-MBEE/mms.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/Open-MBEE/mms/context:java) [![CircleCI](https://circleci.com/gh/Open-MBEE/mms.svg?style=svg)](https://circleci.com/gh/Open-MBEE/mms) -**AMP for Alfresco (5.1.g AKA 201605-GA)** -Use this table to check what version of the mms - mdk - ve triple you should be using: [Compatibility Matrix](https://github.com/Open-MBEE/open-mbee.github.io/blob/master/compat%20matrix.pdf) ## Developer Setup ### Dependencies @@ -280,12 +285,12 @@ API Documentation is located at the following endpoints: Swagger CodeGen: ``` -alfresco/mms +alfresco/mms/index.html ``` Swagger UI: ``` -alfresco/mms/swagger-ui +alfresco/mms/swagger-ui/index.html ``` Swagger YAML file: diff --git a/mms-ent/.gitignore b/mms-ent/.gitignore index 65baff0f..13c22acd 100644 --- a/mms-ent/.gitignore +++ b/mms-ent/.gitignore @@ -14,6 +14,7 @@ mms.properties /solr-config/target/* /repo/overlays/* /share/overlays/* +/repo-amp/conda/output* /runner/src/test/robotframework/libraries/* *.log *.log.* diff --git a/mms-ent/pom.xml b/mms-ent/pom.xml index 6af357d1..842a4a1e 100755 --- a/mms-ent/pom.xml +++ b/mms-ent/pom.xml @@ -4,7 +4,7 @@ 4.0.0 gov.nasa.jpl.mbee mms-ent - 3.4.1 + 3.4.2 Alfresco Repository and Share Quickstart with database and an embedded Tomcat runner. This All-in-One project allows to manage all the components involved in Alfresco development (Repo, Share, Solr4, AMPs) in one project diff --git a/mms-ent/repo-amp/conda/mms-python-client/meta.yaml b/mms-ent/repo-amp/conda/mms-python-client/meta.yaml new file mode 100644 index 00000000..ed27a202 --- /dev/null +++ b/mms-ent/repo-amp/conda/mms-python-client/meta.yaml @@ -0,0 +1,48 @@ +{% set name = "mms-python-client" %} +{% set version = "3.4.1" %} +{% set file_ext = "tar.gz" %} +{% set hash_type = "sha256" %} +{% set hash_value = "c6c705df393aef09b583b11f2e36d21e9ed60e31a4ac05a3d0f6af09935df051" %} + +package: + name: '{{ name|lower }}' + version: '{{ version }}' + +source: + fn: '{{ name }}-{{ version }}.{{ file_ext }}' + url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.{{ file_ext }} + '{{ hash_type }}': '{{ hash_value }}' + +build: + number: 0 + noarch: python + script: python setup.py install --single-version-externally-managed --record=record.txt + +requirements: + host: + - python + - setuptools + - urllib3 >=1.15 + - six >=1.10 + - certifi + - python-dateutil + run: + - python + - urllib3 >=1.15 + - six >=1.10 + - certifi + - python-dateutil + +about: + home: The package home page + license: UNKNOWN + license_family: OTHER + license_file: '' + summary: Model Management Service + description: 'Model Management System (MMS) is a version control system for structured data. It exposes model information through RESTful web services that can be used for CRUD operations, branching, + and tagging of the model repository. # noqa: E501' + doc_url: '' + dev_url: '' + +extra: + recipe-maintainers: '' diff --git a/mms-ent/repo-amp/pom.xml b/mms-ent/repo-amp/pom.xml index 8381f81b..1fb77f9a 100755 --- a/mms-ent/repo-amp/pom.xml +++ b/mms-ent/repo-amp/pom.xml @@ -10,7 +10,7 @@ gov.nasa.jpl.mbee mms-ent - 3.4.1 + 3.4.2 @@ -126,7 +126,7 @@ org.apache.tika tika-core - 1.18 + 1.19.1 diff --git a/mms-ent/repo-amp/src/main/amp/web/mms/mms.swagger.yaml b/mms-ent/repo-amp/src/main/amp/web/mms/mms.swagger.yaml index 7f8c27a4..97ee0f91 100644 --- a/mms-ent/repo-amp/src/main/amp/web/mms/mms.swagger.yaml +++ b/mms-ent/repo-amp/src/main/amp/web/mms/mms.swagger.yaml @@ -1,12 +1,12 @@ swagger: "2.0" basePath: "/alfresco/service" info: - description: "Model Management System (MMS) is a version control system for structured data. It exposes model information through RESTful web services that can be used for CRUD operations, branching, and tagging of the model repository." - version: "3.3.0" - title: "Model Management Service" - license: - name: "Apache 2.0" - url: "http://www.apache.org/licenses/LICENSE-2.0.html" + description: "Model Management System (MMS) is a version control system for structured data. It exposes model information through RESTful web services that can be used for CRUD operations, branching, and tagging of the model repository." + version: "3.3.0" + title: "Model Management Service" + license: + name: "Apache 2.0" + url: "http://www.apache.org/licenses/LICENSE-2.0.html" tags: - name: "ticket" - name: "org" @@ -19,1502 +19,1485 @@ security: - Basic: [] - Ticket: [] paths: - /api/login: - post: - tags: - - "ticket" - summary: "Create ticket" - description: "" - operationId: "postTicket" - parameters: - - in: "body" - name: "body" - description: "" - schema: - $ref: "#/definitions/LoginRequest" - required: true - responses: - 200: - description: "OK" - schema: - $ref: "#/definitions/LoginResponse" - 403: - $ref: "#/responses/Forbidden" - 404: - $ref: "#/responses/NotFound" - 500: - $ref: "#/responses/InternalServerError" - default: - $ref: "#/responses/Default" - security: [] - /mms/login/ticket/{ticket_id}: - parameters: - - name: "ticket_id" - in: "path" - required: true - description: "ticket identifier" - type: string - get: - tags: - - "ticket" - summary: "Get ticket" - description: "" - operationId: "getTicket" - responses: - 200: - description: "OK" - schema: - $ref: "#/definitions/TicketResponse" - 403: - $ref: "#/responses/Forbidden" - 404: - $ref: "#/responses/NotFound" - 500: - $ref: "#/responses/InternalServerError" - default: - $ref: "#/responses/Default" - /orgs: - get: - tags: - - "org" - summary: "Get all orgs" - description: "" - operationId: "getOrgs" - responses: - 200: - description: "OK" - schema: - $ref: "#/definitions/Orgs" - 401: - $ref: "#/responses/Unauthorized" - 403: - $ref: "#/responses/Forbidden" - 404: - $ref: "#/responses/NotFound" - 500: - $ref: "#/responses/InternalServerError" - default: - $ref: "#/responses/Default" - post: - tags: - - "org" - summary: "Create and/or update org(s)" - description: "" - operationId: "postOrgs" - parameters: - - in: "body" - name: "body" - description: "" - schema: - $ref: "#/definitions/Orgs" - required: true - responses: - 200: - description: "OK" - schema: - $ref: "#/definitions/Orgs" - 401: - $ref: "#/responses/Unauthorized" - 403: - $ref: "#/responses/Forbidden" - 404: - $ref: "#/responses/NotFound" - 500: - $ref: "#/responses/InternalServerError" - default: - $ref: "#/responses/Default" - /orgs/{org_id}: - parameters: - - name: "org_id" - in: "path" - required: true - description: "org identifier" - type: string - get: - tags: - - "org" - summary: "Get org" - description: "" - operationId: "getOrg" - responses: - 200: - description: "OK" - schema: - $ref: "#/definitions/Orgs" - 401: - $ref: "#/responses/Unauthorized" - 403: - $ref: "#/responses/Forbidden" - 404: - $ref: "#/responses/NotFound" - 500: - $ref: "#/responses/InternalServerError" - default: - $ref: "#/responses/Default" - delete: - tags: - - "org" - summary: "Delete org" - description: "" - operationId: "deleteOrg" - responses: - 200: - description: "OK" - schema: - $ref: "#/definitions/Orgs" - 401: - $ref: "#/responses/Unauthorized" - 403: - $ref: "#/responses/Forbidden" - 404: - $ref: "#/responses/NotFound" - 500: - $ref: "#/responses/InternalServerError" - default: - $ref: "#/responses/Default" - /orgs/{org_id}/projects: - parameters: - - name: "org_id" - in: "path" - required: true - description: "org identifier" - type: string - get: - tags: - - "project" - summary: "Get all projects in org" - description: "" - operationId: "getProjectsByOrg" - responses: - 200: - description: "OK" - schema: - $ref: "#/definitions/Projects" - 401: - $ref: "#/responses/Unauthorized" - 403: - $ref: "#/responses/Forbidden" - 404: - $ref: "#/responses/NotFound" - 500: - $ref: "#/responses/InternalServerError" - default: - $ref: "#/responses/Default" - post: - tags: - - "project" - summary: "Create and/or update project(s) in org" - description: "" - operationId: "postProjectsByOrg" - parameters: - - in: "body" - name: "body" - description: "" - schema: - $ref: "#/definitions/Projects" - required: true - responses: - 200: - description: "OK" - schema: - $ref: "#/definitions/Projects" - 401: - $ref: "#/responses/Unauthorized" - 403: - $ref: "#/responses/Forbidden" - 404: - $ref: "#/responses/NotFound" - 500: - $ref: "#/responses/InternalServerError" - default: - $ref: "#/responses/Default" - /projects: - get: - tags: - - "project" - summary: "Get all projects" - description: "" - operationId: "getProjects" - responses: - 200: - description: "OK" - schema: - $ref: "#/definitions/Projects" - 401: - $ref: "#/responses/Unauthorized" - 403: - $ref: "#/responses/Forbidden" - 404: - $ref: "#/responses/NotFound" - 500: - $ref: "#/responses/InternalServerError" - default: - $ref: "#/responses/Default" - post: - tags: - - "project" - summary: "Create and/or update project(s)" - description: "" - operationId: "postProjects" - parameters: - - in: "body" - name: "body" - description: "" - schema: - $ref: "#/definitions/Projects" - required: true - responses: - 200: - description: "OK" - schema: - $ref: "#/definitions/Projects" - 401: - $ref: "#/responses/Unauthorized" - 403: - $ref: "#/responses/Forbidden" - 404: - $ref: "#/responses/NotFound" - 500: - $ref: "#/responses/InternalServerError" - default: - $ref: "#/responses/Default" - /projects/{project_id}: - parameters: - - name: "project_id" - in: "path" - required: true - description: "project identifier" - type: "string" - get: - tags: - - "project" - summary: "Get project" - description: "" - operationId: "getProject" - responses: - 200: - description: "OK" - schema: - $ref: "#/definitions/Projects" - 401: - $ref: "#/responses/Unauthorized" - 403: - $ref: "#/responses/Forbidden" - 404: - $ref: "#/responses/NotFound" - 500: - $ref: "#/responses/InternalServerError" - default: - $ref: "#/responses/Default" - delete: - tags: - - "project" - summary: "Delete project" - description: "" - operationId: "deleteProject" - responses: - 200: - description: "OK" - schema: - $ref: "#/definitions/Projects" - 401: - $ref: "#/responses/Unauthorized" - 403: - $ref: "#/responses/Forbidden" - 404: - $ref: "#/responses/NotFound" - 500: - $ref: "#/responses/InternalServerError" - default: - $ref: "#/responses/Default" - /projects/{project_id}/commits/{commit_id}: - parameters: - - name: "project_id" - in: "path" - required: true - description: "project identifier" - type: "string" - - name: "commit_id" - in: "path" - required: true - description: "commit identifier" - type: "string" - get: - tags: - - "project" - summary: "Get project commit" - description: "" - operationId: "getProjectCommit" - responses: - 200: - description: "OK" - schema: - $ref: "#/definitions/Commits" - 401: - $ref: "#/responses/Unauthorized" - 403: - $ref: "#/responses/Forbidden" - 404: - $ref: "#/responses/NotFound" - 500: - $ref: "#/responses/InternalServerError" - default: - $ref: "#/responses/Default" - /projects/{project_id}/refs: - parameters: - - name: "project_id" - in: "path" - required: true - description: "project identifier" - type: "string" - get: - tags: - - "ref" - summary: "Get all refs in project" - description: "" - operationId: "getRefs" - responses: - 200: - description: "OK" - schema: - $ref: "#/definitions/Refs" - 401: - $ref: "#/responses/Unauthorized" - 403: - $ref: "#/responses/Forbidden" - 404: - $ref: "#/responses/NotFound" - 500: - $ref: "#/responses/InternalServerError" - default: - $ref: "#/responses/Default" - post: - tags: - - "ref" - summary: "Create and/or update ref(s)" - description: "" - operationId: "postRefs" - parameters: - - in: "body" - name: "body" - description: "" - schema: - $ref: "#/definitions/Refs" - required: true - responses: - 200: - description: "OK" - schema: - $ref: "#/definitions/Refs" - 401: - $ref: "#/responses/Unauthorized" - 403: - $ref: "#/responses/Forbidden" - 404: - $ref: "#/responses/NotFound" - 500: - $ref: "#/responses/InternalServerError" - 503: - $ref: "#/responses/ServiceUnavailable" - default: - $ref: "#/responses/Default" - /projects/{project_id}/refs/{ref_id}: - parameters: - - name: "project_id" - in: "path" - required: true - description: "project identifier" - type: "string" - - name: "ref_id" - in: "path" - required: true - description: "ref identifier" - type: "string" - get: - tags: - - "ref" - summary: "Get ref" - description: "" - operationId: "getRef" - responses: - 200: - description: "OK" - schema: - $ref: "#/definitions/Refs" - 401: - $ref: "#/responses/Unauthorized" - 403: - $ref: "#/responses/Forbidden" - 404: - $ref: "#/responses/NotFound" - 500: - $ref: "#/responses/InternalServerError" - default: - $ref: "#/responses/Default" - delete: - tags: - - "ref" - summary: "Delete ref" - description: "" - operationId: "deleteRef" - responses: - 200: - description: "OK" - schema: - $ref: "#/definitions/Refs" - 401: - $ref: "#/responses/Unauthorized" - 403: - $ref: "#/responses/Forbidden" - 404: - $ref: "#/responses/NotFound" - 500: - $ref: "#/responses/InternalServerError" - default: - $ref: "#/responses/Default" - /projects/{project_id}/refs/{ref_id}/commits: - parameters: - - name: "project_id" - in: "path" - required: true - description: "project identifier" - type: "string" - - name: "ref_id" - in: "path" - required: true - description: "ref identifier" - type: "string" - - name: "maxTimestamp" - in: "query" - required: false - description: "max timestamp" - allowReserved: true - type: "string" - get: - tags: - - "ref" - summary: "Get ref history" - description: "" - operationId: "getRefHistory" - responses: - 200: - description: "OK" - schema: - $ref: "#/definitions/Commits" - 401: - $ref: "#/responses/Unauthorized" - 403: - $ref: "#/responses/Forbidden" - 404: - $ref: "#/responses/NotFound" - 500: - $ref: "#/responses/InternalServerError" - default: - $ref: "#/responses/Default" - /projects/{project_id}/refs/{ref_id}/documents: - parameters: - - name: "project_id" - in: "path" - required: true - description: "project identifier" - type: "string" - - name: "ref_id" - in: "path" - required: true - description: "ref identifier" - type: "string" - - name: "groupId" - in: "query" - required: false - description: "group identifier" - type: "string" - get: - tags: - - "ref" - summary: "Get ref history" - description: "" - operationId: "getRefHistory" - responses: - 200: - description: "OK" - schema: - $ref: "#/definitions/Commits" - 401: - $ref: "#/responses/Unauthorized" - 403: - $ref: "#/responses/Forbidden" - 404: - $ref: "#/responses/NotFound" - 500: - $ref: "#/responses/InternalServerError" - default: - $ref: "#/responses/Default" - /projects/{project_id}/refs/{ref_id}/elements: - parameters: - - name: "project_id" - in: "path" - required: true - description: "project identifier" - type: "string" - - name: "ref_id" - in: "path" - required: true - description: "ref identifier" - type: "string" - - name: "commitId" - in: "query" - required: false - description: "commit identifier" - type: "string" - get: - tags: - - "element" - summary: "Get elements" - description: "" - operationId: "getElements" - parameters: - - in: "query" - name: "extended" - description: "" - type: "boolean" - - in: "query" - name: "commitId" - description: "" - type: "string" - responses: - 200: - description: "OK" - schema: - $ref: "#/definitions/Elements" - 401: - $ref: "#/responses/Unauthorized" - 403: - $ref: "#/responses/Forbidden" - 404: - $ref: "#/responses/NotFound" - 500: - $ref: "#/responses/InternalServerError" - default: - $ref: "#/responses/Default" - put: - tags: - - "element" - summary: "Get element(s) in batch" - description: "" - operationId: "getElementsInBatch" - parameters: - - in: "body" - name: "body" - description: "" - schema: - $ref: "#/definitions/Elements" - required: true - - in: "query" - name: "depth" - description: "" - type: "integer" - - in: "query" - name: "extended" - description: "" - type: "boolean" - - in: "query" - name: "commitId" - description: "" - type: "string" - responses: - 200: - description: "OK" - schema: - $ref: "#/definitions/RejectableElements" - 401: - $ref: "#/responses/Unauthorized" - 403: - $ref: "#/responses/Forbidden" - 404: - $ref: "#/responses/NotFound" - 500: - $ref: "#/responses/InternalServerError" - default: - $ref: "#/responses/Default" - delete: - tags: - - "element" - summary: "Delete element(s) in batch" - description: "" - operationId: "deleteElementsInBatch" - parameters: - - in: "body" - name: "body" - description: "" - schema: - $ref: "#/definitions/Elements" - required: true - responses: - 200: - description: "OK" - schema: - $ref: "#/definitions/Elements" - 401: - $ref: "#/responses/Unauthorized" - 403: - $ref: "#/responses/Forbidden" - 404: - $ref: "#/responses/NotFound" - 500: - $ref: "#/responses/InternalServerError" - default: - $ref: "#/responses/Default" - post: - tags: - - "element" - summary: "Create and/or update element(s)" - description: "" - operationId: "postElements" - parameters: - - in: "body" - name: "body" - description: "" - schema: - $ref: "#/definitions/Elements" - required: true - responses: - 200: - description: "OK" - schema: - $ref: "#/definitions/RejectableElements" - 401: - $ref: "#/responses/Unauthorized" - 403: - $ref: "#/responses/Forbidden" - 404: - $ref: "#/responses/NotFound" - 500: - $ref: "#/responses/InternalServerError" - default: - $ref: "#/responses/Default" - /projects/{project_id}/refs/{ref_id}/elements/{element_id}: - parameters: - - name: "project_id" - in: "path" - required: true - description: "project identifier" - type: "string" - - name: "ref_id" - in: "path" - required: true - description: "ref identifier" - type: "string" - - name: "element_id" - in: "path" - required: true - description: "element identifier" - type: "string" - get: - tags: - - "element" - summary: "Get element" - description: "" - operationId: "getElement" - parameters: - - in: "query" - name: "depth" - description: "" - type: "integer" - - in: "query" - name: "extended" - description: "" - type: "boolean" - - in: "query" - name: "commitId" - description: "" - type: "string" - responses: - 200: - description: "OK" - schema: - $ref: "#/definitions/Elements" - 401: - $ref: "#/responses/Unauthorized" - 403: - $ref: "#/responses/Forbidden" - 404: - $ref: "#/responses/NotFound" - 500: - $ref: "#/responses/InternalServerError" - default: - $ref: "#/responses/Default" - delete: - tags: - - "element" - summary: "Delete element" - description: "" - operationId: "deleteElement" - responses: - 200: - description: "OK" - schema: - $ref: "#/definitions/Elements" - 401: - $ref: "#/responses/Unauthorized" - 403: - $ref: "#/responses/Forbidden" - 404: - $ref: "#/responses/NotFound" - 500: - $ref: "#/responses/InternalServerError" - default: - $ref: "#/responses/Default" - /projects/{project_id}/refs/{ref_id}/elements/{element_id}/commits: - parameters: - - name: "project_id" - in: "path" - required: true - description: "project identifier" - type: "string" - - name: "ref_id" - in: "path" - required: true - description: "ref identifier" - type: "string" - - name: "element_id" - in: "path" - required: true - description: "element identifier" - type: "string" - get: - tags: - - "element" - summary: "Get element history" - description: "" - operationId: "getElementHistory" - responses: - 200: - description: "OK" - schema: - $ref: "#/definitions/Commits" - 401: - $ref: "#/responses/Unauthorized" - 403: - $ref: "#/responses/Forbidden" - 404: - $ref: "#/responses/NotFound" - 500: - $ref: "#/responses/InternalServerError" - default: - $ref: "#/responses/Default" - /projects/{project_id}/refs/{ref_id}/artifacts: - parameters: - - name: "project_id" - in: "path" - required: true - description: "project identifier" - type: "string" - - name: "ref_id" - in: "path" - required: true - description: "ref identifier" - type: "string" - get: - tags: - - "artifact" - summary: "Get artifacts" - description: "" - operationId: "getArtifacts" - produces: - - image/png - - image/svg+xml - - application/pdf - - application/vnd.openxmlformats-officedocument.wordprocessingml.document - parameters: - - in: "query" - name: "commitId" - description: "" - type: "string" - responses: - 200: - description: "OK" - schema: - $ref: "#/definitions/Artifacts" - 401: - $ref: "#/responses/Unauthorized" - 403: - $ref: "#/responses/Forbidden" - 404: - $ref: "#/responses/NotFound" - 500: - $ref: "#/responses/InternalServerError" - default: - $ref: "#/responses/Default" - put: - tags: - - "artifact" - summary: "Get artifact(s) in batch" - description: "" - operationId: "getArtifactsInBatch" - produces: - - image/png - - image/svg+xml - - application/pdf - - application/vnd.openxmlformats-officedocument.wordprocessingml.document - parameters: - - in: "body" - name: "body" - description: "" - schema: - $ref: "#/definitions/Artifacts" - required: true - - in: "query" - name: "commitId" - description: "" - type: "string" - responses: - 200: - description: "OK" - schema: - $ref: "#/definitions/Artifacts" - 401: - $ref: "#/responses/Unauthorized" - 403: - $ref: "#/responses/Forbidden" - 404: - $ref: "#/responses/NotFound" - 500: - $ref: "#/responses/InternalServerError" - default: - $ref: "#/responses/Default" - delete: - tags: - - "artifact" - summary: "Delete artifact(s) in batch" - description: "" - operationId: "deleteArtifactsInBatch" - parameters: - - in: "body" - name: "body" - description: "" - schema: - $ref: "#/definitions/Artifacts" - required: true - responses: - 200: - description: "OK" - schema: - $ref: "#/definitions/Artifacts" - 401: - $ref: "#/responses/Unauthorized" - 403: - $ref: "#/responses/Forbidden" - 404: - $ref: "#/responses/NotFound" - 500: - $ref: "#/responses/InternalServerError" - default: - $ref: "#/responses/Default" - post: - tags: - - "artifact" - summary: "Create and/or update artifact" - description: "" - operationId: "postArtifact" - consumes: - - multipart/form-data - parameters: - - in: "formData" - name: "id" + /api/login: + post: + tags: + - "ticket" + summary: "Create ticket" + description: "" + operationId: "postTicket" + parameters: + - in: "body" + name: "body" + description: "" + schema: + $ref: "#/definitions/LoginRequest" + required: true + responses: + 200: + description: "OK" + schema: + $ref: "#/definitions/LoginResponse" + 403: + $ref: "#/responses/Forbidden" + 404: + $ref: "#/responses/NotFound" + 500: + $ref: "#/responses/InternalServerError" + default: + $ref: "#/responses/Default" + security: [] + /mms/login/ticket/{ticket_id}: + parameters: + - name: "ticket_id" + in: "path" + required: true + description: "ticket identifier" + type: string + get: + tags: + - "ticket" + summary: "Get ticket" + description: "" + operationId: "getTicket" + responses: + 200: + description: "OK" + schema: + $ref: "#/definitions/TicketResponse" + 403: + $ref: "#/responses/Forbidden" + 404: + $ref: "#/responses/NotFound" + 500: + $ref: "#/responses/InternalServerError" + default: + $ref: "#/responses/Default" + /orgs: + get: + tags: + - "org" + summary: "Get all orgs" + description: "" + operationId: "getOrgs" + responses: + 200: + description: "OK" + schema: + $ref: "#/definitions/Orgs" + 401: + $ref: "#/responses/Unauthorized" + 403: + $ref: "#/responses/Forbidden" + 404: + $ref: "#/responses/NotFound" + 500: + $ref: "#/responses/InternalServerError" + default: + $ref: "#/responses/Default" + post: + tags: + - "org" + summary: "Create and/or update org(s)" + description: "" + operationId: "postOrgs" + parameters: + - in: "body" + name: "body" + description: "" + schema: + $ref: "#/definitions/Orgs" + required: true + responses: + 200: + description: "OK" + schema: + $ref: "#/definitions/Orgs" + 401: + $ref: "#/responses/Unauthorized" + 403: + $ref: "#/responses/Forbidden" + 404: + $ref: "#/responses/NotFound" + 500: + $ref: "#/responses/InternalServerError" + default: + $ref: "#/responses/Default" + /orgs/{org_id}: + parameters: + - name: "org_id" + in: "path" + required: true + description: "org identifier" + type: string + get: + tags: + - "org" + summary: "Get org" + description: "" + operationId: "getOrg" + responses: + 200: + description: "OK" + schema: + $ref: "#/definitions/Orgs" + 401: + $ref: "#/responses/Unauthorized" + 403: + $ref: "#/responses/Forbidden" + 404: + $ref: "#/responses/NotFound" + 500: + $ref: "#/responses/InternalServerError" + default: + $ref: "#/responses/Default" + delete: + tags: + - "org" + summary: "Delete org" + description: "" + operationId: "deleteOrg" + responses: + 200: + description: "OK" + schema: + $ref: "#/definitions/Orgs" + 401: + $ref: "#/responses/Unauthorized" + 403: + $ref: "#/responses/Forbidden" + 404: + $ref: "#/responses/NotFound" + 500: + $ref: "#/responses/InternalServerError" + default: + $ref: "#/responses/Default" + /orgs/{org_id}/projects: + parameters: + - name: "org_id" + in: "path" + required: true + description: "org identifier" + type: string + get: + tags: + - "project" + summary: "Get all projects in org" + description: "" + operationId: "getProjectsByOrg" + responses: + 200: + description: "OK" + schema: + $ref: "#/definitions/Projects" + 401: + $ref: "#/responses/Unauthorized" + 403: + $ref: "#/responses/Forbidden" + 404: + $ref: "#/responses/NotFound" + 500: + $ref: "#/responses/InternalServerError" + default: + $ref: "#/responses/Default" + post: + tags: + - "project" + summary: "Create and/or update project(s) in org" + description: "" + operationId: "postProjectsByOrg" + parameters: + - in: "body" + name: "body" + description: "" + schema: + $ref: "#/definitions/Projects" + required: true + responses: + 200: + description: "OK" + schema: + $ref: "#/definitions/Projects" + 401: + $ref: "#/responses/Unauthorized" + 403: + $ref: "#/responses/Forbidden" + 404: + $ref: "#/responses/NotFound" + 500: + $ref: "#/responses/InternalServerError" + default: + $ref: "#/responses/Default" + /projects: + get: + tags: + - "project" + summary: "Get all projects" + description: "" + operationId: "getProjects" + responses: + 200: + description: "OK" + schema: + $ref: "#/definitions/Projects" + 401: + $ref: "#/responses/Unauthorized" + 403: + $ref: "#/responses/Forbidden" + 404: + $ref: "#/responses/NotFound" + 500: + $ref: "#/responses/InternalServerError" + default: + $ref: "#/responses/Default" + post: + tags: + - "project" + summary: "Create and/or update project(s)" + description: "" + operationId: "postProjects" + parameters: + - in: "body" + name: "body" + description: "" + schema: + $ref: "#/definitions/Projects" + required: true + responses: + 200: + description: "OK" + schema: + $ref: "#/definitions/Projects" + 401: + $ref: "#/responses/Unauthorized" + 403: + $ref: "#/responses/Forbidden" + 404: + $ref: "#/responses/NotFound" + 500: + $ref: "#/responses/InternalServerError" + default: + $ref: "#/responses/Default" + /projects/{project_id}: + parameters: + - name: "project_id" + in: "path" + required: true + description: "project identifier" + type: "string" + get: + tags: + - "project" + summary: "Get project" + description: "" + operationId: "getProject" + responses: + 200: + description: "OK" + schema: + $ref: "#/definitions/Projects" + 401: + $ref: "#/responses/Unauthorized" + 403: + $ref: "#/responses/Forbidden" + 404: + $ref: "#/responses/NotFound" + 500: + $ref: "#/responses/InternalServerError" + default: + $ref: "#/responses/Default" + delete: + tags: + - "project" + summary: "Delete project" + description: "" + operationId: "deleteProject" + responses: + 200: + description: "OK" + schema: + $ref: "#/definitions/Projects" + 401: + $ref: "#/responses/Unauthorized" + 403: + $ref: "#/responses/Forbidden" + 404: + $ref: "#/responses/NotFound" + 500: + $ref: "#/responses/InternalServerError" + default: + $ref: "#/responses/Default" + /projects/{project_id}/commits/{commit_id}: + parameters: + - name: "project_id" + in: "path" + required: true + description: "project identifier" + type: "string" + - name: "commit_id" + in: "path" + required: true + description: "commit identifier" + type: "string" + get: + tags: + - "project" + summary: "Get project commit" + description: "" + operationId: "getProjectCommit" + responses: + 200: + description: "OK" + schema: + $ref: "#/definitions/Commits" + 401: + $ref: "#/responses/Unauthorized" + 403: + $ref: "#/responses/Forbidden" + 404: + $ref: "#/responses/NotFound" + 500: + $ref: "#/responses/InternalServerError" + default: + $ref: "#/responses/Default" + /projects/{project_id}/refs: + parameters: + - name: "project_id" + in: "path" + required: true + description: "project identifier" + type: "string" + get: + tags: + - "ref" + summary: "Get all refs in project" + description: "" + operationId: "getRefs" + responses: + 200: + description: "OK" + schema: + $ref: "#/definitions/Refs" + 401: + $ref: "#/responses/Unauthorized" + 403: + $ref: "#/responses/Forbidden" + 404: + $ref: "#/responses/NotFound" + 500: + $ref: "#/responses/InternalServerError" + default: + $ref: "#/responses/Default" + post: + tags: + - "ref" + summary: "Create and/or update ref(s)" + description: "" + operationId: "postRefs" + parameters: + - in: "body" + name: "body" + description: "" + schema: + $ref: "#/definitions/Refs" + required: true + responses: + 200: + description: "OK" + schema: + $ref: "#/definitions/Refs" + 401: + $ref: "#/responses/Unauthorized" + 403: + $ref: "#/responses/Forbidden" + 404: + $ref: "#/responses/NotFound" + 500: + $ref: "#/responses/InternalServerError" + 503: + $ref: "#/responses/ServiceUnavailable" + default: + $ref: "#/responses/Default" + /projects/{project_id}/refs/{ref_id}: + parameters: + - name: "project_id" + in: "path" + required: true + description: "project identifier" + type: "string" + - name: "ref_id" + in: "path" + required: true + description: "ref identifier" + type: "string" + get: + tags: + - "ref" + summary: "Get ref" + description: "" + operationId: "getRef" + responses: + 200: + description: "OK" + schema: + $ref: "#/definitions/Refs" + 401: + $ref: "#/responses/Unauthorized" + 403: + $ref: "#/responses/Forbidden" + 404: + $ref: "#/responses/NotFound" + 500: + $ref: "#/responses/InternalServerError" + default: + $ref: "#/responses/Default" + delete: + tags: + - "ref" + summary: "Delete ref" + description: "" + operationId: "deleteRef" + responses: + 200: + description: "OK" + schema: + $ref: "#/definitions/Refs" + 401: + $ref: "#/responses/Unauthorized" + 403: + $ref: "#/responses/Forbidden" + 404: + $ref: "#/responses/NotFound" + 500: + $ref: "#/responses/InternalServerError" + default: + $ref: "#/responses/Default" + /projects/{project_id}/refs/{ref_id}/commits: + parameters: + - name: "project_id" + in: "path" + required: true + description: "project identifier" + type: "string" + - name: "ref_id" + in: "path" + required: true + description: "ref identifier" + type: "string" + - name: "maxTimestamp" + in: "query" + type: "string" + get: + tags: + - "ref" + summary: "Get ref history" + description: "" + operationId: "getRefHistory" + responses: + 200: + description: "OK" + schema: + $ref: "#/definitions/Commits" + 401: + $ref: "#/responses/Unauthorized" + 403: + $ref: "#/responses/Forbidden" + 404: + $ref: "#/responses/NotFound" + 500: + $ref: "#/responses/InternalServerError" + default: + $ref: "#/responses/Default" + /projects/{project_id}/refs/{ref_id}/documents: + parameters: + - name: "project_id" + in: "path" + required: true + description: "project identifier" + type: "string" + - name: "ref_id" + in: "path" + required: true + description: "ref identifier" + type: "string" + - name: "groupId" + in: "query" + required: false + description: "group identifier" + type: "string" + get: + tags: + - "ref" + summary: "Get ref history" + description: "" + responses: + 200: + description: "OK" + schema: + $ref: "#/definitions/Commits" + 401: + $ref: "#/responses/Unauthorized" + 403: + $ref: "#/responses/Forbidden" + 404: + $ref: "#/responses/NotFound" + 500: + $ref: "#/responses/InternalServerError" + default: + $ref: "#/responses/Default" + /projects/{project_id}/refs/{ref_id}/elements: + parameters: + - name: "project_id" + in: "path" + required: true + description: "project identifier" + type: "string" + - name: "ref_id" + in: "path" + required: true + description: "ref identifier" + type: "string" + - name: "commitId" + in: "query" + required: false + description: "commit identifier" + type: "string" + - name: "extended" + in: "query" + description: "extended flag" + type: "boolean" + get: + tags: + - "element" + summary: "Get elements" + description: "" + operationId: "getElements" + responses: + 200: + description: "OK" + schema: + $ref: "#/definitions/Elements" + 401: + $ref: "#/responses/Unauthorized" + 403: + $ref: "#/responses/Forbidden" + 404: + $ref: "#/responses/NotFound" + 500: + $ref: "#/responses/InternalServerError" + default: + $ref: "#/responses/Default" + put: + tags: + - "element" + summary: "Get element(s) in batch" + description: "" + operationId: "getElementsInBatch" + parameters: + - in: "body" + name: "body" + description: "" + schema: + $ref: "#/definitions/Elements" + required: true + - in: "query" + name: "depth" + description: "" + type: "integer" + responses: + 200: + description: "OK" + schema: + $ref: "#/definitions/RejectableElements" + 401: + $ref: "#/responses/Unauthorized" + 403: + $ref: "#/responses/Forbidden" + 404: + $ref: "#/responses/NotFound" + 500: + $ref: "#/responses/InternalServerError" + default: + $ref: "#/responses/Default" + delete: + tags: + - "element" + summary: "Delete element(s) in batch" + description: "" + operationId: "deleteElementsInBatch" + parameters: + - in: "body" + name: "body" + description: "" + schema: + $ref: "#/definitions/Elements" + required: true + responses: + 200: + description: "OK" + schema: + $ref: "#/definitions/Elements" + 401: + $ref: "#/responses/Unauthorized" + 403: + $ref: "#/responses/Forbidden" + 404: + $ref: "#/responses/NotFound" + 500: + $ref: "#/responses/InternalServerError" + default: + $ref: "#/responses/Default" + post: + tags: + - "element" + summary: "Create and/or update element(s)" + description: "" + operationId: "postElements" + parameters: + - in: "body" + name: "body" + description: "" + schema: + $ref: "#/definitions/Elements" + required: true + responses: + 200: + description: "OK" + schema: + $ref: "#/definitions/RejectableElements" + 401: + $ref: "#/responses/Unauthorized" + 403: + $ref: "#/responses/Forbidden" + 404: + $ref: "#/responses/NotFound" + 500: + $ref: "#/responses/InternalServerError" + default: + $ref: "#/responses/Default" + /projects/{project_id}/refs/{ref_id}/elements/{element_id}: + parameters: + - name: "project_id" + in: "path" + required: true + description: "project identifier" + type: "string" + - name: "ref_id" + in: "path" + required: true + description: "ref identifier" + type: "string" + - name: "element_id" + in: "path" + required: true + description: "element identifier" + type: "string" + get: + tags: + - "element" + summary: "Get element" + description: "" + operationId: "getElement" + parameters: + - in: "query" + name: "depth" + description: "" + type: "integer" + - in: "query" + name: "extended" + description: "" + type: "boolean" + - in: "query" + name: "commitId" + description: "" + type: "string" + responses: + 200: + description: "OK" + schema: + $ref: "#/definitions/Elements" + 401: + $ref: "#/responses/Unauthorized" + 403: + $ref: "#/responses/Forbidden" + 404: + $ref: "#/responses/NotFound" + 500: + $ref: "#/responses/InternalServerError" + default: + $ref: "#/responses/Default" + delete: + tags: + - "element" + summary: "Delete element" + description: "" + operationId: "deleteElement" + responses: + 200: + description: "OK" + schema: + $ref: "#/definitions/Elements" + 401: + $ref: "#/responses/Unauthorized" + 403: + $ref: "#/responses/Forbidden" + 404: + $ref: "#/responses/NotFound" + 500: + $ref: "#/responses/InternalServerError" + default: + $ref: "#/responses/Default" + /projects/{project_id}/refs/{ref_id}/elements/{element_id}/commits: + parameters: + - name: "project_id" + in: "path" + required: true + description: "project identifier" + type: "string" + - name: "ref_id" + in: "path" + required: true + description: "ref identifier" + type: "string" + - name: "element_id" + in: "path" + required: true + description: "element identifier" + type: "string" + get: + tags: + - "element" + summary: "Get element history" + description: "" + operationId: "getElementHistory" + responses: + 200: + description: "OK" + schema: + $ref: "#/definitions/Commits" + 401: + $ref: "#/responses/Unauthorized" + 403: + $ref: "#/responses/Forbidden" + 404: + $ref: "#/responses/NotFound" + 500: + $ref: "#/responses/InternalServerError" + default: + $ref: "#/responses/Default" + /projects/{project_id}/refs/{ref_id}/artifacts: + parameters: + - name: "project_id" + in: "path" + required: true + description: "project identifier" + type: "string" + - name: "ref_id" + in: "path" + required: true + description: "ref identifier" + type: "string" + get: + tags: + - "artifact" + summary: "Get artifacts" + description: "" + operationId: "getArtifacts" + produces: + - image/png + - image/svg+xml + - application/pdf + - application/vnd.openxmlformats-officedocument.wordprocessingml.document + parameters: + - in: "query" + name: "commitId" + description: "" + type: "string" + responses: + 200: + description: "OK" + schema: + $ref: "#/definitions/Artifacts" + 401: + $ref: "#/responses/Unauthorized" + 403: + $ref: "#/responses/Forbidden" + 404: + $ref: "#/responses/NotFound" + 500: + $ref: "#/responses/InternalServerError" + default: + $ref: "#/responses/Default" + put: + tags: + - "artifact" + summary: "Get artifact(s) in batch" + description: "" + operationId: "getArtifactsInBatch" + produces: + - image/png + - image/svg+xml + - application/pdf + - application/vnd.openxmlformats-officedocument.wordprocessingml.document + parameters: + - in: "body" + name: "body" + description: "" + schema: + $ref: "#/definitions/Artifacts" + required: true + - in: "query" + name: "commitId" + description: "" + type: "string" + responses: + 200: + description: "OK" + schema: + $ref: "#/definitions/Artifacts" + 401: + $ref: "#/responses/Unauthorized" + 403: + $ref: "#/responses/Forbidden" + 404: + $ref: "#/responses/NotFound" + 500: + $ref: "#/responses/InternalServerError" + default: + $ref: "#/responses/Default" + delete: + tags: + - "artifact" + summary: "Delete artifact(s) in batch" + description: "" + operationId: "deleteArtifactsInBatch" + parameters: + - in: "body" + name: "body" + description: "" + schema: + $ref: "#/definitions/Artifacts" + required: true + responses: + 200: + description: "OK" + schema: + $ref: "#/definitions/Artifacts" + 401: + $ref: "#/responses/Unauthorized" + 403: + $ref: "#/responses/Forbidden" + 404: + $ref: "#/responses/NotFound" + 500: + $ref: "#/responses/InternalServerError" + default: + $ref: "#/responses/Default" + post: + tags: + - "artifact" + summary: "Create and/or update artifact" + description: "" + operationId: "postArtifact" + consumes: + - multipart/form-data + parameters: + - in: "formData" + name: "id" + type: "string" + required: true + - in: "formData" + name: "file" + type: "file" + required: true + - in: "formData" + name: "contentType" + type: "string" + description: "When the content type cannot be automatically detected, this explicitly defined value is used." + - in: "formData" + name: "name" + type: "string" + - in: "formData" + name: "source" + type: "string" + - in: "formData" + name: "comment" + type: "string" + responses: + 200: + description: "OK" + schema: + $ref: "#/definitions/Artifacts" + 401: + $ref: "#/responses/Unauthorized" + 403: + $ref: "#/responses/Forbidden" + 404: + $ref: "#/responses/NotFound" + 500: + $ref: "#/responses/InternalServerError" + default: + $ref: "#/responses/Default" + /projects/{project_id}/refs/{ref_id}/artifacts/{artifact_id}: + parameters: + - name: "project_id" + in: "path" + required: true + description: "project identifier" + type: "string" + - name: "ref_id" + in: "path" + required: true + description: "ref identifier" + type: "string" + - name: "artifact_id" + in: "path" + required: true + description: "artifact identifier" + type: "string" + get: + tags: + - "artifact" + summary: "Get artifact" + description: "" + operationId: "getArtifact" + parameters: + - in: "query" + name: "depth" + description: "" + type: "integer" + - in: "query" + name: "extended" + description: "" + type: "boolean" + - in: "query" + name: "commitId" + description: "" + type: "string" + responses: + 200: + description: "OK" + schema: + $ref: "#/definitions/Artifacts" + 401: + $ref: "#/responses/Unauthorized" + 403: + $ref: "#/responses/Forbidden" + 404: + $ref: "#/responses/NotFound" + 500: + $ref: "#/responses/InternalServerError" + default: + $ref: "#/responses/Default" + delete: + tags: + - "artifact" + summary: "Delete artifact" + description: "" + operationId: "deleteArtifact" + responses: + 200: + description: "OK" + schema: + $ref: "#/definitions/Artifacts" + 401: + $ref: "#/responses/Unauthorized" + 403: + $ref: "#/responses/Forbidden" + 404: + $ref: "#/responses/NotFound" + 500: + $ref: "#/responses/InternalServerError" + default: + $ref: "#/responses/Default" + /projects/{project_id}/refs/{ref_id}/artifacts/{artifact_id}/commits: + parameters: + - name: "project_id" + in: "path" + required: true + description: "project identifier" type: "string" + - name: "ref_id" + in: "path" required: true - - in: "formData" - name: "file" - type: "file" + description: "ref identifier" + type: "string" + - name: "artifact_id" + in: "path" required: true - - in: "formData" - name: "contentType" + description: "artifact identifier" type: "string" - description: "When the content type cannot be automatically detected, this explicitly defined value is used." - - in: "formData" - name: "name" + get: + tags: + - "artifact" + summary: "Get artifact history" + description: "" + operationId: "getArtifactHistory" + responses: + 200: + description: "OK" + schema: + $ref: "#/definitions/Commits" + 401: + $ref: "#/responses/Unauthorized" + 403: + $ref: "#/responses/Forbidden" + 404: + $ref: "#/responses/NotFound" + 500: + $ref: "#/responses/InternalServerError" + default: + $ref: "#/responses/Default" + /projects/{project_id}/refs/{ref_id}/convert: + parameters: + - name: "project_id" + in: "path" + required: true + description: "project identifier" type: "string" - - in: "formData" - name: "source" + - name: "ref_id" + in: "path" + required: true + description: "ref identifier" type: "string" - - in: "formData" - name: "comment" + post: + tags: + - "other" + summary: "Converts HTML to requested format" + description: "" + operationId: "htmlConverter" + parameters: + - name: "body" + in: "body" + description: "" + schema: + $ref: "#/definitions/ConvertRequest" + required: true + responses: + 200: + description: "OK" + schema: + $ref: "#/definitions/ConvertResponse" + 401: + $ref: "#/responses/Unauthorized" + 403: + $ref: "#/responses/Forbidden" + 404: + $ref: "#/responses/NotFound" + 500: + $ref: "#/responses/InternalServerError" + default: + $ref: "#/responses/Default" + /projects/{project_id}/refs/{ref_id}/groups: + parameters: + - name: "project_id" + in: "path" + required: true + description: "project identifier" + type: "string" + - name: "ref_id" + in: "path" + required: true + description: "ref identifier" + type: "string" + get: + tags: + - "other" + summary: "Get groups" + description: "" + operationId: "getGroups" + responses: + 200: + description: "OK" + schema: + $ref: "#/definitions/Groups" + 401: + $ref: "#/responses/Unauthorized" + 403: + $ref: "#/responses/Forbidden" + 404: + $ref: "#/responses/NotFound" + 500: + $ref: "#/responses/InternalServerError" + default: + $ref: "#/responses/Default" + /projects/{project_id}/refs/{ref_id}/mounts: + parameters: + - name: "project_id" + in: "path" + required: true + description: "project identifier" + type: "string" + - name: "ref_id" + in: "path" + required: true + description: "ref identifier" + type: "string" + get: + tags: + - "other" + summary: "Get mounts" + description: "" + operationId: "getMounts" + responses: + 200: + description: "OK" + schema: + $ref: "#/definitions/Mounts" + 401: + $ref: "#/responses/Unauthorized" + 403: + $ref: "#/responses/Forbidden" + 404: + $ref: "#/responses/NotFound" + 500: + $ref: "#/responses/InternalServerError" + default: + $ref: "#/responses/Default" + /projects/{project_id}/refs/{ref_id}/search: + parameters: + - name: "project_id" + in: "path" + required: true + description: "project identifier" + type: "string" + - name: "ref_id" + in: "path" + required: true + description: "ref identifier" type: "string" - responses: - 200: - description: "OK" - schema: - $ref: "#/definitions/Artifacts" - 401: - $ref: "#/responses/Unauthorized" - 403: - $ref: "#/responses/Forbidden" - 404: - $ref: "#/responses/NotFound" - 500: - $ref: "#/responses/InternalServerError" - default: - $ref: "#/responses/Default" - /projects/{project_id}/refs/{ref_id}/artifacts/{artifact_id}: - parameters: - - name: "project_id" - in: "path" - required: true - description: "project identifier" - type: "string" - - name: "ref_id" - in: "path" - required: true - description: "ref identifier" - type: "string" - - name: "artifact_id" - in: "path" - required: true - description: "artifact identifier" - type: "string" - get: - tags: - - "artifact" - summary: "Get artifact" - description: "" - operationId: "getArtifact" - parameters: - - in: "query" - name: "depth" - description: "" - type: "integer" - - in: "query" - name: "extended" - description: "" - type: "boolean" - - in: "query" - name: "commitId" - description: "" - type: "string" - responses: - 200: - description: "OK" - schema: - $ref: "#/definitions/Artifacts" - 401: - $ref: "#/responses/Unauthorized" - 403: - $ref: "#/responses/Forbidden" - 404: - $ref: "#/responses/NotFound" - 500: - $ref: "#/responses/InternalServerError" - default: - $ref: "#/responses/Default" - delete: - tags: - - "artifact" - summary: "Delete artifact" - description: "" - operationId: "deleteArtifact" - responses: - 200: - description: "OK" - schema: - $ref: "#/definitions/Artifacts" - 401: - $ref: "#/responses/Unauthorized" - 403: - $ref: "#/responses/Forbidden" - 404: - $ref: "#/responses/NotFound" - 500: - $ref: "#/responses/InternalServerError" - default: - $ref: "#/responses/Default" - /projects/{project_id}/refs/{ref_id}/artifacts/{artifact_id}/commits: - parameters: - - name: "project_id" - in: "path" - required: true - description: "project identifier" - type: "string" - - name: "ref_id" - in: "path" - required: true - description: "ref identifier" - type: "string" - - name: "artifact_id" - in: "path" - required: true - description: "artifact identifier" - type: "string" - get: - tags: - - "artifact" - summary: "Get artifact history" - description: "" - operationId: "getArtifactHistory" - responses: - 200: - description: "OK" - schema: - $ref: "#/definitions/Commits" - 401: - $ref: "#/responses/Unauthorized" - 403: - $ref: "#/responses/Forbidden" - 404: - $ref: "#/responses/NotFound" - 500: - $ref: "#/responses/InternalServerError" - default: - $ref: "#/responses/Default" - /projects/{project_id}/refs/{ref_id}/convert: - parameters: - - name: "project_id" - in: "path" - required: true - description: "project identifier" - type: "string" - - name: "ref_id" - in: "path" - required: true - description: "ref identifier" - type: "string" - post: - tags: - - "other" - summary: "Converts HTML to requested format" - description: "" - operationId: "htmlConverter" - parameters: - - name: "body" - in: "body" - description: "" - schema: - $ref: "#/definitions/ConvertRequest" - required: true - responses: - 200: - description: "OK" - schema: - $ref: "#/definitions/ConvertResponse" - 401: - $ref: "#/responses/Unauthorized" - 403: - $ref: "#/responses/Forbidden" - 404: - $ref: "#/responses/NotFound" - 500: - $ref: "#/responses/InternalServerError" - default: - $ref: "#/responses/Default" - /projects/{project_id}/refs/{ref_id}/groups: - parameters: - - name: "project_id" - in: "path" - required: true - description: "project identifier" - type: "string" - - name: "ref_id" - in: "path" - required: true - description: "ref identifier" - type: "string" - get: - tags: - - "other" - summary: "Get groups" - description: "" - operationId: "getGroups" - responses: - 200: - description: "OK" - schema: - $ref: "#/definitions/Groups" - 401: - $ref: "#/responses/Unauthorized" - 403: - $ref: "#/responses/Forbidden" - 404: - $ref: "#/responses/NotFound" - 500: - $ref: "#/responses/InternalServerError" - default: - $ref: "#/responses/Default" - /projects/{project_id}/refs/{ref_id}/mounts: - parameters: - - name: "project_id" - in: "path" - required: true - description: "project identifier" - type: "string" - - name: "ref_id" - in: "path" - required: true - description: "ref identifier" - type: "string" - get: - tags: - - "other" - summary: "Get mounts" - description: "" - operationId: "getMounts" - responses: - 200: - description: "OK" - schema: - $ref: "#/definitions/Mounts" - 401: - $ref: "#/responses/Unauthorized" - 403: - $ref: "#/responses/Forbidden" - 404: - $ref: "#/responses/NotFound" - 500: - $ref: "#/responses/InternalServerError" - default: - $ref: "#/responses/Default" - /projects/{project_id}/refs/{ref_id}/search: - parameters: - - name: "project_id" - in: "path" - required: true - description: "project identifier" - type: "string" - - name: "ref_id" - in: "path" - required: true - description: "ref identifier" - type: "string" - post: - tags: - - "other" - summary: "Search for elements" - description: "" - operationId: "searchElements" - parameters: - - name: "body" - in: "body" - description: "" - schema: - $ref: "#/definitions/SearchRequest" - required: true - responses: - 200: - description: "OK" - schema: - $ref: "#/definitions/Elements" - 401: - $ref: "#/responses/Unauthorized" - 403: - $ref: "#/responses/Forbidden" - 404: - $ref: "#/responses/NotFound" - 500: - $ref: "#/responses/InternalServerError" - default: - $ref: "#/responses/Default" + post: + tags: + - "other" + summary: "Search for elements" + description: "" + operationId: "searchElements" + parameters: + - name: "body" + in: "body" + description: "" + schema: + $ref: "#/definitions/SearchRequest" + required: true + responses: + 200: + description: "OK" + schema: + $ref: "#/definitions/Elements" + 401: + $ref: "#/responses/Unauthorized" + 403: + $ref: "#/responses/Forbidden" + 404: + $ref: "#/responses/NotFound" + 500: + $ref: "#/responses/InternalServerError" + default: + $ref: "#/responses/Default" responses: - OK: - description: "OK" - NotFound: - description: "The specified resource was not found" - Unauthorized: - description: "Unauthorized" - Forbidden: - description: "Forbidden" - InternalServerError: - description: "Internal server error" - ServiceUnavailable: - description: "Service Unavailable" - Default: - description: "Unknown" + OK: + description: "OK" + NotFound: + description: "The specified resource was not found" + Unauthorized: + description: "Unauthorized" + Forbidden: + description: "Forbidden" + InternalServerError: + description: "Internal server error" + ServiceUnavailable: + description: "Service Unavailable" + Default: + description: "Unknown" definitions: - Org: - type: "object" - required: - - "id" - - "name" - properties: - id: - type: "string" - name: - type: "string" - additionalProperties: - type: "object" - Project: - type: "object" - required: - - "id" - - "name" - properties: - id: - type: "string" - name: - type: "string" - orgId: - type: "string" - type: - type: "string" - enum: ["Project"] - default: "Project" - additionalProperties: - type: "object" - Ref: - type: "object" - required: - - "id" - - "name" - - "type" - properties: - id: - type: "string" - name: - type: "string" - parentRefId: - type: "string" - type: - type: "string" - enum: ["Branch","Tag"] - default: "Branch" - additionalProperties: - type: "object" - Commit: - type: "object" - required: - - "id" - properties: - id: - type: "string" - additionalProperties: - type: "object" - Element: - type: "object" - required: - - "id" - properties: - id: - type: "string" - name: - type: "string" - additionalProperties: - type: "object" - Rejection: - type: "object" - required: - - "code" - - "message" - - "severity" - properties: - code: - type: "number" - id: - type: "string" - element: - $ref: "#/definitions/Element" - message: - type: "string" - severity: - type: "string" - Artifact: - type: "object" - required: - - "id" - - "contentType" - - "checksum" - - "artifactLocation" - properties: - id: - type: "string" - contentType: - type: "string" - checksum: - type: "string" - artifactLocation: - type: "string" - name: - type: "string" - additionalProperties: - type: "object" - Orgs: - type: "object" - required: - - "orgs" - properties: - orgs: - type: "array" - items: - $ref: "#/definitions/Org" - Projects: - type: "object" - required: - - "projects" - properties: - projects: - type: "array" - items: - $ref: "#/definitions/Project" - Refs: - type: "object" - required: - - "refs" - properties: - refs: - type: "array" - items: - $ref: "#/definitions/Ref" - Commits: - type: "object" - required: - - "commits" - properties: - commits: - type: "array" - items: - $ref: "#/definitions/Commit" - Elements: - type: "object" - required: - - "elements" - properties: - elements: - type: "array" - items: - $ref: "#/definitions/Element" - comment: - type: "string" - source: - type: "string" - RejectableElements: - type: "object" - required: - - "elements" - properties: - elements: - type: "array" - items: - $ref: "#/definitions/Element" - rejected: - type: "array" - items: - $ref: "#/definitions/Rejection" - comment: - type: "string" - source: - type: "string" - Artifacts: - type: "object" - required: - - "artifacts" - properties: - artifacts: - type: "array" - items: - $ref: "#/definitions/Artifact" - Groups: - type: "object" - required: - - "groups" - properties: - groups: - type: "array" - items: - $ref: "#/definitions/Element" - Mounts: - type: "object" - required: - - "mounts" - properties: - mounts: - type: "array" - items: - $ref: "#/definitions/Project" - Documents: - type: "object" - required: - - "documents" - properties: - documents: - type: "array" - items: - $ref: "#/definitions/Element" - ConvertRequest: - type: "object" - required: - - "name" - - "body" - - "Accepts" - properties: - name: - type: "string" - body: - type: "string" - Accepts: - type: "string" - css: - type: "string" - ConvertResponse: - type: "object" - required: - - "name" - - "filename" - - "status" - properties: - name: - type: "string" - filename: - type: "string" - status: - type: "string" - SearchRequest: - type: "object" - required: - - "query" - properties: - query: + Org: type: "object" - size: - type: "number" - sort: + required: + - "id" + - "name" + properties: + id: + type: "string" + name: + type: "string" + additionalProperties: + type: "object" + Project: + type: "object" + required: + - "id" + - "name" + properties: + id: + type: "string" + name: + type: "string" + orgId: + type: "string" + type: + type: "string" + enum: ["Project"] + default: "Project" + additionalProperties: + type: "object" + Ref: + type: "object" + required: + - "id" + - "name" + - "type" + properties: + id: + type: "string" + name: + type: "string" + parentRefId: + type: "string" + type: + type: "string" + enum: ["Branch","Tag"] + default: "Branch" + additionalProperties: + type: "object" + Commit: + type: "object" + required: + - "id" + properties: + id: + type: "string" + additionalProperties: + type: "object" + Element: + type: "object" + required: + - "id" + properties: + id: + type: "string" + name: + type: "string" + additionalProperties: + type: "object" + Rejection: + type: "object" + required: + - "code" + - "message" + - "severity" + properties: + code: + type: "number" + id: + type: "string" + element: + $ref: "#/definitions/Element" + message: + type: "string" + severity: + type: "string" + Artifact: + type: "object" + required: + - "id" + - "contentType" + - "checksum" + - "artifactLocation" + properties: + id: + type: "string" + contentType: + type: "string" + checksum: + type: "string" + artifactLocation: + type: "string" + name: + type: "string" + additionalProperties: + type: "object" + Orgs: + type: "object" + required: + - "orgs" + properties: + orgs: + type: "array" + items: + $ref: "#/definitions/Org" + Projects: + type: "object" + required: + - "projects" + properties: + projects: + type: "array" + items: + $ref: "#/definitions/Project" + Refs: + type: "object" + required: + - "refs" + properties: + refs: + type: "array" + items: + $ref: "#/definitions/Ref" + Commits: + type: "object" + required: + - "commits" + properties: + commits: + type: "array" + items: + $ref: "#/definitions/Commit" + Elements: + type: "object" + required: + - "elements" + properties: + elements: + type: "array" + items: + $ref: "#/definitions/Element" + comment: + type: "string" + source: + type: "string" + RejectableElements: + type: "object" + required: + - "elements" + properties: + elements: + type: "array" + items: + $ref: "#/definitions/Element" + rejected: + type: "array" + items: + $ref: "#/definitions/Rejection" + comment: + type: "string" + source: + type: "string" + Artifacts: + type: "object" + required: + - "artifacts" + properties: + artifacts: + type: "array" + items: + $ref: "#/definitions/Artifact" + Groups: + type: "object" + required: + - "groups" + properties: + groups: + type: "array" + items: + $ref: "#/definitions/Element" + Mounts: + type: "object" + required: + - "mounts" + properties: + mounts: + type: "array" + items: + $ref: "#/definitions/Project" + Documents: + type: "object" + required: + - "documents" + properties: + documents: + type: "array" + items: + $ref: "#/definitions/Element" + ConvertRequest: + type: "object" + required: + - "name" + - "body" + - "Accepts" + properties: + name: + type: "string" + body: + type: "string" + Accepts: + type: "string" + css: + type: "string" + ConvertResponse: + type: "object" + required: + - "name" + - "filename" + - "status" + properties: + name: + type: "string" + filename: + type: "string" + status: + type: "string" + SearchRequest: + type: "object" + required: + - "query" + properties: + query: + type: "object" + size: + type: "number" + sort: + type: "object" + LoginRequest: + type: "object" + required: + - "username" + - "password" + properties: + username: + type: "string" + password: + type: "string" + LoginResponse: + type: "object" + required: + - "data" + properties: + data: + $ref: "#/definitions/LoginResponseData" + LoginResponseData: + type: "object" + required: + - "ticket" + properties: + ticket: + type: "string" + TicketResponse: type: "object" - LoginRequest: - type: "object" - required: - - "username" - - "password" - properties: - username: - type: "string" - password: - type: "string" - LoginResponse: - type: "object" - required: - - "data" - properties: - data: - $ref: "#/definitions/LoginResponseData" - LoginResponseData: - type: "object" - required: - - "ticket" - properties: - ticket: - type: "string" - TicketResponse: - type: "object" - required: - - "username" - - "first" - - "last" - properties: - username: - type: "string" - first: - type: "string" - last: - type: "string" + required: + - "username" + - "first" + - "last" + properties: + username: + type: "string" + first: + type: "string" + last: + type: "string" securityDefinitions: - Basic: - type: "basic" - Ticket: - type: "apiKey" - name: "alf_ticket" - in: "query" + Basic: + type: "basic" + Ticket: + type: "apiKey" + name: "alf_ticket" + in: "query" diff --git a/mms-ent/repo-amp/src/main/java/gov/nasa/jpl/view_repo/util/EmsNodeUtil.java b/mms-ent/repo-amp/src/main/java/gov/nasa/jpl/view_repo/util/EmsNodeUtil.java index e9812dd0..dca195b2 100644 --- a/mms-ent/repo-amp/src/main/java/gov/nasa/jpl/view_repo/util/EmsNodeUtil.java +++ b/mms-ent/repo-amp/src/main/java/gov/nasa/jpl/view_repo/util/EmsNodeUtil.java @@ -1640,6 +1640,10 @@ public static Object getValue(JsonElement value) { @SuppressWarnings("unchecked") private static boolean isEquivalent(Map map1, Map map2) { for (Map.Entry entry : map1.entrySet()) { + if (!map2.containsKey(entry.getKey())) { + return false; + } + Object value1 = entry.getValue(); Object value2 = map2.get(entry.getKey()); if (logger.isDebugEnabled()) { diff --git a/mms-ent/repo/pom.xml b/mms-ent/repo/pom.xml index 5ebd6be9..f684e27b 100755 --- a/mms-ent/repo/pom.xml +++ b/mms-ent/repo/pom.xml @@ -18,7 +18,7 @@ gov.nasa.jpl.mbee mms-ent - 3.4.1 + 3.4.2 diff --git a/mms-ent/runner/pom.xml b/mms-ent/runner/pom.xml index c1c4ad25..5c53cd80 100755 --- a/mms-ent/runner/pom.xml +++ b/mms-ent/runner/pom.xml @@ -9,14 +9,14 @@ gov.nasa.jpl.mbee mms-ent - 3.4.1 + 3.4.2 ${alfresco.data.location}/solr4 ${alfresco.solr.dir}/config ${alfresco.solr.dir}/data - 4.1.6.RELEASE + 4.3.17.RELEASE diff --git a/mms-ent/share-amp/pom.xml b/mms-ent/share-amp/pom.xml index 092ff5e7..ff4b45f9 100644 --- a/mms-ent/share-amp/pom.xml +++ b/mms-ent/share-amp/pom.xml @@ -9,7 +9,7 @@ gov.nasa.jpl.mbee mms-ent - 3.4.1 + 3.4.2