File tree Expand file tree Collapse file tree 2 files changed +29
-7
lines changed Expand file tree Collapse file tree 2 files changed +29
-7
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ composer required restjs/php-rest-api
1717### API Routes
1818| HTTP Method | Path | Action | Scope | Desciption |
1919| ----- | ----- | ----- | ---- | ------------- |
20- | GET | /<table_name > | index | data : list | Get all data
21- | POST | /<table_name > | store | data : create | Create an data
22- | GET | /<table_name >/{_ id} | show | data : read | Fetch an data by id
23- | PUT | /<table_name >/{_ id} | update | data : write | Update an data by id
24- | DELETE | /<table_name >/{_ id} | destroy | data : delete | Delete an data by id
20+ | GET | /<collection_name > | index | document : list | Get all document
21+ | POST | /<collection_name > | store | document : create | Create an document
22+ | GET | /<collection_name >/{_ id} | show | document : read | Fetch an document by id
23+ | PUT | /<collection_name >/{_ id} | update | document : write | Update an document by id
24+ | DELETE | /<collection_name >/{_ id} | destroy | document : delete | Delete an document by id
Original file line number Diff line number Diff line change 11{
22 "name" : " restjs/php-rest-api" ,
33 "description" : " Create Rest API Application" ,
4+ "type" : " package" ,
45 "keywords" : [
56 " php" ,
67 " composer" ,
1718 "RestJS\\ PhpRestApi\\ " : " src/"
1819 }
1920 },
20-
21+ "repositories" : [
22+ {
23+ "type" : " package" ,
24+ "package" : {
25+ "name" : " RestJS/php-rest-api" ,
26+ "version" : " v2" ,
27+ "source" : {
28+ "url" : " https://github.com/fullstackondemand/php-rest-api.git" ,
29+ "type" : " git" ,
30+ "reference" : " master"
31+ }
32+ }
33+ }
34+ ],
35+ "authors" : [
36+ {
37+ "name" : " Pramod Singh" ,
38+ "email" : " spramodgusain@gmail.com" ,
39+ "homepage" : " https://github.com/fullstackondemand" ,
40+ "role" : " Developer"
41+ }
42+ ],
2143 "minimum-stability" : " dev" ,
2244 "prefer-stable" : true ,
2345 "require" : {
2648 "alcaeus/mongo-php-adapter" : " ^1.2" ,
2749 "vlucas/phpdotenv" : " ^5.6"
2850 }
29- }
51+ }
You can’t perform that action at this time.
0 commit comments