Reputation: 557
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.
Thanks.
Upvotes: 0
Views: 79
Reputation: 6649
There is not a one size fits all for what you are asking. The way github does it may not be what you want to do. I recommend doing a lot of research on this subject before building your api as this will save you much time and headache.
Here are some good reads:
versioning:
Best practices for API versioning?
authentication
Again, you have to decide how your API will be built based on your consumers needs, your current application and skillset. It would be worth while to research how the big guys do it as well (facebook, google, stackoverflow, twitter)
Upvotes: 2