bzp2010 opened a new issue, #2495:
URL: https://github.com/apache/apisix-dashboard/issues/2495

   # Feature request
   
   ## Please describe your feature
   
   We currently support OpenAPI3 data import support, which is based on the 
DataLoader interface. The DataLoader interface provides good support for 
extending our new data import and exporters.
   
   However, it is difficult for us to handle the following scenario, when users 
have multiple environments, such as three environments like `development`, 
`testing`, and `production`, and when the service needs to migrate the 
configuration to the production environment after the development and testing 
is completed, it is difficult for the existing import and exporters to support 
such a lossless migration scenario.
   
   ## Describe the solution you'd like
   
   We need to implement an importer/exporter of type `raw`, which supports 
exporting data in raw JSON format and importing it into other environments.
   
   It needs to support the following types of data:
   
   - Route (Index)
   - Upstream `upstream_id`
   - Service `service_id`
   
   And more like is optional, but it is better to implement support:
   - Plugin Config `plugin_config_id`
   - Script `script_id`
   
   Store them as such JSON files and output them to the browser for download. 
The export will be indexed by route, and its associated upstream, service and 
other associated information will be taken out together to build a JSON 
document.
   
   ```json
   {
       "routes": [
            {
                "id": "route1",
                "upstream_id": "upstream1",
                "xxxx": "xxxx"
            },
            {
                "id": "route2",
                "service_id": "service1",
                "xxxx": "xxxx"
            }
       ],
       "services": [
            {
                "id": "service1",
                "xxxx": "xxxx"
            }
       ],
       "upstreams": [
            {
                "id": "upstream1",
                "xxxx": "xxxx"
            }
       ],
   }
   ```
   
   ## Describe alternatives you've considered
   
   No.
   
   ## Additional context
   
   Add any other context or screenshots about the feature request here.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to