Closed PluieM closed 4 weeks ago
The recent update involves changing the HTTP methods from GET
to POST
for endpoints responsible for updating subscription rules in a web API controller. This modification enhances the control flow and data handling by ensuring that update operations are performed using POST
requests, adhering to RESTful principles for data modification.
File Path | Change Summary |
---|---|
src/main/java/com/.../webapi/RuleSubController.java |
Changed GET endpoint /api/sub/rule/update/{ruleId} to POST at /api/sub/rule/{ruleId}/update and GET endpoint /api/sub/rules/update to POST at /api/sub/rules/update |
sequenceDiagram
participant Client
participant Server
Client->>Server: POST /api/sub/rule/{ruleId}/update
Server-->>Client: 200 OK (Rule Updated)
Client->>Server: POST /api/sub/rules/update
Server-->>Client: 200 OK (All Rules Updated)
🌟 In the realm of code so bright,
Changes come to set things right.
FromGET
toPOST
, they now align,
Updating rules in perfect time.
A rabbit's cheer, a coder's delight,
API flows with new insight. 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@Gaojianli 已按标准调整接口,api文档也已更新
Summary by CodeRabbit
POST
instead ofGET
for improved data handling and security.