Hello, I am fairly new to Wiremock and I have been...
# help
g
Hello, I am fairly new to Wiremock and I have been assigned to learn and create Mock API using Wiremock for my project. Could someone please help me with it. We are using Karate framework for our API
b
Hi Garvit, here’s a free and open source workshop covering some of what I think are the most important features of WireMock: https://github.com/basdijkstra/wiremock-workshop Which tool you use to test your APIs is largely irrelevant.
❤️ 1
l
The course by @Bas Dijkstra is great. Definitely worth checking out. If you have any specific questions then please do post them here and we can help
🧡 2
g
Thank you so much @Bas Dijkstra . I want to create a small POC for testing couple of RSP's in my company. The deadline is few weeks. Hopefully I will be able to show something 🙂
🙌 1
Thank you @Lee Turner
b
Awesome. Let me know if there’s anything I can do to help.
g
@Bas Dijkstra. Your repo looks amazing, it has examples and documentation. Can I take anyone of the example from your git and implement the same in my project?
b
Yes, absolutely. That’s why I open sourced it: for people to learn from and use.
🎉 1
g
@Bas Dijkstra. The Wire Mock Examples that you have created are for GET, POST, PUT ? What are WireMocks answers. I want to create stub for GET, POST and PUT for now. Where should I find it?
b
Most responses are for a POST, but the process is the same no matter the HTTP verb you use. You can see the stubs written in Java here: https://github.com/basdijkstra/wiremock-workshop/tree/main/src/test/java/answers And in JSON mapping files here: https://github.com/basdijkstra/wiremock-workshop/tree/main/src/test/resources/answers
g
Hi @Bas Dijkstra... where I can find the runner files. Also, how can I create a mock server on AWS ?
b
What do you mean by runner files? The mock server is running for the duration of the tests. If you want a mock server that runs long term you’ll need to look at the standalone option. There’s also a Docker image, I think that should work nicely with AWS.
g
@Bas Dijkstra . Thank you .. can you point to the git repo for Standalone ? Is it on the wiremock page?