shakedown.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A community for live music fans with roots in the jam scene. Shakedown Social is run by a team of volunteers (led by @clifff and @sethadam1) and funded by donations.

Administered by:

Server stats:

252
active users

#restapi

0 posts0 participants0 posts today

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) 😅:
github.com/JamesDBartlett3/Pow

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.

apisyouwonthate.com/books/surv

apisyouwonthate.comSurviving Other People's APIs | APIs You Won't HateDesigning the world's most beautiful API is only half the story, somebody needs to interact with it!