From 72d882f65031518e9d1b1a6d6e53c7d42ab8495f Mon Sep 17 00:00:00 2001 From: liamfallon Date: Wed, 30 Jun 2021 19:46:09 +0100 Subject: Restore swagger generation in CLAMP THis patch restores the Swagger generation in CLAMP. It changes the target directory for the swagger generation to be the target directory rather than storing the generated Swagger files in the source repository. The reason for this is that it avolds the swagger.json, the swagger.html, and the swagger.pdf files being generated each time a build is done and being checked in multiple times. The swagger files will be produced as an artifact from the build in a later review when all the swagger documentation for CLAMP is consolidated. Issue-ID: POLICY-3209 Change-Id: I6ccb446d01509232bbd4230b76bd7950858e1437 Signed-off-by: liamfallon --- .../main/resources/META-INF/resources/swagger.html | 4631 -------------------- .../org/onap/policy/clamp/clds/it/HttpsItCase.java | 9 +- 2 files changed, 3 insertions(+), 4637 deletions(-) delete mode 100644 runtime/src/main/resources/META-INF/resources/swagger.html (limited to 'runtime/src') diff --git a/runtime/src/main/resources/META-INF/resources/swagger.html b/runtime/src/main/resources/META-INF/resources/swagger.html deleted file mode 100644 index 20cdda7ad..000000000 --- a/runtime/src/main/resources/META-INF/resources/swagger.html +++ /dev/null @@ -1,4631 +0,0 @@ - - - - - - - -Clamp Rest API - - - - - -
-
-

1. Overview

-
-
-

1.1. Version information

-
-

Version : 6.1.2-SNAPSHOT

-
-
-
-

1.2. URI scheme

-
-

Host : localhost:40313
-BasePath : /restservices/clds/
-Schemes : HTTP

-
-
-
-
-
-

2. Paths

-
-
-

2.1. GET /v1/healthcheck

-
-

2.1.1. Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

Output type

CldsHealthCheck

-
-
-

2.1.2. Produces

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-
-

2.2. GET /v1/user/getUser

-
-

2.2.1. Responses

- ---- - - - - - - - - - - - - -
HTTP CodeSchema

200

No Content

-
-
-

2.2.2. Produces

-
-
    -
  • -

    text/plain

    -
  • -
-
-
-
-
-

2.3. GET /v2/clampInformation

-
-

2.3.1. Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

Output type

ClampInformation

-
-
-

2.3.2. Produces

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-
-

2.4. GET /v2/dictionary

-
-

2.4.1. Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

Output type

Dictionary

-
-
-

2.4.2. Produces

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-
-

2.5. PUT /v2/dictionary

-
-

2.5.1. Parameters

- ----- - - - - - - - - - - - - - - -
TypeNameSchema

Body

body
-required

Dictionary

-
-
-

2.5.2. Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

Output type

Dictionary

-
-
-

2.5.3. Consumes

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-

2.5.4. Produces

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-
-

2.6. GET /v2/dictionary/secondary/names

-
-

2.6.1. Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

Output type

< string > array

-
-
-

2.6.2. Produces

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-
-

2.7. GET /v2/dictionary/{dictionaryName}

-
-

2.7.1. Parameters

- ----- - - - - - - - - - - - - - - -
TypeNameSchema

Path

dictionaryName
-required

string

-
-
-

2.7.2. Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

Output type

Dictionary

-
-
-

2.7.3. Produces

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-
-

2.8. PUT /v2/dictionary/{name}

-
-

2.8.1. Parameters

- ----- - - - - - - - - - - - - - - - - - - - -
TypeNameSchema

Path

name
-required

string

Body

body
-required

Dictionary

-
-
-

2.8.2. Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

Output type

Dictionary

-
-
-

2.8.3. Consumes

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-

2.8.4. Produces

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-
-

2.9. DELETE /v2/dictionary/{name}

-
-

2.9.1. Parameters

- ----- - - - - - - - - - - - - - - -
TypeNameSchema

Path

name
-required

string

-
-
-

2.9.2. Responses

- ---- - - - - - - - - - - - - -
HTTP CodeSchema

200

No Content

-
-
-

2.9.3. Produces

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-
-

2.10. DELETE /v2/dictionary/{name}/elements/{shortName}

-
-

2.10.1. Parameters

- ----- - - - - - - - - - - - - - - - - - - - -
TypeNameSchema

Path

name
-required

string

Path

shortName
-required

string

-
-
-

2.10.2. Responses

- ---- - - - - - - - - - - - - -
HTTP CodeSchema

200

No Content

-
-
-

2.10.3. Produces

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-
-

2.11. PUT /v2/loop/addOperationaPolicy/{loopName}/policyModel/{policyType}/{policyVersion}

-
-

2.11.1. Parameters

- ----- - - - - - - - - - - - - - - - - - - - - - - - - -
TypeNameSchema

Path

loopName
-required

string

Path

policyType
-required

string

Path

policyVersion
-required

string

-
-
-

2.11.2. Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

Output type

Loop

-
-
-

2.11.3. Produces

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-
-

2.12. POST /v2/loop/create/{loopName}?templateName={templateName}

-
-

2.12.1. Parameters

- ----- - - - - - - - - - - - - - - - - - - - -
TypeNameSchema

Path

loopName
-required

string

Path

templateName
-required

string

-
-
-

2.12.2. Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

Output type

Loop

-
-
-

2.12.3. Consumes

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-

2.12.4. Produces

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-
-

2.13. PUT /v2/loop/delete/{loopName}

-
-

2.13.1. Parameters

- ----- - - - - - - - - - - - - - - -
TypeNameSchema

Path

loopName
-required

string

-
-
-

2.13.2. Responses

- ---- - - - - - - - - - - - - -
HTTP CodeSchema

200

No Content

-
-
-
-

2.14. PUT /v2/loop/deploy/{loopName}

-
-

2.14.1. Parameters

- ----- - - - - - - - - - - - - - - -
TypeNameSchema

Path

loopName
-required

string

-
-
-

2.14.2. Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

Output type

Loop

-
-
-

2.14.3. Produces

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-
-

2.15. GET /v2/loop/getAllNames

-
-

2.15.1. Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

Output type

< string > array

-
-
-

2.15.2. Produces

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-
-

2.16. GET /v2/loop/getstatus/{loopName}

-
-

2.16.1. Parameters

- ----- - - - - - - - - - - - - - - -
TypeNameSchema

Path

loopName
-required

string

-
-
-

2.16.2. Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

Output type

Loop

-
-
-

2.16.3. Produces

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-
-

2.17. PUT /v2/loop/refreshMicroServicePolicyJsonSchema/{loopName}/{microServicePolicyName}

-
-

2.17.1. Parameters

- ----- - - - - - - - - - - - - - - - - - - - -
TypeNameSchema

Path

loopName
-required

string

Path

microServicePolicyName
-required

string

-
-
-

2.17.2. Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

Output type

Loop

-
-
-

2.17.3. Produces

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-
-

2.18. PUT /v2/loop/refreshOperationalPolicyJsonSchema/{loopName}/{operationalPolicyName}

-
-

2.18.1. Parameters

- ----- - - - - - - - - - - - - - - - - - - - -
TypeNameSchema

Path

loopName
-required

string

Path

operationalPolicyName
-required

string

-
-
-

2.18.2. Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

Output type

Loop

-
-
-

2.18.3. Produces

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-
-

2.19. PUT /v2/loop/removeOperationaPolicy/{loopName}/policyModel/{policyType}/{policyVersion}/{policyName}

-
-

2.19.1. Parameters

- ----- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TypeNameSchema

Path

loopName
-required

string

Path

policyName
-required

string

Path

policyType
-required

string

Path

policyVersion
-required

string

-
-
-

2.19.2. Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

Output type

Loop

-
-
-

2.19.3. Produces

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-
-

2.20. PUT /v2/loop/restart/{loopName}

-
-

2.20.1. Parameters

- ----- - - - - - - - - - - - - - - -
TypeNameSchema

Path

loopName
-required

string

-
-
-

2.20.2. Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

Output type

Loop

-
-
-

2.20.3. Produces

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-
-

2.21. PUT /v2/loop/stop/{loopName}

-
-

2.21.1. Parameters

- ----- - - - - - - - - - - - - - - -
TypeNameSchema

Path

loopName
-required

string

-
-
-

2.21.2. Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

Output type

Loop

-
-
-

2.21.3. Produces

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-
-

2.22. PUT /v2/loop/submit/{loopName}

-
-

2.22.1. Parameters

- ----- - - - - - - - - - - - - - - -
TypeNameSchema

Path

loopName
-required

string

-
-
-

2.22.2. Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

Output type

Loop

-
-
-

2.22.3. Produces

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-
-

2.23. PUT /v2/loop/undeploy/{loopName}

-
-

2.23.1. Parameters

- ----- - - - - - - - - - - - - - - -
TypeNameSchema

Path

loopName
-required

string

-
-
-

2.23.2. Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

Output type

Loop

-
-
-

2.23.3. Produces

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-
-

2.24. POST /v2/loop/updateGlobalProperties/{loopName}

-
-

2.24.1. Parameters

- ----- - - - - - - - - - - - - - - - - - - - -
TypeNameSchema

Path

loopName
-required

string

Body

body
-required

JsonObject

-
-
-

2.24.2. Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

Output type

Loop

-
-
-

2.24.3. Consumes

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-

2.24.4. Produces

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-
-

2.25. POST /v2/loop/updateMicroservicePolicy/{loopName}

-
-

2.25.1. Parameters

- ----- - - - - - - - - - - - - - - - - - - - -
TypeNameSchema

Path

loopName
-required

string

Body

body
-required

MicroServicePolicy

-
-
-

2.25.2. Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

Output type

MicroServicePolicy

-
-
-

2.25.3. Consumes

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-

2.25.4. Produces

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-
-

2.26. POST /v2/loop/updateOperationalPolicies/{loopName}

-
-

2.26.1. Parameters

- ----- - - - - - - - - - - - - - - - - - - - -
TypeNameSchema

Path

loopName
-required

string

Body

body
-required

JsonArray

-
-
-

2.26.2. Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

Output type

Loop

-
-
-

2.26.3. Consumes

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-

2.26.4. Produces

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-
-

2.27. GET /v2/loop/{loopName}

-
-

2.27.1. Parameters

- ----- - - - - - - - - - - - - - - -
TypeNameSchema

Path

loopName
-required

string

-
-
-

2.27.2. Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

Output type

Loop

-
-
-

2.27.3. Produces

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-
-

2.28. GET /v2/policies

-
-

2.28.1. Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

Output type

JsonObject

-
-
-

2.28.2. Produces

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-
-

2.29. PUT /v2/policies/pdpDeployment

-
-

2.29.1. Parameters

- ----- - - - - - - - - - - - - - - -
TypeNameSchema

Body

body
-required

JsonElement

-
-
-

2.29.2. Responses

- ---- - - - - - - - - - - - - -
HTTP CodeSchema

200

No Content

-
-
-

2.29.3. Consumes

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-
-

2.30. POST /v2/policies/policytype

-
-

2.30.1. Parameters

- ----- - - - - - - - - - - - - - - -
TypeNameSchema

Body

body
-required

string

-
-
-

2.30.2. Responses

- ---- - - - - - - - - - - - - -
HTTP CodeSchema

200

No Content

-
-
-

2.30.3. Consumes

-
-
    -
  • -

    plain/text

    -
  • -
-
-
-
-
-

2.31. POST /v2/policies/{policyModelType}/{policyModelVersion}/{policyName}/{policyVersion}

