Serverless-api Dialog | Description
| The Serverless-api dialog is used to create a new Serverless-api gateway that allows you to manage microservices.
Name field | Specifies the name for the gateway, which can be anything.
{ANYNODE} field | Specifies the {ANYNODE} where the Serverless-api gateway will be configured.
Service Port field | Defines the port number that the Serverless API gateway will listen on.
Create button | Saves the gateway configuration and provisions it.
Cancel button | Abort and close the dialog.
Serverless-api Actions Menu | Description
| On the right-hand side of the Serverless-api list view, you will find the "Actions" menu that displays shortcut icons and the dropdown menu icon. Below, we have listed the actions for the Serverless-api module.
Copy ID item | Stores the gateway ID in the clipboard.
Edit API Gateway item | Opens the Serverless-api dialog in edit mode, allowing modifications.
Delete API Gateway item | Opens a confirmation dialog that, if confirmed, deletes the gateway.
Below are examples of how to configure the APISIX runtime.
Single Router: | routes: - uri: /hello upstream: nodes: "10.1.0.1:80": 1 type: roundrobin #END
Multiple Router: | routes: - uri: /hello upstream: nodes: "127.0.0.1:1980": 1 type: roundrobin - uri: /hello2 upstream: nodes: "127.0.0.1:1981": 1 type: roundrobin #END
Router + Service: | routes: - uri: /hello service_id: 1 services: - id: 1 upstream: nodes: "127.0.0.1:1980": 1 type: roundrobin #END
Router + Upstream: | routes: - uri: /hello upstream_id: 1 upstreams: - id: 1 nodes: "127.0.0.1:1980": 1 type: roundrobin #END
Router + Service + Upstream: | routes: - uri: /hello service_id: 1 services: - id: 1 upstream_id: 2 upstreams: - id: 2 nodes: "127.0.0.1:1980": 1 type: roundrobin #END
Plugins: | # plugins listed here will be hot reloaded and override the boot configuration plugins: - name: ip-restriction - name: jwt-auth - name: mqtt-proxy stream: true # set 'stream' to true for stream plugins #END
Global Rule: | global_rules: - id: 1 plugins: response-rewrite: body: "hello\n" #END
Consumer: | consumers: - username: jwt plugins: jwt-auth: key: user-key secret: my-secret-key #END
Stream Route: | stream_routes: - server_addr: 127.0.0.1 server_port: 1985 id: 1 upstream_id: 1 plugins: mqtt-proxy: protocol_name: "MQTT" protocol_level: 4 upstream: ip: "127.0.0.1" port: 1995 upstreams: - nodes: "127.0.0.1:1995": 1 type: roundrobin id: 1 #END

#### The serverless-api Policy The following is a list of policy grants that define and regulate access permissions for both users and the API. To manage these policies, please use the Roles dialog.
Grants | Description | API Command
full | Grants full access | ALL
delete | Permits the deletion of the item. | delete
edit | Permits access to the "Edit" dialog. | read-config
git-pull | Permits the retrieval of the configuration from a Git repository. |
git-push | Permits the storage of the configuration to a Git repository. |
list | Permits listing in the List View area or as JSON objects. | list
monitor | Permits the retrieval of the logs. |
new | Permits access to the new "Provisioning" dialog. |
save | Permits execution of the provisioning process. | create, write-config
test-function | Permits the testing of the function. |