简体   繁体   中英

Internal and external gateway API methods

What's the best practice to differentiate the api calls from internal and external gateway. Is it recommended to create two api methods (secured and not secured)

Use the same Auth header as you do for external consumers and check the permissions for the actual consumer. Another way is just having two APIs.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM