Skip to content

Commit ec40bb0

Browse files
authored
Update index.md
1 parent 901bc3b commit ec40bb0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

index.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[JSON API spec](http://jsonapi.org/format/) | [GitHub](https://github.com/json-api-php/json-api)
2-
# JSON API in PHP 7
32

3+
# JSON API in PHP 7
4+
---
45
This library is an attempt to express business rules of [JSON API v1.0](http://jsonapi.org/format/)
56
specification in a set of PHP 7 classes. We adhere to the following concepts:
67
- Test-first development
@@ -166,7 +167,9 @@ $doc->setLink('last', 'http://example.com/articles?page[offset]=10');
166167

167168
echo json_encode($doc, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
168169
```
170+
169171
## API
172+
170173
Please refer to [the tests](https://github.com/json-api-php/json-api/tree/master/test) for the full API documentation:
171174
* [Documents](https://github.com/json-api-php/json-api/tree/master/test/Document/DocumentTest.php). Creating documents with primary data, errors, and meta.
172175
Adding links and API version to a document.
@@ -175,5 +178,7 @@ Adding links and API version to a document.
175178
* [Resources](https://github.com/json-api-php/json-api/tree/master/test/Document/Resource/ResourceTest.php)
176179
* [Relationships](https://github.com/json-api-php/json-api/tree/master/test/Document/Resource/Relationship/RelationshipTest.php)
177180
* [Linkage](https://github.com/json-api-php/json-api/tree/master/test/Document/Resource/Relationship/LinkageTest.php)
181+
178182
## Installation
183+
179184
`composer require json-api-php/json-api`

0 commit comments

Comments
 (0)