mansonliwh opened a new pull request, #3244:
URL: https://github.com/apache/amoro/pull/3244

   ## Why are the changes needed?
   
   Close #3038.
   
   ## Brief change log
   
   Unify the API set for both dashboard and Open API in the same url [ 
/api/ams/v1 ]. 
   
   Previously, frontend requests and external interface requests were 
distinguished by using the paths **ams/v1** and **api/ams/v1** respectively. 
Frontend requests required cookie validation for login status, while external 
interface requests needed to pass an apikey parameter for verification. In this 
design, the request paths from both sources are unified to **api/ams/v1**. For 
frontend requests, an additional header parameter **_X-Request-Source: 
frontend_** will be included. This allows the source of the request to be 
distinguished and routed to different validation logic accordingly.
   
   ## How was this patch tested?
   
   - [ ☑️ ] Add screenshots for manual tests if appropriate
   
![image](https://github.com/user-attachments/assets/0efb7533-7381-41ac-8d85-1caf6b896027)
   
   - [ ☑️ ] Run test locally before making a pull request
   


-- 
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