Installing slim/slim (3.12.1): Loading from cache Installing pimple/pimple (v3.2.3): Loading from cache Installing psr/http-message (1.0.1): Loading from cache Installing nikic/fast-route (v1.3.0): Loading from cache Installing container-interop/container-interop (1.2.0): Loading from cache Installing psr/container (1.0.0): Loading from cache Package operations: 6 installs, 0 updates, 0 removals Updating dependencies (including require-dev) Loading composer repositories with package information You will see a similar message below in the terminal. After the composer installs successfully.Open the bash terminal(you can use your preferred terminal) and run the composer command.Open the VScode(text editor tool) and open the slimapi folder.At the webroot which is www folder in Wamp server, I create the new folder called “ slimapi“.I will focus on creating an API in the Slim framework only. I am not gonna talk about the UnitTest in this post. The framework based on PHP and you can add the UnitTest(using PHPUnit) to work with the API as well. In this post, I gonna share how to create the REST API with the fast and lightweight framework called Slim. So you can provide this special API for this Europe tour company only.Īs I am a web developer, I mostly work with Web APIs or often called RESTful (representational state transfer). For example, you agree to sell Thailand package tours with a spacial price for the Europe tour company. The partner API, it is used by the specific parties who make an agreement with. The public API, it is published outside the company such as the tour packages information. Mostly it is used for the development purpose for developers. In short, the private API is used as the internal API in the company. They are the private API, public API, and partner API. For example, you have your own custom application or custom website and you want to exchange your data with the Facebook app or mobile application or other applications, you can create your own API and allow those platforms to access your data that you want them to access.įor the business standpoint, API can open up new opportunities for new business partnerships with related service providers such as Travel business, Spa, Tour, Hotel and restaurant.ĪPIs can categorize in three basic types. It lets your product or service communicate with other platforms. API stands for an application programming interface. API, you may hear about it often nowadays.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |