-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
157 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
namespace Flat3\Lodata\Exception\Protocol; | ||
|
||
use Illuminate\Http\Response; | ||
|
||
/** | ||
* Not Modified Exception | ||
* @package Flat3\Lodata\Exception\Protocol | ||
*/ | ||
class NotModifiedException extends ProtocolException | ||
{ | ||
protected $httpCode = Response::HTTP_NOT_MODIFIED; | ||
protected $odataCode = 'not_modified'; | ||
protected $message = 'Not modified'; | ||
protected $suppressContent = true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
tests/Unit/Modify/__snapshots__/UpdateTest__test_any_if_none_match__1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"code": "etag_mismatch", | ||
"message": "The provided If-None-Match header matched the current ETag value" | ||
} |
File renamed without changes.
8 changes: 8 additions & 0 deletions
8
tests/Unit/Modify/__snapshots__/UpdateTest__test_any_if_none_match_any__1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"@context": "http://localhost/odata/$metadata#flights/$entity", | ||
"id": 1, | ||
"origin": "ooo", | ||
"destination": "lax", | ||
"gate": null, | ||
"duration": "PT11H25M0S" | ||
} |
File renamed without changes.
6 changes: 6 additions & 0 deletions
6
tests/Unit/Modify/__snapshots__/UpdateTest__test_any_if_none_match_failed__1.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
headers: | ||
cache-control: ['no-cache, private'] | ||
content-type: [application/json] | ||
odata-version: ['4.01'] | ||
etag: ['W/"46c7c8eb6fca7d5ca6b46b02c0f3455ce8e97ad6246ce46fe92d010cd64e557d"'] | ||
status: 200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...nit/Queries/Entity/__snapshots__/EntityTest__test_read_an_entity_if_none_match_any__1.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
headers: | ||
cache-control: ['no-cache, private'] | ||
content-type: [application/json] | ||
odata-version: ['4.01'] | ||
etag: ['W/"9002879996637791044635c0a75ae412322098677c04322be3da15089239bc76"'] | ||
status: 200 |
6 changes: 6 additions & 0 deletions
6
.../Queries/Entity/__snapshots__/EntityTest__test_read_an_entity_if_none_match_failed__1.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
headers: | ||
cache-control: ['no-cache, private'] | ||
content-type: [application/json] | ||
odata-version: ['4.01'] | ||
etag: ['W/"9002879996637791044635c0a75ae412322098677c04322be3da15089239bc76"'] | ||
status: 200 |