Isn't it fun when an API returns JSON, when there is one result, the data is a object, but if its multiple, its an array of objects. But only some calls, on other calls its always an array.
So much for consistancy.
Isn't it fun when an API returns JSON, when there is one result, the data is a object, but if its multiple, its an array of objects. But only some calls, on other calls its always an array.
So much for consistancy.
I've been working on #PowerBits (a collection of #PowerShell scripts for #PowerBI #Admins) recently, and I just made a minor breakthrough.
One of the biggest missing features of the Power BI #RESTAPIs right now is the ability to export a #Dataset as a #PBIX file. Of course, you can export a #Report as a PBIX file, and if that Report is bound to a Dataset, then the Dataset will be included with the Report when you export it. However, if the Dataset you need to export doesn't have a Report bound to it (I've started calling this a #BareDataset), then the #RESTAPI can't help you. That Dataset can only be exported manually from the Power BI Service using a web browser. Yuck!
To solve this problem:
1. Find and select a target #BareDataset
2. Upload a #BlankReport to the same #Workspace
3. Re-bind the blank Report to the bare Dataset
4. Export the blank Report as a PBIX file
5. Delete the blank Report from the Workspace
Step 1 Complete (mostly) :
https://github.com/JamesDBartlett3/PowerBits/blob/main/PowerShell/Get-PowerBIBareDatasetsFromWorkspaces.ps1
Can anyone help me with a #RestAPI question?
I am designing an API. I have a resource (a financial transaction) that requires an explicit authorisation process. The way to request authorisation is to POST to an /authorize endpoint on the resource.
What HTTP status code do I return in the case that authorisation is denied?
I can’t return 400, as the request is correct. 401 is reserved for not providing credentials. 403 is reserved for when the requesting party is not allowed to request authorisation. 404 for when the resource is not found. 405 for method not allowed…
Maybe a 406? A 409? A 412? A 422? What do people use for the semantics of “Request correctly submitted and valid but denied”? A 200 is definitely not the right answer.
With land completion done and YET ANOTHER lurgy killing me I'm cancelling all my immediate plans. It's time to work on finishing a book. Gonna complete Surviving Other People's Web APIs, then get onto a series of misadventures in bikes & tech books between tree planting / maintenance events.
https://apisyouwonthate.com/books/surviving-other-peoples-apis
Unterschied zwischen Testabdeckung und Codeabdeckung?
Die Code
https://www.dev-crowd.com/2022/11/07/unterschied-zwischen-testabdeckung-und-codeabdeckung/
#ExplorativesTesten #LoadandPerformance #Mocking #Penetrationtest #Projektmanagement #RestAPI #TestEngineering #Testautomatisierung #Testframework #Testlink #Testmanagement #Testplan #Testsuites #Tools #Apptesting #Codecoverage #crossbrowsertesting #flakytesting #ManualTesting #Penetrationtesting #pytest #Regressiontesting #testcoverage