You can use this as 'RESTful Mock Example' http rest mock server samples. This contain both GET and POST methods. And sample expected rests which server can response.
Download the sample and bulid the arificat -Clone and builf the war file. (using mavn build command)
Use webserver (example: tomcat) to deploy the artifact (tomcatmocks.war)
Send the : POST/GET as needs (consider below example)
charge:
Expect: http://localhost:8080/tomcatmocks/rest/payment/{msisdn}/transactions/amount
Example:
http://localhost:8080/tomcatmocks/rest/payment/tel%3A%2B9xxxxx16080/transactions/amount
thread sleep fo the as per the taxamout field
list charge
Expect: http://localhost:8080/tomcatmocks/rest/payment/{msisdn}/transactions
Example:
http://localhost:8080/tomcatmocks/rest/payment/tel%3A%2B9xxxxx16080/transactions
or
http://localhost:8080/tomcatmocks/rest/payment/tel%3A%2B9xxxxx16080/transactions?sleeptime=1000
sleeptime - optional
[sleeptime=1000 thread is sleep for 1000 s]
===================================================================
send sms request
Expect: http://localhost:8080/tomcatmocks/rest/smsmessaging/outbound/{shortcode}/requests
Example:
http://localhost:8080/tomcatmocks/rest/smsmessaging/outbound/tel%3A%2Bxxx11/requests
thread sleep fo the as per the senderName field