Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Hello World SME Invoker Service
[nonrtric.git]
/
sample-services
/
hello-world
/
README.md
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
b4aa791
..
1dd8abc
100644
(file)
--- a/
test/servicestub/README.md
+++ b/
sample-services/hello-world/README.md
@@
-1,7
+1,7
@@
-# Hello World Service
Stub
\r
+# Hello World Service
\r
\r
This repository contains a Spring Boot application serving a Hello World endpoint. The application can be built and
\r
\r
This repository contains a Spring Boot application serving a Hello World endpoint. The application can be built and
\r
-run using the provided script - ``
service-stub
-build-start.sh``.
\r
+run using the provided script - ``
hello-world
-build-start.sh``.
\r
\r
## Prerequisites
\r
\r
\r
## Prerequisites
\r
\r
@@
-11,7
+11,7
@@
run using the provided script - ``service-stub-build-start.sh``.
Run the script:
\r
\r
```bash
\r
Run the script:
\r
\r
```bash
\r
- ./
service-stub
-build-start.sh
\r
+ ./
hello-world
-build-start.sh
\r
```
\r
\r
The script will build a Docker image and run a container with the Hello World service. After the container starts,
\r
```
\r
\r
The script will build a Docker image and run a container with the Hello World service. After the container starts,
\r
@@
-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:
\r
\r
```bash
\r
Hello World endpoint and display the response:
\r
\r
```bash
\r
- response=$(curl -s http://localhost:8080/helloworld/v1
/sme
)
\r
- echo "Response from the Hello World
SME
endpoint:"
\r
+ response=$(curl -s http://localhost:8080/helloworld/v1)
\r
+ echo "Response from the Hello World endpoint:"
\r
echo "$response"
\r
```
\r
\r
To stop and remove the Docker container:
\r
\r
```bash
\r
echo "$response"
\r
```
\r
\r
To stop and remove the Docker container:
\r
\r
```bash
\r
- docker stop
service-stub-hello-world-test
\r
- docker rm
service-stub-hello-world-test
\r
+ docker stop
hello-world
\r
+ docker rm
hello-world
\r
```
\r
\r
## Additional Information
\r
\r
```
\r
\r
## Additional Information
\r
\r
-- The Hello World
SME endpoint is available at http://localhost:8080/helloworld/v1/sme
.
\r
+- The Hello World
endpoint is available at http://localhost:8080/helloworld/v1
.
\r
\r
\r