This project has automated tests for sample open source apis.
- no modules in this project
This project uses a number of open source projects to work properly:
- Java
- TestNG
- Slf4j
- Lombok
Checkout the project from gitlab using following command
$ git clone https://github.com/shirishameka/rest-assured.gitGet in-to the project folder
$ cd rest-assuredTo build the project and run the tests
$ mvn clean installTo only run the tests
$ mvn clean testTests write logs while they are running which provide further information about what happened if case of failure. These files reside in ./logs directory and can be viewed locally in your browser by navigating to that folder.
Description This collection of documents describes the resources and functions that make up the r/SpaceX API. The most current version of the API is v3, with the following base URL - https://api.spacexdata.com/v3 One of the API endpoints is /launches/past. This endpoint returns all the launches made by SpaceX till date. This endpoint allows us to sort the launches by date range by providing 2 query params - start and end(both are mandatory for sorting).
Sample Request URL: https://api.spacexdata.com/v3/launches/past?start=2017-06-22&end=2017-06-25
Expected: In response, every launch object has rocket details. Rocket has 2 stages - the first stage is core and the second stage is the payload. Core and payload objects have details whether this component was re-used or not. You need to print the following.
- Mission name
- Rocket name
- core_serial (only if the core is reused)
- payload_id (only if the payload is reused)