Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
MEC - Multi-access Edge Computing
MEC Application Support API and MEC Service Management API
Commits
241380e2
Commit
241380e2
authored
Jan 11, 2019
by
Walter Featherstone
Browse files
Bug 83 OpenAPI examples and documentation mismatch
Signed-off-by:
featherstone
<
walter.featherstone@viavisolutions.com
>
parent
1f01c74f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Mp1.json
View file @
241380e2
...
...
@@ -175,7 +175,7 @@
}
},
"examples"
:
{
"application/json"
:
{
"application/json"
:
[
{
"DnsRule"
:
{
"dnsRuleId"
:
"DnsRule1"
,
"domainName"
:
"www.example.com"
,
...
...
@@ -184,7 +184,7 @@
"ttl"
:
300
,
"state"
:
"ACTIVE"
}
}
}
]
}
},
"400"
:
{
...
...
@@ -652,7 +652,7 @@
}
},
"examples"
:
{
"application/json"
:
{
"application/json"
:
[
{
"TrafficRule"
:
{
"trafficRuleId"
:
"TrafficRule123"
,
"serName"
:
"ExampleService"
,
...
...
@@ -677,7 +677,7 @@
},
"state"
:
"ACTIVE"
}
}
}
]
}
},
"400"
:
{
...
...
@@ -946,7 +946,7 @@
}
},
"examples"
:
{
"application/json"
:
{
"application/json"
:
[
{
"ServiceInfo"
:
{
"serInstanceId"
:
"ServiceInstance123"
,
"serName"
:
"ExampleService"
,
...
...
@@ -986,7 +986,7 @@
},
"serializer"
:
"JSON"
}
}
}
]
}
},
"400"
:
{
...
...
Mp1.yaml
View file @
241380e2
...
...
@@ -139,13 +139,13 @@ paths:
$ref
:
'
#/definitions/DnsRule'
examples
:
application/json
:
DnsRule
:
dnsRuleId
:
DnsRule1
domainName
:
www.example.com
ipAddressType
:
IP_V4
ipAddress
:
146.241.7.3
ttl
:
300
state
:
ACTIVE
-
DnsRule
:
dnsRuleId
:
DnsRule1
domainName
:
www.example.com
ipAddressType
:
IP_V4
ipAddress
:
146.241.7.3
ttl
:
300
state
:
ACTIVE
'
400'
:
description
:
Bad Request
schema
:
...
...
@@ -439,24 +439,24 @@ paths:
$ref
:
'
#/definitions/TrafficRule'
examples
:
application/json
:
TrafficRule
:
trafficRuleId
:
TrafficRule123
serName
:
ExampleService
filterType
:
FLOW
priority
:
1
trafficFilter
:
srcAddress
:
-
192.168.2.0/24
-
192.168.3.0/24
dstAddress
:
-
192.127.4.100/32
dstPort
:
-
80
action
:
FORWARD_DECAPSULATED
dstInterface
:
interfaceType
:
IP
dstIpAddress
:
20.1.1.1
state
:
ACTIVE
-
TrafficRule
:
trafficRuleId
:
TrafficRule123
serName
:
ExampleService
filterType
:
FLOW
priority
:
1
trafficFilter
:
srcAddress
:
-
192.168.2.0/24
-
192.168.3.0/24
dstAddress
:
-
192.127.4.100/32
dstPort
:
-
80
action
:
FORWARD_DECAPSULATED
dstInterface
:
interfaceType
:
IP
dstIpAddress
:
20.1.1.1
state
:
ACTIVE
'
400'
:
description
:
Bad Request
schema
:
...
...
@@ -627,35 +627,35 @@ paths:
$ref
:
'
#/definitions/ServiceInfo'
examples
:
application/json
:
ServiceInfo
:
serInstanceId
:
ServiceInstance123
serName
:
ExampleService
serCategory
:
href
:
catItem1
id
:
id12345
name
:
RNI
version
:
version1
version
:
ServiceVersion1
state
:
ACTIVE
transportId
:
Rest1
transportInfo
:
id
:
TransId12345
name
:
REST
description
:
REST API
type
:
JSON
protocol
:
HTTP
version
:
'
2.0'
endpoint
:
uris
:
-
/meMp1/service/EntryPoint
addresses
:
-
host
:
192.0.2.0
port
:
'
8080'
security
:
oAuth2Info
:
grantTypes
:
OAUTH2_CLIENT_CREDENTIALS
tokenEndpoint
:
/meMp1/security/TokenEndPoint
serializer
:
JSON
-
ServiceInfo
:
serInstanceId
:
ServiceInstance123
serName
:
ExampleService
serCategory
:
href
:
catItem1
id
:
id12345
name
:
RNI
version
:
version1
version
:
ServiceVersion1
state
:
ACTIVE
transportId
:
Rest1
transportInfo
:
id
:
TransId12345
name
:
REST
description
:
REST API
type
:
JSON
protocol
:
HTTP
version
:
'
2.0'
endpoint
:
uris
:
-
/meMp1/service/EntryPoint
addresses
:
-
host
:
192.0.2.0
port
:
'
8080'
security
:
oAuth2Info
:
grantTypes
:
OAUTH2_CLIENT_CREDENTIALS
tokenEndpoint
:
/meMp1/security/TokenEndPoint
serializer
:
JSON
'
400'
:
description
:
Bad Request
schema
:
...
...
paths/ApplicationsDnsRules.GET.yaml
View file @
241380e2
...
...
@@ -15,13 +15,13 @@ responses:
$ref
:
'
#/definitions/DnsRule'
examples
:
application/json
:
DnsRule
:
dnsRuleId
:
DnsRule1
domainName
:
www.example.com
ipAddressType
:
IP_V4
ipAddress
:
146.241.7.3
ttl
:
300
state
:
ACTIVE
-
DnsRule
:
dnsRuleId
:
DnsRule1
domainName
:
www.example.com
ipAddressType
:
IP_V4
ipAddress
:
146.241.7.3
ttl
:
300
state
:
ACTIVE
400
:
description
:
Bad Request
schema
:
...
...
paths/ApplicationsTrafficRule.GET.yaml
View file @
241380e2
...
...
@@ -13,20 +13,20 @@ responses:
$ref
:
'
#/definitions/TrafficRule'
examples
:
application/json
:
TrafficRule
:
trafficRuleId
:
TrafficRule123
serName
:
ExampleService
filterType
:
FLOW
priority
:
1
trafficFilter
:
srcAddress
:
[
192.168.2.0/24
,
192.168.3.0/24
]
dstAddress
:
[
192.127.4.100/32
]
dstPort
:
[
80
]
action
:
FORWARD_DECAPSULATED
dstInterface
:
interfaceType
:
IP
dstIpAddress
:
20.1.1.1
state
:
ACTIVE
-
TrafficRule
:
trafficRuleId
:
TrafficRule123
serName
:
ExampleService
filterType
:
FLOW
priority
:
1
trafficFilter
:
srcAddress
:
[
192.168.2.0/24
,
192.168.3.0/24
]
dstAddress
:
[
192.127.4.100/32
]
dstPort
:
[
80
]
action
:
FORWARD_DECAPSULATED
dstInterface
:
interfaceType
:
IP
dstIpAddress
:
20.1.1.1
state
:
ACTIVE
400
:
description
:
Bad Request
schema
:
...
...
paths/Services.GET.yaml
View file @
241380e2
...
...
@@ -19,35 +19,35 @@ responses:
$ref
:
'
#/definitions/ServiceInfo'
examples
:
application/json
:
ServiceInfo
:
serInstanceId
:
ServiceInstance123
serName
:
ExampleService
serCategory
:
href
:
catItem1
id
:
id12345
name
:
RNI
version
:
version1
version
:
ServiceVersion1
state
:
ACTIVE
transportId
:
Rest1
transportInfo
:
id
:
TransId12345
name
:
REST
description
:
REST API
type
:
JSON
protocol
:
HTTP
version
:
'
2.0'
endpoint
:
uris
:
-
/meMp1/service/EntryPoint
addresses
:
-
host
:
'
192.0.2.0'
port
:
'
8080'
security
:
oAuth2Info
:
grantTypes
:
OAUTH2_CLIENT_CREDENTIALS
tokenEndpoint
:
/meMp1/security/TokenEndPoint
serializer
:
JSON
-
ServiceInfo
:
serInstanceId
:
ServiceInstance123
serName
:
ExampleService
serCategory
:
href
:
catItem1
id
:
id12345
name
:
RNI
version
:
version1
version
:
ServiceVersion1
state
:
ACTIVE
transportId
:
Rest1
transportInfo
:
id
:
TransId12345
name
:
REST
description
:
REST API
type
:
JSON
protocol
:
HTTP
version
:
'
2.0'
endpoint
:
uris
:
-
/meMp1/service/EntryPoint
addresses
:
-
host
:
'
192.0.2.0'
port
:
'
8080'
security
:
oAuth2Info
:
grantTypes
:
OAUTH2_CLIENT_CREDENTIALS
tokenEndpoint
:
/meMp1/security/TokenEndPoint
serializer
:
JSON
400
:
description
:
Bad Request
schema
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment