top | item 8832131

(no title)

philstu | 11 years ago

Seems relevant.

https://twitter.com/philsturgeon/status/544965192883261441

discuss

order

michaelchisari|11 years ago

I think most people here would prefer if your link had a better explanation/defense.

grumblestumble|11 years ago

Perhaps the explanation is so self-evident that it seems redundant. The entire point of an API is to abstract away the underlying database schema.

curiously|11 years ago

PHP seems to attract the bottom of the barrel "brogrammer" types.

Kayne West of PHP. That says it all.

philstu|11 years ago

It truly blows my mind that any further explanation would be required.

If you want a data store that exposes your database over HTTP then use on of the billion data stores that is designed to do that. None of those are meant to be a public API, and doing this is so incredibly wreckless and short sighted I could write at least a chapter in a book about it.

Actually, I did write a chapter in a book about it.

https://leanpub.com/build-apis-you-wont-hate

A RESTful API is about so many more things than just shoving a generic CRUD interface on top of your data schema.