https://github.com/shweta130890/yii-framework
https://github.com/shweta130890/yii-framework
nodejs yii2 yii2-framework
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/shweta130890/yii-framework
- Owner: shweta130890
- License: mit
- Created: 2019-07-09T04:10:39.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-22T06:26:55.000Z (over 2 years ago)
- Last Synced: 2025-02-16T18:18:22.209Z (3 months ago)
- Topics: nodejs, yii2, yii2-framework
- Language: CSS
- Size: 3.42 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# user api with yii2 basic
#### Web apps with Yii 2 Rest API..
Built with * [Yii2](http://www.yiiframework.com/)
## Prerequisite Technologies
* [Git](https://git-scm.com/downloads)
* MySql## Installation
Clone the repository from Github.
```
git clone https://github.com/shweta130890/yii-framework.git
cd yii-framework
composer update
```## APIs with sample payloads
### GET(api/users/index)
```json
[
{
"id": 1,
"username": "shweta",
"email": "[email protected]",
"password": "123456",
"isActive": false,
"role": 1
},
{
"id": 2,
"username": "shweta1",
"email": "[email protected]",
"password": "123456",
"isActive": true,
"role": 1
},
{
"id": 3,
"username": "shweta2",
"email": "[email protected]",
"password": "123456",
"isActive": true,
"role": 10
}
]
```### POST(api/users/login)
```json
{
"username": "shweta/[email protected]",
"password": "123456"
}
```### POST(api/users/signup)
```json
{
"username": "shweta2",
"email": "[email protected]",
"password": "123456"
}
```
### PUT(api/users/update?id=1)
```json
{
"id": 2,
"username": "test",
"email": "[email protected]",
"fullname": "",
"password": "$2y$13$QHpmTWzZI3SGI45km.IFR.iAeYyeFF/WTWGijxF6JzGZxDN1CgDoa",
"role": 1,
"status": 1,
"created_at": "2019-07-09 18:53:01",
"updated_at": "2019-07-11 06:43:50",
"last_login": "2019-07-09 20:36:11"
}
```