- DTO classes match the chosen API’s JSON and use JsonProperty mappings where needed.
- Application models convert transport data into useful values.
12.2 Assignment
Using the 12.1 Assignment, 12.2 Lab, and assigned readings as reference, you will build your own .NET Framework console application using the third party API that you received access to in 12.1 Assignment and the POST and GET calls utilized in Postman in the 12.1 Assignment.
Work through the stories in order. Use the acceptance criteria to check each feature, and complete the nested tasks using the specified names, values, and scenarios.
Create data transfer object classes in a DTO folder as needed to hold data received and to be sent from Get and POST requests. You should model these classes after the JSON objects received from your GET requests, and sent in your POST requests from Postman in the 12.1 Assignment.
Use JSONProperty attributes.
Create data transfer object classes in a DTO folder as needed to hold data received and to be sent from Get and POST requests. You should model these classes after the JSON objects received from your GET requests, and sent in your POST requests from Postman in the 12.1 Assignment.
Initialize a new instance of the APIManager and pass in the necessary connection properties retrieved from the app.config file in the previous step.
Set up your console application to accept input from the user that will invoke both of the two previously created GET requests, and one of the POST requests. There should be clear instruction on what the user should input and what the expected output should be.
Return to each story and verify its acceptance criteria. Preserve the submission format and destination stated in the activity; a reading, setup guide, lab, video demonstration, and oral final may require different evidence.
Model request and response data Send GET and POST requests from a menu