Hi all,

This is regarding the design of $subject.

*Initial flow*

1. Labels are added through the admin dashboard UI / admin REST API
(Reference : Mail thread - *[Architecture][APIM] Label feature for
API-Manager gateway
<http://mail.wso2.org/mailarchive/architecture/2018-May/030687.html>*)

2. When creating an API using publisher UI, we will display existing labels
using a multi select drop down (labels are fetched from getAllLabels REST
API). When it comes to REST API payload (for API creation), we can
introduce new section/array for this.

3. Upon saving/publishing the API, we have identified 3 options to save the
label(s) of that API.
a) Save as a registry property
b) Save in the RXT
c) Save in the DB - keep a mapping in the API table

Note : Saving in the RXT is the best option becasuse it will faclilitate
for searching and migration.


*Impact on API import/export*

The $subject has an impact on API import/export as well.

Fact 1 : When exporting the API, we need to make sure that the labels are
preserved (i.e - the exported zip archive should contain the label(s)).
Fact 2 : When importing the API, we can create the labels (if there are
new, compared to the existing labels in the system) and attach. If the
labels are already there, we can just attach them to the newly created API.

This is the initial design for $subject. Please share your thoughts on
this. It is highly appriciated.

Thanks.

-- 
Chamin Dias
Mobile : 0716097455
Email : [email protected]
LinkedIn : https://www.linkedin.com/in/chamindias
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to