You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apisix.apache.org by Shiwen Ji <ji...@api7.ai> on 2023/09/01 09:17:08 UTC
Remove useless args in APISIX admin APIs and script function in Service and Router
*Background*
1. I think `create_time` and `update_time` in create body are unnecessary.
The response to the management API is generated from etcd data so that we
can remove these two fields from the resource definition.
2. Additionally, I removed the script functionality from service and route
since they are not used very often.
*Result*
According to the issue content, I deleted the `create_time` and
`update_time` attributes in the relevant resource definition. The deleted
resources include service, router, upstream, consumer, ssl, consumer-group,
plugin-config, stream_route, global-rule and proto.
The `script` functions in `service` and `route` will also be deleted.
Best Regards!
Shiwen Ji
回复: Remove useless args in APISIX admin APIs and script function in Service and Router
Posted by LI Fabrice <yi...@hotmail.com>.
LGTM
Just like created_at and updated_at in the database, no explicit input is required, nor should it be.
But will they show up in the Response?
________________________________
李奕浩
________________________________
发件人: Shiwen Ji <ji...@api7.ai>
发送时间: 2023年9月1日 17:17
收件人: dev@apisix.apache.org <de...@apisix.apache.org>
主题: Remove useless args in APISIX admin APIs and script function in Service and Router
*Background*
1. I think `create_time` and `update_time` in create body are unnecessary.
The response to the management API is generated from etcd data so that we
can remove these two fields from the resource definition.
2. Additionally, I removed the script functionality from service and route
since they are not used very often.
*Result*
According to the issue content, I deleted the `create_time` and
`update_time` attributes in the relevant resource definition. The deleted
resources include service, router, upstream, consumer, ssl, consumer-group,
plugin-config, stream_route, global-rule and proto.
The `script` functions in `service` and `route` will also be deleted.
Best Regards!
Shiwen Ji