Jump to content

Site Built Upon Your Own API


The Little Guy

Recommended Posts

I was just thinking, if your service had an API, wouldn't it be best to build the API, and use the API within the site, instead of building two separate interfaces, one for the site and one for the API...

 

What are your thoughts on that?

 

Example, it would be like facebook using their own API to build facebook. The really only difference might be that they don't have to do HTTP requests to the API.

Link to comment
Share on other sites

I was just thinking, if your service had an API, wouldn't it be best to build the API, and use the API within the site, instead of building two separate interfaces, one for the site and one for the API...

 

What are your thoughts on that?

 

Yeah, that makes perfect sense and is indeed how you would do it, and if you use an MVC type of approach you should be able to execute controller/actions without making any http request.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.