-
-

2.31.1. Parameters

- ----- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TypeNameSchema

Path

policyModelType
-required

string

Path

policyModelVersion
-required

string

Path

policyName
-required

string

Path

policyVersion
-required

string

Body

body
-required

JsonElement

-
-
-

2.31.2. Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

Output type

JsonObject

-
-
-

2.31.3. Consumes

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-

2.31.4. Produces

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-
-

2.32. DELETE /v2/policies/{policyModelType}/{policyModelVersion}/{policyName}/{policyVersion}

-
-

2.32.1. Parameters

- ----- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TypeNameSchema

Path

policyModelType
-required

string

Path

policyModelVersion
-required

string

Path

policyName
-required

string

Path

policyVersion
-required

string

-
-
-

2.32.2. Responses

- ---- - - - - - - - - - - - - -
HTTP CodeSchema

200

No Content

-
-
-
-

2.33. GET /v2/policyToscaModels

-
-

2.33.1. Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

Output type

PolicyModel

-
-
-

2.33.2. Produces

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-
-

2.34. GET /v2/policyToscaModels/yaml/{policyModelType}/{policyModelVersion}

-
-

2.34.1. Parameters

- ----- - - - - - - - - - - - - - - - - - - - -
TypeNameSchema

Path

policyModelType
-required

string

Path

policyModelVersion
-required

string

-
-
-

2.34.2. Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

Output type

string

-
-
-

2.34.3. Produces

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-
-

2.35. GET /v2/policyToscaModels/{policyModelType}/{policyModelVersion}

-
-

2.35.1. Parameters

- ----- - - - - - - - - - - - - - - - - - - - -
TypeNameSchema

Path

policyModelType
-required

string

Path

policyModelVersion
-required

string

-
-
-

2.35.2. Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

Output type

JsonObject

-
-
-

2.35.3. Produces

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-
-

2.36. GET /v2/templates

-
-

2.36.1. Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

Output type

LoopTemplate

-
-
-

2.36.2. Produces

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-
-

2.37. GET /v2/templates/names

-
-

2.37.1. Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

Output type

< string > array

-
-
-

2.37.2. Produces

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-
-

2.38. GET /v2/templates/{templateName}

-
-

2.38.1. Parameters

- ----- - - - - - - - - - - - - - - -
TypeNameSchema

Path

templateName
-required

string

-
-
-

2.38.2. Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

Output type

LoopTemplate

-
-
-

2.38.3. Produces

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-
-

2.39. POST /v2/toscaControlLoop/commissionToscaTemplate

-
-

2.39.1. Parameters

- ----- - - - - - - - - - - - - - - -
TypeNameSchema

Body

body
-required

string

-
-
-

2.39.2. Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

Output type

string

-
-
-

2.39.3. Consumes

-
-
    -
  • -

    plain/text

    -
  • -
-
-
-
-

2.39.4. Produces

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-
-

2.40. GET /v2/toscaControlLoop/getToscaTemplate

-
-

2.40.1. Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

Output type

string

-
-
-

2.40.2. Produces

-
-
    -
  • -

    application/json

    -
  • -
-
-
-
-
-
-
-

3. Definitions

-
-
-

3.1. ClampInformation

- ---- - - - - - - - - - - - - - - - - - - - - -
NameSchema

allPermissions
-optional

< string > array

cldsVersion
-optional

string

userName
-optional

string

-
-
-

3.2. CldsHealthCheck

- ---- - - - - - - - - - - - - - - - - - - - - -
NameSchema

description
-optional

string

healthCheckComponent
-optional

string

healthCheckStatus
-optional

string

-
-
-

3.3. Dictionary

- ---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameSchema

createdBy
-optional

string

createdDate
-optional

integer (int64)

dictionaryElements
-optional

< DictionaryElement > array

name
-optional

string

secondLevelDictionary
-optional

integer (int32)

subDictionaryType
-optional

string

updatedBy
-optional

string

