Skip to content

ksrajith/RESTfulMockExample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

RESTfulMockExample

What this can do

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.

How to use

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)

test API 1

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]

===================================================================

test API 2

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages