Quickly create a REST API from a database

I designed my database diagram (11 entites) for my prototype application. I need to have a REST API on top of this, which will allow me to create a prototype Android tablet application that will talk to him.

Given this only for prototypes. What would be a quick way to get the API and run it, which would allow me to get, put, delete, etc.

Security at this point is not a problem, so even if all the added editing changes were open, that would be nice.

My initial idea is to build this with PHP and MySQL, perhaps using the Yii framework to help, but I feel there might be something that could be faster for my purpose.

Any thoughts or recommendations or tips?

+5
source share
3 answers

It's worth exploring the quick prototype API tools like Apify (the tutorial ) as you start from scratch. If you plan to use both the API and the website to access the same data, consider using a single framework for both, as this helps prevent duplication of logic. CakePHP and Yii are good multipurpose examples that are suitable for this type of development.

+6
source

If Python is an option, it is trivial to use the lightweight http framework to create a REST API that accesses the database.

http- itty: https://github.com/toastdriven/itty/blob/master/examples/web_service.py https://github.com/toastdriven/itty/blob/master/examples/posting_data.py

+2

, API REST .

https://github.com/GeekyTheory/Automatic-API-REST

  • API REST MySQL .
  • API .
  • .
  • .

0
source

All Articles