X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fservicestub%2Fsrc%2Fmain%2Fjava%2Forg%2Foran%2Fhelloworld%2Frest%2FHelloWorldController.java;fp=test%2Fservicestub%2Fsrc%2Fmain%2Fjava%2Forg%2Foran%2Fhelloworld%2Frest%2FHelloWorldController.java;h=994e1513d64a29dec198b5a0b27457568457638e;hb=d30570e0aef589a471d12762b801f9354700c38c;hp=0000000000000000000000000000000000000000;hpb=931e03479a552777755d805972428f8691c5dc1c;p=nonrtric.git diff --git a/test/servicestub/src/main/java/org/oran/helloworld/rest/HelloWorldController.java b/test/servicestub/src/main/java/org/oran/helloworld/rest/HelloWorldController.java new file mode 100644 index 00000000..994e1513 --- /dev/null +++ b/test/servicestub/src/main/java/org/oran/helloworld/rest/HelloWorldController.java @@ -0,0 +1,38 @@ +/*- + * ========================LICENSE_START================================= + * O-RAN-SC + * %% + * Copyright (C) 2023 OpenInfra Foundation Europe. + * %% + * 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. + * ========================LICENSE_END=================================== + */ + +package org.oran.helloworld.rest; + +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +@RestController +@RequestMapping("/helloworld") +public class HelloWorldController { + + @RequestMapping("") + public String helloWorld() { + return "Hello World from service stub\n"; + } + @RequestMapping("/sme") + public String helloWorldSme() { + return "Hello World from SME\n"; + } +}