summaryrefslogtreecommitdiffstats
path: root/cps-ncmp-rest-stub/src/main/resources
diff options
context:
space:
mode:
Diffstat (limited to 'cps-ncmp-rest-stub/src/main/resources')
-rw-r--r--cps-ncmp-rest-stub/src/main/resources/application.yml39
-rw-r--r--cps-ncmp-rest-stub/src/main/resources/stubs/cmHandlesSearch.json10
-rw-r--r--cps-ncmp-rest-stub/src/main/resources/stubs/passthrough-operational-example.json45
3 files changed, 94 insertions, 0 deletions
diff --git a/cps-ncmp-rest-stub/src/main/resources/application.yml b/cps-ncmp-rest-stub/src/main/resources/application.yml
new file mode 100644
index 0000000000..9fbd359655
--- /dev/null
+++ b/cps-ncmp-rest-stub/src/main/resources/application.yml
@@ -0,0 +1,39 @@
+# ============LICENSE_START=======================================================
+# Copyright (C) 2022 Bell Canada
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+server:
+ port: 8091
+
+rest:
+ api:
+ ncmp-stub-base-path: /ncmp
+
+spring:
+ main:
+ banner-mode: "off"
+ application:
+ name: "cps-ncmp-rest-stub"
+
+logging:
+ level:
+ org:
+ springframework: INFO
+ onap:
+ cps: INFO
+
+stub:
+ path: "/stubs/" \ No newline at end of file
diff --git a/cps-ncmp-rest-stub/src/main/resources/stubs/cmHandlesSearch.json b/cps-ncmp-rest-stub/src/main/resources/stubs/cmHandlesSearch.json
new file mode 100644
index 0000000000..409d56fa44
--- /dev/null
+++ b/cps-ncmp-rest-stub/src/main/resources/stubs/cmHandlesSearch.json
@@ -0,0 +1,10 @@
+{
+ "cmHandles": [
+ {
+ "cmHandleId": "stub-cm-handle-id"
+ },
+ {
+ "cmHandleId": "stub-cm-handle-id2"
+ }
+ ]
+} \ No newline at end of file
diff --git a/cps-ncmp-rest-stub/src/main/resources/stubs/passthrough-operational-example.json b/cps-ncmp-rest-stub/src/main/resources/stubs/passthrough-operational-example.json
new file mode 100644
index 0000000000..1838b47ca9
--- /dev/null
+++ b/cps-ncmp-rest-stub/src/main/resources/stubs/passthrough-operational-example.json
@@ -0,0 +1,45 @@
+{
+ "stores:bookstore": {
+ "categories": [
+ {
+ "code": "02",
+ "books": [
+ {
+ "title": "A Horror book",
+ "price": "2000",
+ "pub_year": 2003,
+ "lang": "English",
+ "authors": [
+ "Joe"
+ ]
+ },
+ {
+ "title": "Another Horror Book",
+ "price": "2000",
+ "pub_year": 2003,
+ "lang": "English",
+ "authors": [
+ "Joe"
+ ]
+ }
+ ],
+ "name": "Horror"
+ },
+ {
+ "code": "100",
+ "books": [
+ {
+ "title": "A Cook book",
+ "price": "2011",
+ "pub_year": 2019,
+ "lang": "English",
+ "authors": [
+ "Rahul"
+ ]
+ }
+ ],
+ "name": "Cooking Books"
+ }
+ ]
+ }
+} \ No newline at end of file