Skip to content

Commit 998a98a

Browse files
authored
Merge pull request #565 from api-platform/revert-549-fix/images-docs
Revert "fix images"
2 parents 31f509c + ceb9889 commit 998a98a

18 files changed

+15
-41
lines changed

core/index.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ high performance API first projects.
1313
If you are starting a new project, the easiest way to get API Platform up is to install
1414
the [API Platform Distribution](../distribution/index.md).
1515

16-
![Screenshot][Screenshot]
17-
18-
[Screenshot]: ../../images/distribution/swagger-ui-1.png
16+
![Screenshot](../distribution/images/swagger-ui-1.png)
1917

2018
## Features
2119

core/jwt.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,7 @@ api_platform:
8080
8181
And the "Authorize" button will automatically appear in Swagger UI.
8282
83-
![Screenshot of API Platform with Authorize button][AuthorizeButton]
84-
85-
[AuthorizeButton]: ../../images/core/JWTAuthorizeButton.png
83+
![Screenshot of API Platform with Authorize button](images/JWTAuthorizeButton.png)
8684
8785
### Adding a New API Key
8886
@@ -93,9 +91,9 @@ You must set the [JWT token](https://github.com/lexik/LexikJWTAuthenticationBund
9391
```
9492
Bearer MY_NEW_TOKEN
9593
```
96-
![Screenshot of API Platform with the configuration API Key][APIKey]
9794
98-
[APIKey]: ../../images/core/JWTConfigureApiKey.png
95+
![Screenshot of API Platform with the configuration API Key](images/JWTConfigureApiKey.png)
96+
9997
10098
## Testing with Behat
10199

core/nelmio-api-doc.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ NelmioApiDocBundle between version 2.9 and 3.0.
77

88
For new projects, prefer using the built-in Swagger support and/or NelmioApiDoc 3.
99

10-
![Screenshot of API Platform integrated with NelmioApiDocBundle][NelmioApiDocBundle]
11-
12-
[NelmioApiDocBundle]: ../../images/core/NelmioApiDocBundle.png
10+
![Screenshot of API Platform integrated with NelmioApiDocBundle](images/NelmioApiDocBundle.png)
1311

1412
[NelmioApiDocBundle](https://github.com/nelmio/NelmioApiDocBundle) is supported by API Platform since version 2.9.
1513

core/serialization.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ API Platform embraces and extends the Symfony Serializer Component to transform
66

77
The main serialization process has two stages:
88

9-
![Serializer workflow][SerializerWorkflow]
10-
11-
[SerializerWorkflow]: ../../images/core/NelmioApiDocBundle.png
9+
![Serializer workflow](images/SerializerWorkflow.png)
1210

1311
> As you can see in the picture above, an array is used as a man-in-the-middle. This way, Encoders will only deal with turning specific formats into arrays and vice versa. The same way, Normalizers will deal with turning specific objects into arrays and vice versa.
1412
-- [The Symfony documentation](https://symfony.com/doc/current/components/serializer.html)

core/swagger.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ API Platform natively support the [Open API](https://www.openapis.org/) (formerl
44
It also integrates a customized version of [Swagger UI](https://swagger.io/swagger-ui/), a nice tool to display the
55
API documentation in a user friendly way.
66

7-
![Screenshot][Swagger]
8-
9-
[Swagger]: ../../images/distribution/swagger-ui-1.png
7+
![Screenshot](../distribution/images/swagger-ui-1.png)
108

119
## Overriding the Swagger Documentation
1210

@@ -259,9 +257,7 @@ resources:
259257
description: Pink rabbit
260258
```
261259
262-
![Impact on swagger ui][SwaggerUI]
263-
264-
[SwaggerUI]: ../../images/distribution/swagger-ui-2.png
260+
![Impact on swagger ui](../distribution/images/swagger-ui-2.png)
265261
266262
## Changing the Swagger UI Location
267263

0 commit comments

Comments
 (0)