File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,11 @@ composer create-project restjs/rest-api
8
8
```
9
9
10
10
## 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 ` .
13
12
- Configure database variables in .env:
14
13
15
14
```
16
- HOST_NAME = ''
17
- USER_NAME = ''
18
- PASSWORD = ''
15
+ DATABASE_HOST = ''
19
16
DATABASE_NAME = ''
20
17
ACCESS_TOKEN = ''
21
18
```
@@ -30,8 +27,8 @@ ACCESS_TOKEN = ''
30
27
### API Routes
31
28
| HTTP Method | Path | Action | Scope | Desciption |
32
29
| ----- | ----- | ----- | ---- | ------------- |
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
You can’t perform that action at this time.
0 commit comments