Xiaobai interface, what the hell?

Recently, I heard that there is a social interface on Jianghu, and many students have begun to use it. That is - Xiaobai interface. Xiaobai interface, what kind of winter is it? Let's take a quick look at it below.

 

Introduction from the official website

Let's take a look at the description of the official website itself.

Xiaobai interface official website (it actually supports HTTPS, the first impression is good): https://www.okayapi.com/

Its Slogan is: Xiaobai interface, serving the public.

Its LOGO:

 

To put it bluntly, Xiaobai interface provides a set of general interface services, which can help the rapid development of client applications.

 

pick up a millet

For non-technical students, let's take a millet, it is easy to understand. Suppose, somewhere, you have a heavily guarded warehouse with lots of your treasures in it. (The following is the warehouse in the original stage, you can also upgrade to the more powerful version of the industrial age, modern version)

As the boss, when you need to pick up something, you don't need to do it yourself, you only need to order the courier brother who is on call at any time, and then the courier brother will go to the warehouse to get you in the spirit of "mission must be fulfilled". What you want is delivered to you. Since it is a heavily guarded warehouse, it means that not everyone can come and go casually. Even the courier guy is the same. Therefore, your signature must be attached every time an order is given to go to the warehouse for pickup .

The courier brother here is actually various interface services provided by Xiaobai interface. Each interface implements different functions and returns different data. The warehouse is the cloud database provided by the Xiaobai interface. It is scalable, upgradeable, and supports massive data storage and high concurrent access. As for the signature, it is the signature verification that needs to be performed every time the interface is requested to ensure security.

 

What are the functions of Xiaobai interface?

At this point, I probably understand what the Xiaobai interface can do. That is to say, when I need to develop an application, I can use the Xiaobai interface to complete general data operations, storage and processing. However, what functions does Xiaobai interface have, and what operations does it support?

 

Three major data: metadata, collection data and counters, store whatever you want

First of all, the Xiaobai interface has three major data, namely: metadata, collection data and counters.

Metadata is equivalent to opening a treasure chest with a key.

In this treasure box, you can put a lot of things, such as the name of the movie you just watched, a link to a website, or an emoji , or the number of chickens eaten today.

In fact, in technical terms, the key is actually a string of unique characters, named after yourself, you can call it whatever you want. And this treasure chest is essentially a piece of data in JSON format, so you can dynamically add strings, integers, text and other types of data in it. Shaped like:

{
            "nickname": "dogstar",
            "age": 18
}

Of course, you can have many different chests with different treasures in them.

 

"One question! What if I have a lot of similar boxes?"

This is easy to do, just use the collection data instead. Collection data is made up of metadata, but it is a large collection that can support many more operations. For example, take totals, sort, insert, etc. Something like this:

"And what's the last counter?"

This is easier to understand, in fact, it is to store numbers such as 0, 1, 2, 3, 4, 5, ..., and can support cyclic reset and recalculation such as hourly, daily, and weekly.

 

Here's a new skill to share. The three major data here, combined with the membership system, permission control, role assignment and other modules of Xiaobai interface, can quickly assemble powerful functions. You can share it later.

 

Customize data, design database tables yourself

It sounds like it's fun. But but! Although the above three data are good, but if you want to design the database table yourself, how to break it?

This is also very simple, log in to the Xiaobai background (yes, the Xiaobai interface also provides a visual management background synchronously), create a new model, and then add the table fields you need in it. In addition to this, data management, data import and export are all in one place.

The most interesting thing is that each custom model has its own rule configuration. By adjusting these rules online, you can control the functions of the corresponding interface online and complete the routine requirements. Isn’t it great?

 

Inside, does Xiaobai interface support using its own database? support!

What if I already have a database? Can Xiaobai interface integrate with my original database?

This is also possible. After integration, you can also operate and process the data in your database through the Xiaobai interface.

 

From this point of view, Xiaobai interface provides the default database, and also supports creating your own database and table structure on it, and also supports integrating your own original database. The functions are still quite complete. and! In addition to providing data interfaces, Xiaobai interface also opens up many other practical interfaces, such as sending emails, converting Chinese characters to Pinyin, generating QR codes, uploading pictures, etc.

 

Well, Xiaobai interface is such a ghost. I will share more technical dry goods later~ and even discuss the details and principles of its internal implementation, as well as the architecture.

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325048929&siteId=291194637