updatedDate
-optional

integer (int64)

-
-
-

3.4. DictionaryElement

- ---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameSchema

createdBy
-optional

string

createdDate
-optional

integer (int64)

description
-optional

string

name
-optional

string

shortName
-optional

string

subDictionary
-optional

string

type
-optional

string

updatedBy
-optional

string

updatedDate
-optional

integer (int64)

usedByDictionaries
-optional

< Dictionary > array

-
-
-

3.5. ExternalComponent

- ---- - - - - - - - - - - - - - - - - -
NameSchema

componentName
-optional

string

state
-optional

ExternalComponentState

-
-
-

3.6. ExternalComponentState

- ---- - - - - - - - - - - - - - - - - - - - - -
NameSchema

description
-optional

string

level
-optional

integer (int32)

stateName
-optional

string

-
-
-

3.7. JsonArray

- ---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameSchema

asBigDecimal
-optional

number

asBigInteger
-optional

integer

asBoolean
-optional

boolean

asByte
-optional

string (byte)

asCharacter
-optional

string

asDouble
-optional

number (double)

asFloat
-optional

number (float)

asInt
-optional

integer (int32)

asJsonArray
-optional

JsonArray

asJsonNull
-optional

JsonNull

asJsonObject
-optional

JsonObject

asJsonPrimitive
-optional

JsonPrimitive

asLong
-optional

integer (int64)

asNumber
-optional

Number

asShort
-optional

integer (int32)

asString
-optional

string

jsonArray
-optional

boolean

jsonNull
-optional

boolean

jsonObject
-optional

boolean

jsonPrimitive
-optional

boolean

-
-
-

3.8. JsonElement

- ---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameSchema

asBigDecimal
-optional

number

asBigInteger
-optional

integer

asBoolean
-optional

boolean

asByte
-optional

string (byte)

asCharacter
-optional

string

asDouble
-optional

number (double)

asFloat
-optional

number (float)

asInt
-optional

integer (int32)

asJsonArray
-optional

JsonArray

asJsonNull
-optional

JsonNull

asJsonObject
-optional

JsonObject

asJsonPrimitive
-optional

JsonPrimitive

asLong
-optional

integer (int64)

asNumber
-optional

Number

asShort
-optional

integer (int32)

asString
-optional

string

jsonArray
-optional

boolean

jsonNull
-optional

boolean

jsonObject
-optional

boolean

jsonPrimitive
-optional

boolean

-
-
-

3.9. JsonNull

- ---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameSchema

asBigDecimal
-optional

number

asBigInteger
-optional

integer

asBoolean
-optional

boolean

asByte
-optional

string (byte)

asCharacter
-optional

string

asDouble
-optional

number (double)

asFloat
-optional

number (float)

asInt
-optional

integer (int32)

asJsonArray
-optional

JsonArray

asJsonNull
-optional

JsonNull

asJsonObject
-optional

JsonObject

asJsonPrimitive
-optional

JsonPrimitive

asLong
-optional

integer (int64)

asNumber
-optional

Number

asShort
-optional

integer (int32)

asString
-optional

string

jsonArray
-optional

boolean

jsonNull
-optional

boolean

jsonObject
-optional

boolean

jsonPrimitive
-optional

boolean

-
-
-

3.10. JsonObject

- ---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameSchema

asBigDecimal
-optional

number

asBigInteger
-optional

integer

asBoolean
-optional

boolean

asByte
-optional

string (byte)

asCharacter
-optional

string

asDouble
-optional

number (double)

asFloat
-optional

number (float)

asInt
-optional

integer (int32)

asJsonArray
-optional

JsonArray

asJsonNull
-optional

JsonNull

asJsonObject
-optional

JsonObject

asJsonPrimitive
-optional

JsonPrimitive

asLong
-optional

integer (int64)

asNumber
-optional

Number

asShort
-optional

integer (int32)

asString
-optional

string

jsonArray
-optional

