Professional Documents
Culture Documents
0.1 Yii2 MicroService
0.1 Yii2 MicroService
MICROSERVICE
YII2 – PHP FRAMEWORK
• - REST API
• - Active Record
• - Authentication and Authorization
YII2 – REST API
• Method GET/PUT/POST/DELETE/OPTION • pluralize = true (default)
• URL rules GET /api/v1/i20-records
• Eg: GET /api/v1/i20-records/search
• [ GET /api/v1/i20-records/1
• Login at IDM
• All request must include iPlanetDirectoryPro token in header for authentication
• Validate the token request against IDM
• Call to get the policy file and use YII Access Filter to Authorize the access at
function level
• Authorize the access at rows level
• Authorize the access at fields level
KSS MICROSERVICES
• Profile - IDM (Chris)
• Product Catalog (PROC) (Moises)
• Admission
• Task/Activity
• Enrolment
• Individual Study Plan (ISP)
• Scheduling
• Grade
KSS MICROSERVICES - ENVIRONMENTS
• DEV --> GIT /KSS-application-microservice [dev] branch
- URL http://54.169.121.216
- Need code review by leader
• TEST --> GIT /KSS-application-microservice [uat-test] branch
- URL http://52.221.101.132
- merge by leader
• STABLE --> Different GIT repos for different microservices.
- [stable] branch of the repos
- URL http://kss3-stable.kss-uat.kapintdc.com/
- It's dockerized
- Need code review by Roldan
KSS MICROSERVICES - CODEBASE
• https://github.com/Kaplan-Singapore/KSS- • https://github.com/Kaplan-Singapore/KSS
application-microservice -application-microservice
--> [dev] branch --> [uat-test] branch
KSS KSS
admission admission
common common
enrolment enrolment
master master
studyplan studyplan
task task
timetable timetable
KSS MICROSERVICES - CODEBASE
• STABLE environment is Dockerize as below
Git /KSS-application- Profile - IDM
microservice
/KSS
/admission
/common
RabbitMQ
Git /KSS-activity-microservice Product Catalog
/KSS
/task
/common