My application tests the RESTful APIs created by Júlio de Lima using REST Assured.
I'm using the framework to learn it, and a challenge I faced was a interesting way to pass the body request with REST Assured without writing the JSON in the code. Jackson Databind helped me with that.
In the future I hope to add more testing scenarios to the application.
- IntelliJ IDEA
- Maven 3+
- JDK 17+
- Clone the repository in your machine.
- Open it in IntelliJ.
- Install JDK through IntelliJ in case you don't have it.
For instance, open the ProdutoTest file in IntelliJ and run the tests. The IDEA's console output should look like this:
Process finished with exit code 0
URL of the Lojinha API V2 REST APIs: http://165.227.93.41/lojinha/v2/
URL of the buggy Lojinha API V2 REST APIs: http://165.227.93.41/lojinha-bugada/v2/
Swagger documentation of the RESTful APIs
Getting started with REST Assured
Jackson Databind: it enables us to pass a POJO in the "body" method of the REST Assured library, for example.