This commit is contained in:
craig-osterhout 2022-11-08 14:33:15 -08:00
parent 4b927b0e64
commit c62436fd18
No known key found for this signature in database
GPG Key ID: 497A5E49261C73B5
1 changed files with 2 additions and 2 deletions

View File

@ -26,10 +26,10 @@ $ docker run node-docker
When you run this command, youll notice that you were not returned to the command prompt. This is because our application is a REST server and will run in a loop waiting for incoming requests without returning control back to the OS until we stop the container.
Lets open a new terminal then make a GET request to the server using the curl command.
Lets open a new terminal then make a POST request to the server using the curl command.
```console
$ curl --request GET \
$ curl --request POST \
--url http://localhost:8000/test \
--header 'content-type: application/json' \
--data '{"msg": "testing"}'