3
3
[ ![ Pre Release] ( https://img.shields.io/packagist/vpre/tobyz/json-api-server.svg?style=flat )] ( https://github.com/tobyzerner/json-api-server/releases )
4
4
[ ![ License] ( https://img.shields.io/packagist/l/tobyz/json-api-server.svg?style=flat )] ( https://packagist.org/packages/tobyz/json-api-server )
5
5
6
- json-api-server is a [ JSON: API ] ( http://jsonapi.org ) server implementation in PHP.
6
+ json-api-server is a [ JSON: API ] ( http://jsonapi.org ) server implementation in
7
+ PHP.
7
8
8
- It allows you to build a feature-rich API by defining resource schema and connecting it to your
9
- application's database layer.
9
+ It allows you to build a feature-rich API by defining resource schema and
10
+ connecting it to your application's database layer.
10
11
11
- Based on your schema definition, the package will serve a complete API that conforms to the
12
- [ JSON: API specification] ( https://jsonapi.org/format/ ) , including support for:
12
+ Based on your schema definition, the package will serve a complete API that
13
+ conforms to the [ JSON: API specification] ( https://jsonapi.org/format/ ) , including
14
+ support for:
13
15
14
16
- ** Showing** individual resources (` GET /articles/1 ` )
15
17
- ** Listing** resource collections (` GET /articles ` )
@@ -29,9 +31,10 @@ Based on your schema definition, the package will serve a complete API that conf
29
31
30
32
## Example
31
33
32
- The following example uses an Eloquent model in a Laravel application. However, json-api-server can
33
- be used with any framework that can deal in PSR-7 Requests and Responses. Custom behavior can be
34
- implemented to support other ORMs and data persistence layers.
34
+ The following example uses an Eloquent model in a Laravel application. However,
35
+ json-api-server can be used with any framework that can deal in PSR-7 Requests
36
+ and Responses. Custom behavior can be implemented to support other ORMs and data
37
+ persistence layers.
35
38
36
39
``` php
37
40
use App\Models\User;
@@ -101,8 +104,8 @@ try {
101
104
102
105
## Contributing
103
106
104
- Pull requests are welcome. For major changes, please open an issue first to discuss what you would
105
- like to change.
107
+ Pull requests are welcome. For major changes, please open an issue first to
108
+ discuss what you would like to change.
106
109
107
110
## License
108
111
0 commit comments