Skip to content

Commit a8ea4cc

Browse files
release v2.0.0
1 parent a4eb731 commit a8ea4cc

File tree

2 files changed

+29
-7
lines changed

2 files changed

+29
-7
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff 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

composer.json

+24-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "restjs/php-rest-api",
33
"description": "Create Rest API Application",
4+
"type": "package",
45
"keywords": [
56
"php",
67
"composer",
@@ -17,7 +18,28 @@
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": {
@@ -26,4 +48,4 @@
2648
"alcaeus/mongo-php-adapter": "^1.2",
2749
"vlucas/phpdotenv": "^5.6"
2850
}
29-
}
51+
}

0 commit comments

Comments
 (0)