I am building a set of rest APIs for a mobile app as well as set of them which can be consumed by merchants ( for an app or web ) . The two sets of APIs have common properties, for example
For a product creation API and For mobile: For mobile, I will be giving product likes, comments, etc back to the app. But to the merchant i will only be giving back the product related details and not the user likes, comments and other app specific details.
Do I have to create set of APIS, one for mobile apps and one set for merchants and maintain a single library where all common functionalities are written?
Please give some suggestions.