| Call tennis API with curl. | Curl | curl -H "X-RapidAPI-Key: a71d8114afmsh311911a18984b05p1e7e2cjsn1fb1d3ea3d28" -H "X-RapidAPI-Host: tennis-live-data.p.rapidapi.com" "https://tennis-live-data.p.rapidapi.com/matches-by-date/2023-06-23". | Verbose. | Edit
Delete |
| Call LMS API with curl. | Curl | curl -d '{ "method": "slim.request","params":["0",["artists","0", "-1"]]}' m4v201:9000/jsonrpc.js|jq. | The example gets a list of all artists and pipes it to jq. | Edit
Delete |
| Call API method using curl with a date parameter. | Curl | curl localhost:9653/GetWordleAnswerByDate?WordleDate=2022-06-07. | The example passes a date of the seventh of June 2022 in ISO format. | Edit
Delete |
| Filter Json data using Linux jq command. | Curl | curl localhost:1235/getactions/false|jq '.[] | select(.actionName|test("^GetP.")) | .actionName,.controllerName'. | The example filters any action in my API that starts with GetP and outputs the action and controller. | Edit
Delete |
| Call a REST api with an access token. | Curl | curl -H "Authorization: Bearer $(getjwt)" localhost:1234/getvalves|jq. | where getjwt is a program I wrote to get a token from Azure AD. | Edit
Delete |