boolean

jsonNull
-optional

boolean

jsonObject
-optional

boolean

jsonPrimitive
-optional

boolean

-
-
-

3.11. JsonPrimitive

- ---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameSchema

asBigDecimal
-optional

number

asBigInteger
-optional

integer

asBoolean
-optional

boolean

asByte
-optional

string (byte)

asCharacter
-optional

string

asDouble
-optional

number (double)

asFloat
-optional

number (float)

asInt
-optional

integer (int32)

asJsonArray
-optional

JsonArray

asJsonNull
-optional

JsonNull

asJsonObject
-optional

JsonObject

asJsonPrimitive
-optional

JsonPrimitive

asLong
-optional

integer (int64)

asNumber
-optional

Number

asShort
-optional

integer (int32)

asString
-optional

string

boolean
-optional

boolean

jsonArray
-optional

boolean

jsonNull
-optional

boolean

jsonObject
-optional

boolean

jsonPrimitive
-optional

boolean

number
-optional

boolean

string
-optional

boolean

-
-
-

3.12. Loop

- ---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameSchema

components
-optional

< string, ExternalComponent > map

createdBy
-optional

string

createdDate
-optional

integer (int64)

dcaeDeploymentId
-optional

string

dcaeDeploymentStatusUrl
-optional

string

globalPropertiesJson
-optional

JsonObject

lastComputedState
-optional

enum (DESIGN, SUBMITTED, DEPLOYED, RUNNING, STOPPED, IN_ERROR, WAITING)

loopLogs
-optional

< LoopLog > array

loopTemplate
-optional

LoopTemplate

microServicePolicies
-optional

< MicroServicePolicy > array

modelService
-optional

Service

name
-optional

string

operationalPolicies
-optional

< OperationalPolicy > array

updatedBy
-optional

string

updatedDate
-optional

integer (int64)

-
-
-

3.13. LoopElementModel

- ---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameSchema

blueprint
-optional

string

createdBy
-optional

string

createdDate
-optional

integer (int64)

dcaeBlueprintId
-optional

string

loopElementType
-optional

string

name
-optional

string

policyModels
-optional

< PolicyModel > array

shortName
-optional

string

updatedBy
-optional

string

updatedDate
-optional

integer (int64)

usedByLoopTemplates
-optional

< LoopTemplateLoopElementModel > array

-
-
-

3.14. LoopLog

- ---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameSchema

id
-optional

integer (int64)

logComponent
-optional

string

logInstant
-optional

integer (int64)

logType
-optional

enum (INFO, WARNING, ERROR)

loop
-optional

Loop

message
-optional

string

-
-
-

3.15. LoopTemplate

- ---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameSchema

allowedLoopType
-optional

enum (OPEN, CLOSED, HYBRID)

blueprint
-optional

string

createdBy
-optional

string

createdDate
-optional

integer (int64)

dcaeBlueprintId
-optional

string

loopElementModelsUsed
-optional

< LoopTemplateLoopElementModel > array

maximumInstancesAllowed
-optional

integer (int32)

modelService
-optional

Service

name
-optional

string

uniqueBlueprint
-optional

boolean

updatedBy
-optional

string

updatedDate
-optional

integer (int64)

-
-
-

3.16. LoopTemplateLoopElementModel

- ---- - - - - - - - - - - - - - - - - - - - - -
NameSchema

flowOrder
-optional

integer (int32)

loopElementModel
-optional

LoopElementModel

loopTemplate
-optional

LoopTemplate

-
-
-

3.17. MicroServicePolicy

- ---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameSchema

configurationsJson
-optional

JsonObject

context
-optional

string

createdBy
-optional

string

createdDate
-optional

integer (int64)

dcaeBlueprintId
-optional

string

dcaeDeploymentId
-optional

string

dcaeDeploymentStatusUrl
-optional

string

deviceTypeScope
-optional

string

jsonRepresentation
-optional

