lazywinadmin / MVP

PowerShell Module to interact with the Microsoft MVP API
MIT License
45 stars 14 forks source link

Add functions for consideration Q&A endpoint #41

Closed Windos closed 5 years ago

Windos commented 5 years ago

This PR adds new functions, as per #36 to add support for the award consideration question and answer endpoints.

The two get ones are fairly self explanatory.

The "save answers" one, I went with New- to match the other POST endpoints, but it could be changed to Save- to match the name of the endpoint.

I had a similar naming problem with the "submit answers" one. I wanted to convey that this is a permanent operation so instead of a name like Submit- I went with Lock-.

To drive the permanent-neww home, I've also set it's confirmimpact to high and implemented whatif.


Unlike last year, I can actually have access to the API now... unfortunately (or fortunately, I guess?) I'm not in a renewal consideration period so I can't test either of the POST endpoints, and the Get-Answer one returns a "no, not for you" message which I accounted for in the code.