Service

    The relationship between Routes and a Service is usually N:1 as shown in the image below.

    For more information about Service, please refer to .

    Examples

    The following example creates a Service that enables the Plugin and then binds it to the Routes with the ids and .

    We can also specify different Plugins or Upstream for the Routes than the ones defined in the Service. The example below creates a Route with a Plugin. This Route will continue to use the other configurations defined in the Service (here, the Upstream configuration).

    Service - 图2note

    When a Route and a Service enable the same Plugin, the one defined in the Route is given the higher priority.