search
HomeCommon ProblemAPI appliances are extremely agile and simple

API appliances are extremely agile and simple

Mar 21, 2024 pm 04:13 PM
pip installationapi device

Insert this API device into the database just like you would a toaster and add bread, and add rules and Python code. This automation provides superior agility and simplicity with all the flexibility of a framework. Creating a modern API-based web application using traditional frameworks would typically take weeks, but with API Logic Server it can be done in just minutes, even with no framework or Python knowledge. It runs a multi-page admin application and a multi-table JSON:API with Swagger, out of the box, supporting custom client application development, ad hoc application integration and agile collaboration based on working software.

API appliances are extremely agile and simple

Just like you can plug in a toaster and add bread...

You can plug this API Appliance into a database , and add rules and Python.

API Appliance 作为烤面包机

Automation can provide:

  • Exceptional agility and simplicity

  • With all the flexibility of a framework

Creating a modern, API-based web application using a traditional framework is a daunting task. This may take several weeks and extensive knowledge of the framework.

In this article, we'll use API Logic Server (open source, available here) to create it in minutes instead of weeks or months. And, we'll show how to do it with almost zero framework knowledge or even Python knowledge. We'll even show you how to add message-based integration.

1. Insert it into the database

The following is how to insert the ApiLogicServer device into the database:

$ ApiLogicServer create-and-run --project-name=sample_ai -- db-url=sqlite:///sample_ai.sqlite

No database? Use AI to create one, as described in the article Artificial Intelligence and Rules for Agile Microservices in Minutes.

It runs: Management Applications and APIs

Instantly, you have a running system, as shown in the split screen below:

  • Multi-page management application (shown on the left), powered by

  • Multi-table JSON:API with Swagger (shown on the right Pictured)

运行系统显示多页面管理应用程序和多表 JSON:API 与 Swagger

So, out of the box, you can support:

  • Customization Client Application Development

  • Ad hoc application integration

  • Agile collaboration based on working software

Instead of spending weeks coding complex and time-consuming frameworks, #you now have working software.

Containerization

API Logic Server can be run as a container or standard pip installation. In either case, scripts are provided to containerize your project for deployment, such as to the cloud.

2. Add logic rules

Instant work software is great: just one command can replace weeks of work, and the knowledge required is next to zero. But without logic execution, it's nothing more than a cool demo.

Behind the running application is a standard project. Open it with an IDE, then:

  • Use code completion to declare the logic.

  • Use the debugger to debug it.

API appliances are extremely agile and simple

The above code is not traditional procedural logic, but declarative. As with spreadsheets, you can declare rules for multi-table derivation and constraints. These rules handle all database access, dependencies, and ordering.

The results are remarkable:

  • The five spreadsheet-like rules above execute the same logic as 200 lines of Python.

  • The backend part of the system is 40 times simpler.

Similar rules are provided to grant row-level access based on user roles.

3. Add Python for increased flexibility

Automation and rules provide superior agility with little in-depth knowledge required. However, automation always has its limitations: you need flexibility to deliver complete results.

For flexibility, the device allows you to use Python and popular software packages to get the job done. Below, we customize pricing discounts and send Kafka messages:

定制定价折扣和发送 Kafka 消息

Scalable Declarative Automation

The screenshot above demonstrates Extraordinary agility. Using traditional frameworks, this system could take weeks or months.

But it’s not just agility. The level of abstraction here is very high, bringing a level of simplicity that enables you to create microservices - even if you are new to Python or frameworks like Flask and SQLAlchemy.

There are 3 key elements to achieve this speed and simplicity:

1. Microservice automation: No need to do slow and complex framework coding, just plug into the database to get instant API and Management application.

2. Logic automation with declarative rules: Rules are not boring code that describes how logic runs, but express what you want to accomplish.

3. Extensibility: Use IDEs, Python, and standard packages (such as Flask and SQLAlchemy) to complete the remaining elements.

This kind of automation equipment can provide significant benefits, allowing more people to do more things.

The above is the detailed content of API appliances are extremely agile and simple. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools