Skip to content

Commit c546619

Browse files
release v2.0.0
1 parent 443b58f commit c546619

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,11 @@ composer create-project restjs/rest-api
88
```
99

1010
## Getting Started
11-
- Create new **Database** with `database_name`.
12-
- Import php-rest-api.sql file in **MySQL Database**.
11+
- Create new **Database** with `mongodb`.
1312
- Configure database variables in .env:
1413

1514
```
16-
HOST_NAME = ''
17-
USER_NAME = ''
18-
PASSWORD = ''
15+
DATABASE_HOST = ''
1916
DATABASE_NAME = ''
2017
ACCESS_TOKEN = ''
2118
```
@@ -30,8 +27,8 @@ ACCESS_TOKEN = ''
3027
### API Routes
3128
| HTTP Method | Path | Action | Scope | Desciption |
3229
| ----- | ----- | ----- | ---- |------------- |
33-
| GET | /<table_name> | index | data:list | Get all data
34-
| POST | /<table_name> | store | data:create | Create an data
35-
| GET | /<table_name>/{_id} | show | data:read | Fetch an data by id
36-
| PUT | /<table_name>/{_id} | update | data:write | Update an data by id
37-
| DELETE | /<table_name>/{_id} | destroy | data:delete | Delete an data by id
30+
| GET | /<collection_name> | index | document:list | Get all document
31+
| POST | /<collection_name> | store | document:create | Create an document
32+
| GET | /<collection_name>/{_id} | show | document:read | Fetch an document by id
33+
| PUT | /<collection_name>/{_id} | update | document:write | Update an document by id
34+
| DELETE | /<collection_name>/{_id} | destroy | document:delete | Delete an document by id

0 commit comments

Comments
 (0)