RESTful services are everywhere and have been for some years now. PowerShell puts you in a unique position with its capabilities. Not only can you read data from services, you can also publish and delete data easily and with confidence. This first recipe shows you the most important REST methods that you can use with Invoke-RestMethod.
Exploring REST services
Getting ready
Install and start PowerShell Core.
How to do it...
Perform the following steps:
- Invoke-RestMethod is used to access different endpoints of an API with different methods. Try the GET method first: