Uploaded image for project: 'Policy Framework'
  1. Policy Framework
  2. POLICY-16

correct problems introduced by swagger addition to pdp-d

    XMLWordPrintable

    Details

      Description

      The incorporation of swagger into source code base for the "/test" interface is faulty:
      1.  eclipse shows project errors associated with plugin usage.
      2.  the actual documentation for the "/test" server within policy-persistence does not produce API documentation. 
      3.   only covers swagger spec for "/test".

      4. it generates a swagger spec under drools-pdp/target and not packaged in any way.

      The changes here correct the previous defects, and makes the solution generic for any API supporting in the PDP-D.

      Issues:

      Plugin execution not covered by lifecycle configuration: com.github.kongchen:swagger-maven-plugin:3.1.4:generate (execution: default, phase: compile)          pom.xml              /org.openecomp.policy.drools-pdp.policy-core line 27   Maven Project Build Lifecycle Mapping Problem

      Plugin execution not covered by lifecycle configuration: com.github.kongchen:swagger-maven-plugin:3.1.4:generate (execution: default, phase: compile)          pom.xml              /org.openecomp.policy.drools-pdp.policy-endpoints     line 26   Maven Project Build Lifecycle Mapping Problem

      Plugin execution not covered by lifecycle configuration: com.github.kongchen:swagger-maven-plugin:3.1.4:generate (execution: default, phase: compile)          pom.xml              /org.openecomp.policy.drools-pdp.policy-healthcheck line 26   Maven Project Build Lifecycle Mapping Problem

      Plugin execution not covered by lifecycle configuration: com.github.kongchen:swagger-maven-plugin:3.1.4:generate (execution: default, phase: compile)          pom.xml              /org.openecomp.policy.drools-pdp.policy-management              line 26   Maven Project Build Lifecycle Mapping Problem

      Plugin execution not covered by lifecycle configuration: com.github.kongchen:swagger-maven-plugin:3.1.4:generate (execution: default, phase: compile)          pom.xml              /org.openecomp.policy.drools-pdp.policy-persistence  line 26   Maven Project Build Lifecycle Mapping Problem

      Plugin execution not covered by lifecycle configuration: com.github.kongchen:swagger-maven-plugin:3.1.4:generate (execution: default, phase: compile)          pom.xml              /org.openecomp.policy.drools-pdp.policy-utils line 28   Maven Project Build Lifecycle Mapping Problem

      cat cat droosl-pdp/target/swagger/integrityMonitor/swagger.json

      {

        "swagger" : "2.0",

        "info" : {

          "version" : "1.0.0",

          "title" : "Drools PDP"

        }

      }

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            jhh Jorge Hernandez
            Reporter:
            jhh Jorge Hernandez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: