X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=sample-services%2Fhello-world-sme-invoker%2FREADME.md;fp=sample-services%2Fhello-world-sme-invoker%2FREADME.md;h=95822a717280ade0674c9afe576ba8c65d663b24;hb=dafdbe531634823882261f2ce8c9cf334b579b52;hp=0000000000000000000000000000000000000000;hpb=53ebb953e0e18e695fd0e807c2f1282ef54ceeee;p=nonrtric.git diff --git a/sample-services/hello-world-sme-invoker/README.md b/sample-services/hello-world-sme-invoker/README.md new file mode 100644 index 00000000..95822a71 --- /dev/null +++ b/sample-services/hello-world-sme-invoker/README.md @@ -0,0 +1,37 @@ +# Hello World Sme Invoker Service + +This repository contains a Spring Boot application serving few Hello World SME endpoints. +The application can be built and run using the provided script - ``hello-world-sme-invoker-build-start.sh``. + +## Prerequisites + +- Docker installed on your machine. + +## Building and Running the Application +Run the script: + +```bash + ./hello-world-sme-invoker-build-start.sh +``` + +The script will build a Docker image and run a container with the Hello World SME service. After the container starts, +wait for a few seconds to ensure the Spring Boot application is fully initialized. Next, it will make an HTTP request to the +Hello World SME endpoint and display the response: + +```bash + response=$(curl -s http://localhost:8080/helloworld/v1/sme) + echo "Response from the Hello World SME endpoint:" + echo "$response" +``` + +To stop and remove the Docker container: + +```bash + docker stop hello-world-sme-invoker + docker rm hello-world-sme-invoker +``` + +## Additional Information + +- The Hello World SME endpoint is available at http://localhost:8080/helloworld/v1/sme. +