1. 程式人生 > 實用技巧 >使用Blockly視覺化程式設計編輯器呼叫.NET Core WebAPI

使用Blockly視覺化程式設計編輯器呼叫.NET Core WebAPI

I like to showcase interesting and cool open source projects that need more attention! Go give our friend a star on GitHub! NetCoreBlockly on GitHub is clever and fun!

我喜歡展示有趣且酷炫的開源專案,需要更多關注! 去給我們的朋友在GitHub上加個星星吧! GitHub上的NetCoreBlockly既有趣又有趣!

Blockly is a JavaScript library for building visual programming editors. If you've used languages like Scratch you've seen block-style programming environments. The picture below shows you a demo of calling a .NET Core WebAPI using Blockly code!

Blockly是一個JavaScript庫,用於構建視覺化程式編輯器。 如果您使用過Scratch之類的語言,那麼您會看到塊式程式設計環境。 下圖顯示了使用Blockly程式碼呼叫.NET Core WebAPI的演示!

Remember that once you have a WebAPI you can make it available in a number of ways. The "projection" of the methods that the WebAPI makes available can be presented visually, as Swagger/OData/GraphQL, however you like. Another project

is WebAPI2CLI that lets you call WebAPI endpoints easily from a CLI (Command Line Interface) that is more high fidelity than curl or wget.

請記住,一旦有了WebAPI,就可以通過多種方式使它可用。 WebAPI提供的方法的“投影”可以視覺化顯示,例如Swagger / OData / GraphQL。 另一個專案是WebAPI2CLI ,它使您可以從保真度比curl或wget高的CLI(命令列介面)輕鬆呼叫WebAPI端點。

.NET Core as a Blockly Editor

What .NET Core Blockly is doing is looking at the projection/interface of your WebAPI and generating Blockly blocks! That means that anyone (business users, student, tester, whatever) could try out your WebAPI with a simple drag and drop interface in their browser!

.NET Core Blockly在做什麼,是在檢視WebAPI的投影/介面並生成Blockly塊! 這意味著任何人(企業使用者,學生,測試人員等)都可以通過其瀏覽器中的簡單拖放介面來試用您的WebAPI!

You can pull in Swagger, OData, or GraphQL interfaces.

您可以引入Swagger,OData或GraphQL介面。

I love seeing fun projects like this that make the web (and .NET code) easier to use! Go give them some stars and get involved!

我喜歡看到這樣有趣的專案,這些專案使Web(和.NET程式碼)更易於使用! 去給他們一些星星,並參與其中



Sponsor: Upgrade from file systems and SQLite to Actian Zen Edge Data Management. Higher Performance, Scalable, Secure, Embeddable in most any programming language, OS, on 64-bit ARM/Intel Platform.

贊助商:從檔案系統和SQLite升級到Actian Zen Edge資料管理。 更高的效能,可伸縮性,安全性,可在64位ARM / Intel平臺上以大多數任何程式語言,OS嵌入。

關於斯科特 (About Scott)

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

斯科特·漢塞爾曼(Scott Hanselman)是前教授,前金融首席架構師,現在是演講者,顧問,父親,糖尿病患者和Microsoft員工。 他是一位失敗的單口相聲漫畫家,一個玉米種植者和一本書的作者。

facebook twitter subscribe About 關於 Newsletter 時事通訊 Hosting By 主持人 Hosted in an Azure App Service

翻譯自: https://www.hanselman.com/blog/using-the-blockly-visual-programming-editor-to-call-a-net-core-webapi