In addition, request messages can be fed to the mrstub and the response messages can be read by polling.
## Ports and certificates
In addition, request messages can be fed to the mrstub and the response messages can be read by polling.
## Ports and certificates
```URI and parameters (GET): /send-request?operation=<GET|PUT|POST|DELETE>&url=<url>```<br><br>
```response: <correlation-id> (http 200) or 400 for parameter error or 500 for other errors```
```URI and parameters (GET): /send-request?operation=<GET|PUT|POST|DELETE>&url=<url>```<br><br>
```response: <correlation-id> (http 200) or 400 for parameter error or 500 for other errors```
>Metrics - counters<br>
There are a number of counters that can be read to monitor the message processing. Do a http GET on any of the current counters and an integer value will be returned with http response code 200.
```/counter/requests_submitted``` - The total number of requests sent from the application<br>
>Metrics - counters<br>
There are a number of counters that can be read to monitor the message processing. Do a http GET on any of the current counters and an integer value will be returned with http response code 200.
```/counter/requests_submitted``` - The total number of requests sent from the application<br>
-```/counter/requests_fetched``` - The total number of requests picked up by the agent<br>
-```/counter/responses_submitted``` - The total number of responses written by the agent<br>
+```/counter/requests_fetched``` - The total number of requests picked up by the a1pms<br>
+```/counter/responses_submitted``` - The total number of responses written by the a1pms<br>
file "generate_cert_and_key.sh" is a shell script to generate certificate and key
file "pass" stores the password when you run the shell script
file "generate_cert_and_key.sh" is a shell script to generate certificate and key
file "pass" stores the password when you run the shell script
```docker run --rm -it -p 3905:3905 -p 3906:3906 mrstub```
It will listen to http 3905 port and https 3906 port(using default certificates) at the same time.
```docker run --rm -it -p 3905:3905 -p 3906:3906 mrstub```
It will listen to http 3905 port and https 3906 port(using default certificates) at the same time.
In 'docker run', use field:<br>
>```-v "$PWD/certificate:/usr/src/app/cert"```<br>
In 'docker run', use field:<br>
>```-v "$PWD/certificate:/usr/src/app/cert"```<br>