Merge "catalog module for onap-dublin cli product"
[cli.git] / products / onap-dublin / features / aai / src / main / resources / open-cli-schema / business / service-type / service-type-create-schema-dublin.yaml
1 # Copyright © Intel Corporation 2019
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 open_cli_schema_version: 1.0
16 name: service-type-create
17 description: Add a service type in Onap
18
19 info:
20   product: onap-dublin
21   service: aai
22   author: ONAP CLI Team onap-discuss@lists.onap.org
23 parameters:
24   - name: service-type
25     description: Onap service type
26     type: string
27     short_option: x
28     long_option: service-type
29     is_optional: false
30   - name: service-type-id
31     description: Onap service type uuid
32     type: uuid
33     short_option: y
34     long_option: service-type-id
35     is_optional: true
36
37 http:
38   service:
39     auth: basic
40     mode: direct
41   request:
42     uri: /aai/v13/service-design-and-creation/services/service/${service-type-id}
43     method: PUT
44     body: '{"service-description": "${service-type}", "service-id": "${service-type-id}"}'
45   success_codes:
46     - 201
47   sample_response:
48     body: ''