Hi All,
We are going to implement REST API to do the following functionality on C5.
*Functionality*
1. Add API Resource
1. Endpoint configuration
2. Resource level policy
3. Authentication Type for resource (Any,Application user ,etc.)
4. Scope
2. Update API Resource
3. Delete API Resource
4. GET API Resource.
We had concern of following approaches to handle the above resource.
1. Handle as element in the API as [1].
2. Make SubResource of the API.
- /apis/{API_ID}/resources - Post (Add resource)
- /apis/{API_ID}/resources/{resourceid} - GET (Get Specific Resource)
- /apis/{API_ID}/resources/{resourceid} - PUT (Update Specific Resource)
- /apis/{API_ID}/resources/{resourceid} - Delete (Delete Specific
Resource)
- /apis/{API_ID}/resources - GET (Get All Resource according to the API)
In order to handle above resources we are going to give resource in the API
model of rest API as [1].
[1] -
https://github.com/tharindu1st/carbon-apimgt/blob/0d61ece09a4fc1cc24aa4616f63245a57decfe14/components/apimgt/org.wso2.carbon.apimgt.rest.api.publisher/src/main/resources/publisher-api.yaml
Please add your suggestions into the above approaches.
Thanks
*Tharindu Dharmarathna*Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
mobile: *+94779109091*
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture