X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=sample-services%2Fhello-world%2FREADME.md;fp=test%2Fservicestub%2FREADME.md;h=1dd8abce0a793b76fcfc2790aeb678f4cb97c73d;hb=dafdbe531634823882261f2ce8c9cf334b579b52;hp=b4aa791b83f6c10a706a4f2d39da03da03523e63;hpb=53ebb953e0e18e695fd0e807c2f1282ef54ceeee;p=nonrtric.git diff --git a/test/servicestub/README.md b/sample-services/hello-world/README.md similarity index 59% rename from test/servicestub/README.md rename to sample-services/hello-world/README.md index b4aa791b..1dd8abce 100644 --- a/test/servicestub/README.md +++ b/sample-services/hello-world/README.md @@ -1,7 +1,7 @@ -# Hello World Service Stub +# Hello World Service This repository contains a Spring Boot application serving a Hello World endpoint. The application can be built and -run using the provided script - ``service-stub-build-start.sh``. +run using the provided script - ``hello-world-build-start.sh``. ## Prerequisites @@ -11,7 +11,7 @@ run using the provided script - ``service-stub-build-start.sh``. Run the script: ```bash - ./service-stub-build-start.sh + ./hello-world-build-start.sh ``` The script will build a Docker image and run a container with the Hello World service. After the container starts, @@ -19,19 +19,19 @@ wait for a few seconds to ensure the Spring Boot application is fully initialize Hello World endpoint and display the response: ```bash - response=$(curl -s http://localhost:8080/helloworld/v1/sme) - echo "Response from the Hello World SME endpoint:" + response=$(curl -s http://localhost:8080/helloworld/v1) + echo "Response from the Hello World endpoint:" echo "$response" ``` To stop and remove the Docker container: ```bash - docker stop service-stub-hello-world-test - docker rm service-stub-hello-world-test + docker stop hello-world + docker rm hello-world ``` ## Additional Information -- The Hello World SME endpoint is available at http://localhost:8080/helloworld/v1/sme. +- The Hello World endpoint is available at http://localhost:8080/helloworld/v1.