Closed elise-ng closed 2 years ago
don't really have a strong preference but I guess /iscn-classes/{iscn_id_prefix}
and /account-classes/{account}
looks better
Let do /iscn-classes/{iscn_id_prefix}
and /account-classes/{account}
Since we won't have use-case for returning all Classes, making the inheritance appear in the API is not wise.
updated to /iscn_classes/{iscn_id_prefix}
and /account_classes/{account}
on second thought we could also do nvm, wasn't thinking clearly, we have the list all queries as well and this pattern won't serve that usage/iscn/{iscn id}/classes
and /account/{addr}/classes
currently for the reverse query it's /classes/{class id}/iscn
and classes/{class id}/account
Ref oursky/likecoin-chain#275
One question, would you prefer:
/classes/by_iscn/{iscn_id_prefix}
and/classes/by_account/{account}
or/iscn-classes/{iscn_id_prefix}
and/account-classes/{account}
?