<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Should I use Power BI Rest API or Fabric Rest API? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Should-I-use-Power-BI-Rest-API-or-Fabric-Rest-API/m-p/4074410#M54490</link>
    <description>&lt;P&gt;I am in dilemma whether to keep on using Power BI rest API calls in updating Fabric workspace.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's future of Power BI Rest API after launching of Fabric Rest API?&lt;/P&gt;</description>
    <pubDate>Thu, 01 Aug 2024 21:36:31 GMT</pubDate>
    <dc:creator>kur83</dc:creator>
    <dc:date>2024-08-01T21:36:31Z</dc:date>
    <item>
      <title>Should I use Power BI Rest API or Fabric Rest API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Should-I-use-Power-BI-Rest-API-or-Fabric-Rest-API/m-p/4074410#M54490</link>
      <description>&lt;P&gt;I am in dilemma whether to keep on using Power BI rest API calls in updating Fabric workspace.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's future of Power BI Rest API after launching of Fabric Rest API?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 21:36:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Should-I-use-Power-BI-Rest-API-or-Fabric-Rest-API/m-p/4074410#M54490</guid>
      <dc:creator>kur83</dc:creator>
      <dc:date>2024-08-01T21:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Should I use Power BI Rest API or Fabric Rest API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Should-I-use-Power-BI-Rest-API-or-Fabric-Rest-API/m-p/4074514#M54493</link>
      <description>&lt;P&gt;The Power BI REST API and the Microsoft Fabric REST API serve different purposes and are likely to coexist in various capacities. Here’s a brief overview to help with your decision:&lt;/P&gt;&lt;H3&gt;&lt;STRONG&gt;Power BI REST API&lt;/STRONG&gt;&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Current Use&lt;/STRONG&gt;: It provides capabilities for managing Power BI resources, such as reports, dashboards, datasets, and workspaces. It allows for operations like embedding, user management, and refreshing datasets.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Future Outlook&lt;/STRONG&gt;: While the Power BI REST API continues to be supported and updated, its focus remains on Power BI-specific functionalities. It is likely to receive updates relevant to Power BI’s features and improvements.&lt;/LI&gt;&lt;/UL&gt;&lt;H3&gt;&lt;STRONG&gt;Microsoft Fabric REST API&lt;/STRONG&gt;&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Introduction&lt;/STRONG&gt;: Microsoft Fabric is designed to integrate various data services into a unified platform. The Fabric REST API is intended to offer broader capabilities that span across different Microsoft data and analytics services, including but not limited to Power BI.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Future Outlook&lt;/STRONG&gt;: As Microsoft Fabric evolves, the Fabric REST API is expected to become more integral in managing and interacting with a broader suite of services beyond Power BI. This API aims to streamline operations across Microsoft's analytics and data platforms.&lt;/LI&gt;&lt;/UL&gt;&lt;H3&gt;&lt;STRONG&gt;Considerations for Your Decision&lt;/STRONG&gt;&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Functionality&lt;/STRONG&gt;: If your operations are heavily reliant on Power BI-specific features and integrations, the Power BI REST API might still be your best choice. If you’re looking for broader integration with Microsoft’s data ecosystem, exploring the Fabric REST API could be beneficial.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Compatibility&lt;/STRONG&gt;: Check if the Fabric REST API supports all the functionalities you currently use with the Power BI REST API. As Fabric API matures, it might offer new features or improved integrations that could make it more suitable for your needs.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Future-Proofing&lt;/STRONG&gt;: If you’re planning for long-term solutions and Fabric’s capabilities align with your future requirements, transitioning to the Fabric REST API might be a strategic move.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Support and Updates&lt;/STRONG&gt;: Stay informed about updates from Microsoft regarding both APIs to ensure you’re leveraging the best tools for your needs.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;H3&gt;&lt;STRONG&gt;Recommendations&lt;/STRONG&gt;&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Evaluate Needs&lt;/STRONG&gt;: Determine if the Fabric REST API offers the necessary features and compatibility for your current and future needs.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Pilot Test&lt;/STRONG&gt;: Consider running a pilot test with the Fabric REST API to assess its performance and suitability.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Stay Informed&lt;/STRONG&gt;: Keep an eye on Microsoft’s announcements and documentation to stay updated on the latest developments and best practices.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Ultimately, the choice depends on your specific requirements and how each API aligns with your long-term strategy.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 00:06:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Should-I-use-Power-BI-Rest-API-or-Fabric-Rest-API/m-p/4074514#M54493</guid>
      <dc:creator>Shravan133</dc:creator>
      <dc:date>2024-08-02T00:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Should I use Power BI Rest API or Fabric Rest API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Should-I-use-Power-BI-Rest-API-or-Fabric-Rest-API/m-p/4239931#M57811</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;A follow question to this...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it correct that the Fabric API requires Fabric capacity?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We're currently able to use the PowerBi API with PPU license workspaces.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;However I was experimenting with using the CreateItem endpoint to publish a semantic model and I'm getting a 401 unauthorised response. Not sure whether I've done something wrong or it's the Fabric capacity limitation.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2024 07:42:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Should-I-use-Power-BI-Rest-API-or-Fabric-Rest-API/m-p/4239931#M57811</guid>
      <dc:creator>reubwork</dc:creator>
      <dc:date>2024-10-13T07:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Should I use Power BI Rest API or Fabric Rest API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Should-I-use-Power-BI-Rest-API-or-Fabric-Rest-API/m-p/4239949#M57812</link>
      <description>&lt;P&gt;Scratch that.&lt;BR /&gt;It works;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;We can develop in PBIP model locally, and publish a PBIP semantic model direct from source code using the SemanticModel endpoints;&amp;nbsp;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/fabric/semanticmodel/items/create-semantic-model?tabs=HTTP" target="_blank"&gt;https://learn.microsoft.com/en-us/rest/api/fabric/semanticmodel/items/create-semantic-model?tabs=HTTP&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The model needs to be compiled into a post body with inline base64 encoded elements.&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/fabric/articles/item-management/definitions/semantic-model-definition" target="_blank"&gt;https://learn.microsoft.com/en-us/rest/api/fabric/articles/item-management/definitions/semantic-model-definition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This opens up a fairly simple &lt;A href="https://docs.github.com/en/get-started/using-github/github-flow" target="_self"&gt;&lt;EM&gt;github flow&lt;/EM&gt;&lt;/A&gt; development lifecycle.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using python;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def get_pbip_deploy_body_payload(project_root, model_name, *args, **kwargs):

    semantic_model = os.path.join(project_root, f"{model_name}.SemanticModel")

    files = [
        "definition/database.tmdl",
        "definition/model.tmdl",
        "definition.pbism",
        "diagramLayout.json",
        ".platform",
    ]

    tables_path = f"{os.path.join(semantic_model,'definition', 'tables')}/*.tmdl"

    for file in glob.glob(tables_path):
        file_path = f"definition/tables/{os.path.basename(file)}"
        files.append(file_path)
    
    pp(files)

    body = {
        "displayName": model_name,
        "definition": {
            "parts":[]
        }
    }

    for file in files:

        with open(os.path.join(semantic_model, file), mode='rt') as file_data:

            text = file_data.read()
            
        inlineb64 = b64encode(text.encode('utf-8')).decode('utf-8')

        body["definition"]["parts"].append(
            {
                "path": file,
                "payload": inlineb64,
                "payloadType": "InlineBase64"
            }
        )

    return body&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2024 08:53:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Should-I-use-Power-BI-Rest-API-or-Fabric-Rest-API/m-p/4239949#M57812</guid>
      <dc:creator>reubwork</dc:creator>
      <dc:date>2024-10-13T08:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Should I use Power BI Rest API or Fabric Rest API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Should-I-use-Power-BI-Rest-API-or-Fabric-Rest-API/m-p/4625629#M60026</link>
      <description>&lt;P&gt;I am trying to solve the exact same problem now! I also get deployment of semantic models to work fine, but the crux is getting reports part right, since there are a whole load of files which are nested, and the API body's content then become very variable depending on the size of the PBIP folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you had success with this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 10:10:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Should-I-use-Power-BI-Rest-API-or-Fabric-Rest-API/m-p/4625629#M60026</guid>
      <dc:creator>edevarhvide</dc:creator>
      <dc:date>2025-03-26T10:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Should I use Power BI Rest API or Fabric Rest API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Should-I-use-Power-BI-Rest-API-or-Fabric-Rest-API/m-p/4625699#M60029</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Sorry, no, I've not tried to deploy reports programmatically yet. I'm saving that for the future!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Actually I'm waiting for them to release the report definition as tmdl rather than json.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck though.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 10:53:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Should-I-use-Power-BI-Rest-API-or-Fabric-Rest-API/m-p/4625699#M60029</guid>
      <dc:creator>reubwork</dc:creator>
      <dc:date>2025-03-26T10:53:40Z</dc:date>
    </item>
  </channel>
</rss>

