2 ms·
Thanks, I'm just wondering because, even though this approach had fantastic advantages, there also seem to be some things which are done differently in an API.
by StavrosK 16y ago
Thanks, I'm just wondering because, even though this approach had fantastic advantages, there also seem to be some things which are done differently in an API. For example, the API might use OAuth after logging the user in with credentials, so this is a case where things are done differently in the two approaches.
In this case, does one simply write two ways of doing things? You might also not want to let the users do things with the api that they can do on the site, or give different permissions to the site versus the API. How do you handle these things?