You can read it here: Contract testing using Swagger, Prism and Dredd
You can see the API documentation (Swagger)
- JDK 1.8
- Apache Tomcat 8.0.21
- Apache Maven 3.1
- mvn clean install in ${PROJECT_HOME} folder (where pom.xml file is)
- Starting embeded Tomcat:
- Run mvn tomcat7:run
- http://localhost:8080/awesomesite (index.html page)
- To manually deploy on your server
- copy target/awesomesite.war file into ${APACHE_TOMCAT_HOME}/webapps/ folder
- start Apache Tomcat
- http://localhost:8080/awesomesite
- Start the service
- Install dredd: npm install -g dredd
- Execute: dredd http://localhost:8080/awesomesite/ApiV1.yaml http://localhost:8080
- Install prism from https://stoplight.io/platform/prism/
- Execute: prism run --mock --list --spec ${PROJECT_HOME}/src/main/webapp/ApiV1.yaml
- Now you can send request to http://localhost:4010/awesomesite/api/v1/... (you can import this postman collection)