yzhao244 commented on issue #435:
URL: 
https://github.com/apache/incubator-eventmesh/issues/435#issuecomment-897959346


   @qqeasonchen Yes,  Basically, my idea is to move httpserver context 
creation, handlers along with its dependencies such as Utils classes to 
eventmesh-rest module.  Inside the module, a new utility class called 
"RequestMapping" maps RESTful RequestUrl to the corresponding handler method 
and extracts values from path variables. As my sample handler class code 
indicates, any request invokes REST API 
"/schemaregistry/subjects/{subject}/versions" eventually calls 
createSchemaHandler method. Additionally, subject value is extracted from the 
path variable {subject} and passed to handler method as well.   
   
   
![image](https://user-images.githubusercontent.com/15642771/129267814-3e01eac8-d925-40db-bc87-0e53cc4cf28e.png)
   


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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to