I have decided to create public APIs in my application. What is the best practice for that?
Let's say Github uses github.com
to serve html pages and api.github.com
for APIs.
- Do both share same Backend code? (App has to render html pages and APIs has to send JSON response)
- Are there two separate authentication modules for App and APIs?
- How should I implement API versioning?
Thanks.