Skip to content

Commit 1e34ffb

Browse files
committed
Update changelog
1 parent ecb8825 commit 1e34ffb

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,25 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88
## [Unreleased]
9+
### Added
10+
- Content-Type validation and Accept negotation
11+
- Include `jsonapi` object with `version` member in response
12+
- Validate implementation-specific query parameters according to specification
13+
- Added `Location` header to `201 Created` responses
14+
- Improved error repsonses when creating and updating resources
15+
- `Context::filter()` method to get the value of a filter
16+
- `ResourceType::applyScope()`, `applyFilter()` and `applySort()` methods
17+
- `ResourceType::url()` method to get the URL for a model
18+
- `Forbidden` error details for CRUD actions, useful when running Atomic Operations
19+
- `JsonApi::getExtensions()` method to get all registered extensions
20+
- `ConflictException` class
21+
22+
### Changed
23+
- Renamed `$linkage` parameter in `AdapterInterface` methods to `$linkageOnly`
24+
- Renamed `Type::newModel()` to `model()` to be consistent with Adapter
25+
26+
### Fixed
27+
- Properly respond with meta information added to `Context` instance
928

1029
## [0.2.0-beta.1] - 2021-08-27
1130
### Added

src/ResourceType.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ public function getSchema(): Type
5454
return $this->schema;
5555
}
5656

57+
/**
58+
* Get the URL for a model.
59+
*/
5760
public function url($model, Context $context): string
5861
{
5962
$id = $this->adapter->getId($model);

0 commit comments

Comments
 (0)