You are viewing revision #5 of this wiki article.
This version may not be up to date with the latest version.
You may want to view the differences to the latest version or see the changes made in this revision.
This article is for the one’s who is already working with PHP/Yii2 or who wants to quick start developing a RESTful API using Yii2 framework with
- OAuth 2.0 authentication
- A developer dashboard
- API documentation template
Here I’m sharing the Live demo and Source code of a RESTful API with OAuth2 authentication/security developed using Yii2 framework You can use this if you want to quick start developing your own custom RESTful API by skipping 95% of your scratch works. Hopefully this will save lot of your time as this API includes all the basic stuffs you need to get started.
Developer Dashboard ¶
This API also includes a developer dashboard with the API documentation which is developed in Yii2 framework. This will be useful to manage your developers access to the API documentation.
Why Yii2? ¶
It's Fast, It’s Secure and Professional!. Yii comes with rich features: MVC, DAO/ActiveRecord, I18N/L10N, caching, authentication and role-based access control, scaffolding, testing, etc. It can reduce your development time significantly.
What is a RESTful API? ¶
REST is an architectural style for building APIs. It stands for “Representational State Transfer”. It means when we build an API, we build it in a way that HTTP methods and URIs mean something, and the API has to respond in a way that’s expected.
Something about OAuth 2.0 ¶
The OAuth 2.0 is an authorization framework which enables a third-party application to obtain limited access to an HTTP service.
Source Code ¶
Official Documentation ¶
Documentation for this RESTful API can be found on the Yii 2.0 RESTful API with OAuth 2.0 Documentation. Security Vulnerabilities
If you discover a security vulnerability within this API, please send an e-mail to Sirin k at firstname.lastname@example.org. All security vulnerabilities will be promptly addressed.
Installation instructions ¶