# Generating the API Client source: https://developer.mastercard.com/pay-with-rewards/tutorial/api-testing/step2/index.md ## Generating the API Client {#generating-the-api-client} 1. Now that you have all the dependencies you need, you can generate the source code. You can navigate to the project root directory within a terminal window and run `mvn clean install `. ![install](https://static.developer.mastercard.com/content/pay-with-rewards/img/tutorial/install.png) 2. Alternatively, you can navigate to the root directory of the project within a terminal window and run mvn clean installation. 3. A folder named **target** is created within your root directory which contains classes generated for the schemas and API calls defined within the OpenAPI Specification. The generated classes can be found in the target folder as shown below: ![classes](https://static.developer.mastercard.com/content/pay-with-rewards/img/tutorial/targetfiles.png)