Skip to content

Commit 526fa56

Browse files
committed
Merge branch '3.3' into 3.4
2 parents 2311cda + 4234557 commit 526fa56

File tree

8 files changed

+377
-25
lines changed

8 files changed

+377
-25
lines changed

.github/workflows/cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout the website
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515
with:
1616
repository: api-platform/website
1717
ref: main
@@ -20,7 +20,7 @@ jobs:
2020
id: yarn-cache-dir-path
2121
run: echo "dir=$(yarn cache dir)" >> "$GITHUB_OUTPUT"
2222

23-
- uses: actions/cache@v3
23+
- uses: actions/cache@v4
2424
id: yarn-cache
2525
with:
2626
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}

.github/workflows/ci.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,34 @@ on:
44
push:
55
pull_request:
66

7+
permissions: {}
8+
79
jobs:
810
build:
911
name: Lint
1012
runs-on: ubuntu-latest
1113

14+
permissions:
15+
contents: read
16+
packages: read
17+
statuses: write
18+
1219
steps:
1320
- name: Checkout
14-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
1524

1625
- name: Lint
1726
uses: github/super-linter/slim@v4
1827
env:
1928
VALIDATE_ALL_CODEBASE: false
2029
VALIDATE_EDITORCONFIG: false
2130
VALIDATE_JSCPD: false
22-
DEFAULT_BRANCH: 3.4
31+
DEFAULT_BRANCH: "4.0"
2332
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2433

25-
- uses: actions/cache@v3
34+
- uses: actions/cache@v4
2635
with:
2736
path: ~/.cache/pip
2837
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}

core/content-negotiation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
The API system has built-in [content negotiation](https://en.wikipedia.org/wiki/Content_negotiation) capabilities.
44

5-
By default, only the [JSON-LD](https://json-ld.org) and JSON formats are enabled. However API Platform supports many more formats and can be extended.
5+
By default, only the [JSON-LD](https://json-ld.org) format is enabled. However API Platform supports many more formats and can be extended.
66

77
The framework natively supports JSON-LD (and Hydra), GraphQL, JSON:API, HAL, YAML, CSV, HTML (API docs), raw JSON and raw XML.
88
Using the raw JSON or raw XML formats is discouraged, prefer using JSON-LD instead, which provides more feature and is as easy to use.
99

10-
API Platform also supports [JSON Merge Patch (RFC 7396)](https://tools.ietf.org/html/rfc7396) the JSON:API [`PATCH`](https://tools.ietf.org/html/rfc5789) formats, as well as [Problem Details (RFC 7807)](https://tools.ietf.org/html/rfc7807), Hydra and JSON:API error formats.
10+
API Platform also supports [JSON Merge Patch (RFC 7396)](https://tools.ietf.org/html/rfc7396) the JSON:API [`PATCH`](https://jsonapi.org/format/#crud-updating) formats, as well as [Problem Details (RFC 7807)](https://tools.ietf.org/html/rfc7807), [Hydra](https://www.hydra-cg.com/spec/latest/core/#description-of-http-status-codes-and-errors) and [JSON:API](https://jsonapi.org/format/#errors) error formats.
1111

1212
<p align="center" class="symfonycasts"><a href="https://symfonycasts.com/screencast/api-platform/formats?cid=apip"><img src="/docs/distribution/images/symfonycasts-player.png" alt="Formats screencast"><br>Watch the Formats screencast</a></p>
1313

0 commit comments

Comments
 (0)