wso2 / product-apim

Welcome to the WSO2 API Manager source code! For info on working with the WSO2 API Manager repository and contributing code, click the link below.
http://wso2.github.io/
Apache License 2.0
845 stars 785 forks source link

A way to edit an existing comment on the API using /apis/{apiId}/comments #9318

Open selakap opened 4 years ago

selakap commented 4 years ago

Describe your problem(s)

Expect a way to edit an existing comment on the API. In the current implementation, we cannot do such an update using the POST restful API [1].

  1. https://apim.docs.wso2.com/en/3.1.0/develop/product-apis/devportal-apis/devportal-v1/devportal-v1/#/Comments/addCommentToAPI

Describe your solution

Introduce a PUT resource to /apis/{apiId}/comments

thisaltennakoon commented 1 year ago

We cannot edit comments from the publisher and devPortal because we have not implemented that in the front end. However, back-end support is there for both portals(See [1] and [2]).

[1] https://github.com/wso2/carbon-apimgt/blob/v9.28.36/components/apimgt/org.wso2.carbon.apimgt.rest.api.publisher.v1/src/main/resources/publisher-api.yaml#L2028 [2] https://github.com/wso2/carbon-apimgt/blob/v9.28.36/components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/main/resources/devportal-api.yaml#L1189