From 229dbd17cb098d06a50f11f5f77a8ee364376388 Mon Sep 17 00:00:00 2001 From: avigaffa Date: Wed, 15 Aug 2018 08:37:02 +0300 Subject: Remove activity spec from sdc Remove activity spec module from sdc since it is now part of sdc-workflow-designer project Change-Id: I730e60708bf6bae757be46113601c7ce4fc92a92 Issue-ID: SDC-1651 Signed-off-by: avigaffa --- .../activity-spec-web/activity-spec-war/pom.xml | 87 ----------------- .../src/main/webapp/WEB-INF/beans-services.xml | 49 ---------- .../src/main/webapp/WEB-INF/jetty-web.xml | 8 -- .../main/webapp/WEB-INF/spring-mapper-servlet.xml | 13 --- .../src/main/webapp/WEB-INF/web.xml | 67 ------------- .../activity-spec-war/templates/markdown.hbs | 105 --------------------- .../activity-spec-war/templates/operation.hbs | 73 -------------- .../activity-spec-war/templates/security.hbs | 88 ----------------- .../activity-spec-war/templates/strapdown.html.hbs | 11 --- 9 files changed, 501 deletions(-) delete mode 100644 services/activity-spec/activity-spec-web/activity-spec-war/pom.xml delete mode 100644 services/activity-spec/activity-spec-web/activity-spec-war/src/main/webapp/WEB-INF/beans-services.xml delete mode 100644 services/activity-spec/activity-spec-web/activity-spec-war/src/main/webapp/WEB-INF/jetty-web.xml delete mode 100644 services/activity-spec/activity-spec-web/activity-spec-war/src/main/webapp/WEB-INF/spring-mapper-servlet.xml delete mode 100644 services/activity-spec/activity-spec-web/activity-spec-war/src/main/webapp/WEB-INF/web.xml delete mode 100644 services/activity-spec/activity-spec-web/activity-spec-war/templates/markdown.hbs delete mode 100644 services/activity-spec/activity-spec-web/activity-spec-war/templates/operation.hbs delete mode 100644 services/activity-spec/activity-spec-web/activity-spec-war/templates/security.hbs delete mode 100644 services/activity-spec/activity-spec-web/activity-spec-war/templates/strapdown.html.hbs (limited to 'services/activity-spec/activity-spec-web/activity-spec-war') diff --git a/services/activity-spec/activity-spec-web/activity-spec-war/pom.xml b/services/activity-spec/activity-spec-web/activity-spec-war/pom.xml deleted file mode 100644 index 1102810db9..0000000000 --- a/services/activity-spec/activity-spec-web/activity-spec-war/pom.xml +++ /dev/null @@ -1,87 +0,0 @@ - - - 4.0.0 - - activity-spec-war - war - - - org.onap.sdc.activityspec - activity-spec - 1.3.0-SNAPSHOT - ../.. - - - - - org.onap.sdc.activityspec - activity-spec-service - ${project.version} - - - - - - - org.apache.maven.plugins - maven-compiler-plugin - - - none - - - - - org.apache.maven.plugins - maven-war-plugin - ${mvn.war.version} - - false - WEB-INF/web.xml - - - ${project.build.directory}/generated/swagger-ui - - - - - - com.github.kongchen - swagger-maven-plugin - ${mvn.swagger.version} - - - - false - org.onap.sdc.activityspec - http - /activity-spec-api - - Activity Spec REST API Documentation - ${project.version} - Activity Spec REST API Documentation - - http://www.github.com/kongchen/swagger-maven-plugin - - - ${basedir}/templates/strapdown.html.hbs - ${project.build.directory}/generated/api.html - ${project.build.directory}/generated/swagger-ui - - - - - - compile - - generate - - - - - - - - \ No newline at end of file diff --git a/services/activity-spec/activity-spec-web/activity-spec-war/src/main/webapp/WEB-INF/beans-services.xml b/services/activity-spec/activity-spec-web/activity-spec-war/src/main/webapp/WEB-INF/beans-services.xml deleted file mode 100644 index 245f3b8fdd..0000000000 --- a/services/activity-spec/activity-spec-web/activity-spec-war/src/main/webapp/WEB-INF/beans-services.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/services/activity-spec/activity-spec-web/activity-spec-war/src/main/webapp/WEB-INF/jetty-web.xml b/services/activity-spec/activity-spec-web/activity-spec-war/src/main/webapp/WEB-INF/jetty-web.xml deleted file mode 100644 index aa9afe9f7e..0000000000 --- a/services/activity-spec/activity-spec-web/activity-spec-war/src/main/webapp/WEB-INF/jetty-web.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - /activity-spec-api - diff --git a/services/activity-spec/activity-spec-web/activity-spec-war/src/main/webapp/WEB-INF/spring-mapper-servlet.xml b/services/activity-spec/activity-spec-web/activity-spec-war/src/main/webapp/WEB-INF/spring-mapper-servlet.xml deleted file mode 100644 index 5a32dd432a..0000000000 --- a/services/activity-spec/activity-spec-web/activity-spec-war/src/main/webapp/WEB-INF/spring-mapper-servlet.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/services/activity-spec/activity-spec-web/activity-spec-war/src/main/webapp/WEB-INF/web.xml b/services/activity-spec/activity-spec-web/activity-spec-war/src/main/webapp/WEB-INF/web.xml deleted file mode 100644 index 229ef9fd4a..0000000000 --- a/services/activity-spec/activity-spec-web/activity-spec-war/src/main/webapp/WEB-INF/web.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - contextConfigLocation - WEB-INF/beans-services.xml - - - - org.onap.sdc.activityspec.api.server.listeners.ActivitySpecAppStartupListener - - - - SessionContextFilter - org.onap.sdc.activityspec.api.server.filters.ActivitySpecSessionContextFilter - - - SessionContextFilter - /* - - - - spring-mapper - - org.springframework.web.servlet.DispatcherServlet - - 1 - - - - CXFServlet - CXF Servlet - - org.apache.cxf.transport.servlet.CXFServlet - - - redirects-list - - /docs/(\S)+\.json - - - - redirect-attributes - - javax.servlet.include.request_uri - - - - redirect-servlet-name - default - - 1 - - - spring-mapper - /ws/* - - - CXFServlet - /* - - diff --git a/services/activity-spec/activity-spec-web/activity-spec-war/templates/markdown.hbs b/services/activity-spec/activity-spec-web/activity-spec-war/templates/markdown.hbs deleted file mode 100644 index cc87c38244..0000000000 --- a/services/activity-spec/activity-spec-web/activity-spec-war/templates/markdown.hbs +++ /dev/null @@ -1,105 +0,0 @@ -#{{#info}}{{title}} - - -## {{join schemes " | "}}://{{host}}{{basePath}} - - -{{description}} - -{{#contact}} -[**Contact the developer**](mailto:{{email}}) -{{/contact}} - -**Version** {{version}} - -{{#license}}[**{{name}}**]({{url}}){{/license}} - -{{/info}} - -{{#if consumes}}**Consumes:** {{join consumes ", "}}{{/if}} - -{{#if produces}}**Produces:** {{join produces ", "}}{{/if}} - -{{#if securityDefinitions}} -# Security Definitions -{{/if}} -{{> security}} - -# APIs - -{{#each paths}} -## {{@key}} -{{#this}} -{{#get}} -### GET -{{> operation}} -{{/get}} - -{{#put}} -### PUT -{{> operation}} -{{/put}} - -{{#post}} -### POST - -{{> operation}} - -{{/post}} - -{{#delete}} -### DELETE -{{> operation}} -{{/delete}} - -{{#option}} -### OPTION -{{> operation}} -{{/option}} - -{{#patch}} -### PATCH -{{> operation}} -{{/patch}} - -{{#head}} -### HEAD -{{> operation}} -{{/head}} - -{{/this}} -{{/each}} - -# Definitions -{{#each definitions}} -## {{@key}} - - - - - - - - - - {{#each this.properties}} - - - - - - - - {{/each}} -
nametyperequireddescriptionexample
{{@key}} - {{#ifeq type "array"}} - {{#items.$ref}} - {{type}}[{{basename items.$ref}}] - {{/items.$ref}} - {{^items.$ref}}{{type}}[{{items.type}}]{{/items.$ref}} - {{else}} - {{#$ref}}{{basename $ref}}{{/$ref}} - {{^$ref}}{{type}}{{#format}} ({{format}}){{/format}}{{/$ref}} - {{/ifeq}} - {{#required}}required{{/required}}{{^required}}optional{{/required}}{{#description}}{{{description}}}{{/description}}{{^description}}-{{/description}}{{example}}
-{{/each}} \ No newline at end of file diff --git a/services/activity-spec/activity-spec-web/activity-spec-war/templates/operation.hbs b/services/activity-spec/activity-spec-web/activity-spec-war/templates/operation.hbs deleted file mode 100644 index 375d4f7701..0000000000 --- a/services/activity-spec/activity-spec-web/activity-spec-war/templates/operation.hbs +++ /dev/null @@ -1,73 +0,0 @@ -{{#deprecated}}-deprecated-{{/deprecated}} -{{summary}} - -{{description}} - -{{#if externalDocs.url}}{{externalDocs.description}}. [See external documents for more details]({{externalDocs.url}}) -{{/if}} - -{{#if security}} -#### Security -{{/if}} - -{{#security}} -{{#each this}} -* {{@key}} -{{#this}} * {{this}} -{{/this}} -{{/each}} -{{/security}} - -#### Request - -{{#if consumes}} -**Content-Type: ** {{join consumes ", "}}{{/if}} - -##### Parameters -{{#if parameters}} - - - - - - - - - -{{/if}} - -{{#parameters}} - - - - - - -{{#ifeq in "body"}} - -{{else}} - {{#ifeq type "array"}} - - {{else}} - - {{/ifeq}} -{{/ifeq}} - -{{/parameters}} -{{#if parameters}} -
NameLocated inRequiredDescriptionDefaultSchema
{{name}}{{in}}{{#if required}}yes{{else}}no{{/if}}{{description}}{{#if pattern}} (**Pattern**: `{{pattern}}`){{/if}}{{#if defaultValue}}{{defaultValue}}{{else}} - {{/if}} - {{#ifeq schema.type "array"}}Array[{{basename schema.items.$ref}}]{{/ifeq}} - {{#schema.$ref}}{{basename schema.$ref}} {{/schema.$ref}} - Array[{{items.type}}] ({{collectionFormat}}){{type}} {{#format}}({{format}}){{/format}}
-{{/if}} - - -#### Response - -{{#if produces}}**Content-Type: ** {{join produces ", "}}{{/if}} - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -{{#each responses}}| {{@key}} | {{description}} | {{#schema.$ref}}{{basename schema.$ref}}{{/schema.$ref}}{{#ifeq schema.type "array"}}Array[{{basename schema.items.$ref}}]{{/ifeq}}{{^schema}} - {{/schema}}| -{{/each}} \ No newline at end of file diff --git a/services/activity-spec/activity-spec-web/activity-spec-war/templates/security.hbs b/services/activity-spec/activity-spec-web/activity-spec-war/templates/security.hbs deleted file mode 100644 index 04f86e8380..0000000000 --- a/services/activity-spec/activity-spec-web/activity-spec-war/templates/security.hbs +++ /dev/null @@ -1,88 +0,0 @@ -{{#each securityDefinitions}} -### {{@key}} -{{#this}} -{{#ifeq type "oauth2"}} - - - - - -{{#if description}} - - - - -{{/if}} -{{#if authorizationUrl}} - - - - -{{/if}} -{{#if flow}} - - - - -{{/if}} -{{#if tokenUrl}} - - - - -{{/if}} -{{#if scopes}} - - -{{#each scopes}} - - - - -{{/each}} - -{{/if}} -
type{{type}}
description{{description}}
authorizationUrl{{authorizationUrl}}
flow{{flow}}
tokenUrl{{tokenUrl}}
scopes{{@key}}{{this}}
-{{/ifeq}} -{{#ifeq type "apiKey"}} - - - - - -{{#if description}} - - - - -{{/if}} -{{#if name}} - - - - -{{/if}} -{{#if in}} - - - - -{{/if}} -
type{{type}}
description{{description}}
name{{name}}
in{{in}}
-{{/ifeq}} -{{#ifeq type "basic"}} - - - - - -{{#if description}} - - - - -{{/if}} -
type{{type}}
description{{description}}
-{{/ifeq}} -{{/this}} -{{/each}} \ No newline at end of file diff --git a/services/activity-spec/activity-spec-web/activity-spec-war/templates/strapdown.html.hbs b/services/activity-spec/activity-spec-web/activity-spec-war/templates/strapdown.html.hbs deleted file mode 100644 index fe722ab6f1..0000000000 --- a/services/activity-spec/activity-spec-web/activity-spec-war/templates/strapdown.html.hbs +++ /dev/null @@ -1,11 +0,0 @@ - - -API Document - - - -{{>markdown}} - - - - \ No newline at end of file -- cgit 1.2.3-korg