Skip to content

Commit 5d3824b

Browse files
committed
code challenge 11 solution
1 parent 7bf982f commit 5d3824b

24 files changed

+985
-129
lines changed

CODING-CHALLENGE-11.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,6 @@ nelmio_api_doc:
2626
```
2727
2828
- add some annotation to your controllers, check https://github.com/zircote/swagger-php/tree/master/Examples for examples
29+
- to be able to see the api documentation website, you need to install Twig and the Asset component:
30+
`composer require twig asset` and adjust the routing configuration for the `nelmio/api-doc-bundle` in
31+
`config/routes/nelmio_api_doc.yaml`

CODING-CHALLENGE-12.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# RESTful Webservices in Symfony
2+
3+
## Coding Challenge 12 - Versionierung
4+
5+
### Tasks
6+
7+
Let's see how we can deprecate a property or sunset an API endpoint.

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@
1313
"doctrine/doctrine-migrations-bundle": "^3.2",
1414
"doctrine/orm": "^2.10",
1515
"lexik/jwt-authentication-bundle": "^2.14",
16+
"nelmio/api-doc-bundle": "^4.6",
1617
"phpdocumentor/reflection-docblock": "^5.3",
1718
"ramsey/uuid": "^4.2",
1819
"ramsey/uuid-doctrine": "^1.8",
1920
"sensio/framework-extra-bundle": "^6.2",
21+
"symfony/asset": "5.4.*",
2022
"symfony/console": "5.4.*",
2123
"symfony/deprecation-contracts": "^2.1|^3",
2224
"symfony/dotenv": "5.4.*",
@@ -30,8 +32,11 @@
3032
"symfony/security-bundle": "5.4.*",
3133
"symfony/serializer": "5.4.*",
3234
"symfony/string": "5.4.*",
35+
"symfony/twig-bundle": "5.4.*",
3336
"symfony/validator": "5.4.*",
3437
"symfony/yaml": "5.4.*",
38+
"twig/extra-bundle": "^2.12|^3.0",
39+
"twig/twig": "^2.12|^3.0",
3540
"webmozart/assert": "^1.10",
3641
"willdurand/negotiation": "^3.0"
3742
},

0 commit comments

Comments
 (0)