JsonObject

loopElementModel
-optional

LoopElementModel

name
-optional

string

pdpGroup
-optional

string

pdpSubgroup
-optional

string

policyModel
-optional

PolicyModel

shared
-optional

boolean

updatedBy
-optional

string

updatedDate
-optional

integer (int64)

usedByLoops
-optional

< Loop > array

-
-
-

3.18. Number

-
-

Type : object

-
-
-
-

3.19. OperationalPolicy

- ---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameSchema

configurationsJson
-optional

JsonObject

createdBy
-optional

string

createdDate
-optional

integer (int64)

jsonRepresentation
-optional

JsonObject

loop
-optional

Loop

loopElementModel
-optional

LoopElementModel

name
-optional

string

pdpGroup
-optional

string

pdpSubgroup
-optional

string

policyModel
-optional

PolicyModel

updatedBy
-optional

string

updatedDate
-optional

integer (int64)

-
-
-

3.20. PolicyModel

- ---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameSchema

createdBy
-optional

string

createdDate
-optional

integer (int64)

policyAcronym
-optional

string

policyModelTosca
-optional

string

policyModelType
-optional

string

policyPdpGroup
-optional

JsonObject

updatedBy
-optional

string

updatedDate
-optional

integer (int64)

usedByElementModels
-optional

< LoopElementModel > array

version
-optional

string

-
-
-

3.21. Service

- ---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameSchema

name
-optional

string

resourceDetails
-optional

JsonObject

serviceDetails
-optional

JsonObject

serviceUuid
-optional

string

version
-optional

string

-
-
-
-
- - - \ No newline at end of file diff --git a/runtime/src/test/java/org/onap/policy/clamp/clds/it/HttpsItCase.java b/runtime/src/test/java/org/onap/policy/clamp/clds/it/HttpsItCase.java index c68ee39dc..180c3094d 100644 --- a/runtime/src/test/java/org/onap/policy/clamp/clds/it/HttpsItCase.java +++ b/runtime/src/test/java/org/onap/policy/clamp/clds/it/HttpsItCase.java @@ -39,7 +39,6 @@ import org.apache.http.conn.ssl.SSLConnectionSocketFactory; import org.apache.http.conn.ssl.TrustStrategy; import org.apache.http.impl.client.CloseableHttpClient; import org.apache.http.impl.client.HttpClients; -import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Value; @@ -67,27 +66,25 @@ public class HttpsItCase { @Value("${server.http-to-https-redirection.port}") private String httpPort; - @Ignore @Test public void testDesignerIndex() throws Exception { ResponseEntity entity = - new RestTemplate().getForEntity("http://localhost:" + this.httpPort + "/swagger.html", + new RestTemplate().getForEntity("http://localhost:" + this.httpPort + "/restservices/clds/api-doc", String.class); assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.FOUND); ResponseEntity httpsEntity = getRestTemplate() - .getForEntity("https://localhost:" + this.httpsPort + "/swagger.html", String.class); + .getForEntity("https://localhost:" + this.httpsPort + "/restservices/clds/api-doc", String.class); assertThat(httpsEntity.getStatusCode()).isEqualTo(HttpStatus.OK); assertThat(httpsEntity.getBody()).contains("Clamp Rest API"); } - @Ignore @Test public void testSwaggerJson() throws Exception { ResponseEntity httpsEntity = getRestTemplate() .getForEntity("https://localhost:" + this.httpsPort + "/restservices/clds/api-doc", String.class); assertThat(httpsEntity.getStatusCode()).isEqualTo(HttpStatus.OK); assertThat(httpsEntity.getBody()).contains("swagger"); - FileUtils.writeStringToFile(new File("docs/swagger/swagger.json"), httpsEntity.getBody(), + FileUtils.writeStringToFile(new File("target/swagger/swagger.json"), httpsEntity.getBody(), Charset.defaultCharset()); } -- cgit 1.2.3-korg