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
https://forums.phpfreaks.com/topic/258617-site-built-upon-your-own-api/
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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.