From f9c5e6c865640ef07db8406baa95a5fafceb109a Mon Sep 17 00:00:00 2001 From: "puthuparambil.aditya" Date: Thu, 12 May 2022 16:31:00 +0100 Subject: PoC Contract Stubs NCMP Rest Endpoints Stubs defined for cmHandleSearch and passthrough operational Issue-ID: CPS-919 Signed-off-by: puthuparambil.aditya Change-Id: I4fd7bee8fa70ed237f74c721068ffa39817d5c7a --- .../src/main/resources/stubs/cmHandlesSearch.json | 10 +++++ .../stubs/passthrough-operational-example.json | 45 ++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 cps-ncmp-rest-stub/src/main/resources/stubs/cmHandlesSearch.json create mode 100644 cps-ncmp-rest-stub/src/main/resources/stubs/passthrough-operational-example.json (limited to 'cps-ncmp-rest-stub/src/main/resources/stubs') 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 000000000..409d56fa4 --- /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 000000000..1838b47ca --- /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 -- cgit 1.2.3-korg