summaryrefslogtreecommitdiffstats
path: root/ms/sanity-test/sanity-test-app/src/main/yaml/sanitytest-api.yaml
blob: f08d1950cccd334b2f7722060a0fb286b4795ae7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
---
swagger: "2.0"
info:
  description: "Defines API interface for SDNC sanity tests. "
  version: "2108.0.1"
  title: "SANITYTEST-API"
consumes:
- "application/json"
- "application/xml"
produces:
- "application/json"
- "application/xml"
paths:
  /operations/SANITYTEST-API:service-configuration-operation/:
    post:
      tags:
      - "SANITYTEST-API"
      parameters:
      - in: "body"
        name: "sanitytest.api.Input.body-param"
        required: false
        schema:
          properties:
            input:
              $ref: "#/definitions/sanitytest.api.serviceconfigurationoperation.Input"
      responses:
        400:
          description: "Internal error"
        200:
          description: "Correct response"
          schema:
            $ref: "#/definitions/sanitytest.api.ServiceConfigurationOperation"
        201:
          description: "No response"
definitions:
  sanitytest.api.TestNameEnumeration:
    type: "string"
    enum:
      - "EIPAMAdaptor"
      - "AAI"
      - "POLICY"
  sanitytest.api.ResultEnumeration:
    type: "string"
    enum:
      - "Success"
      - "Failure"
  sanitytest.api.serviceconfigurationoperation.Input:
    type: "object"
    properties:
      request-information:
        $ref: "#/definitions/sanitytest.api.RequestInformation"
  sanitytest.api.RequestInformation:
    type: "object"
    properties:
      test-list:
        type: "array"
        items:
          $ref: "#/definitions/sanitytest.api.TestListItem"
  sanitytest.api.TestListItem:
    type: "object"
    properties:
      test-number:
        type: "integer"
        format: "int16"
      test-name:
        $ref: "#/definitions/sanitytest.api.TestNameEnumeration"
      test-data:
        type: "array"
        items:
          $ref: "#/definitions/sanitytest.api.TestDataItem"
  sanitytest.api.TestDataItem:
    type: "object"
    properties:
      data-name:
        type: "string"
      data-value:
        type: "string"
  sanitytest.api.ServiceConfigurationOperation:
    type: "object"
    properties:
      output:
        $ref: "#/definitions/sanitytest.api.ResponseFields"
  sanitytest.api.ResponseFields:
    type: "object"
    properties:
      response-information: 
        type: "array"
        items:
          $ref: "#/definitions/sanitytest.api.ResponseField"
  sanitytest.api.ResponseField:
    type: "object"
    properties:
      response-test-number:
        type: "integer"
        format: "int16"
      response-test-name:
        $ref: "#/definitions/sanitytest.api.TestNameEnumeration"
      start-time:
        type: "string"
      end-time:
        type: "string"
      elapsed-time:
        type: "string"
      result:
        $ref: "#/definitions/sanitytest.api.ResultEnumeration"
      error-message:
        type: "string"