Comments (7)
You must use @ApiDoc
annotation in your custom controller.
from api-platform.
@dunglas, you mean, that i must remove method declaration from service and use just @apidoc annotation? Because if i use if with declared service, there are 2 identical methods, with different documentation
from api-platform.
@dunglas after adding @apidoc annotations i have got 2 tabs in documentation, if i remove the service declaration of this method, than documentation of this method disappear
from api-platform.
Hum sounds logical.
Why don't you create specific resources for phones etc? The only solution I can think about is to override the DunglasApiParser
(https://github.com/nelmio/NelmioApiDocBundle/blob/master/Parser/DunglasApiParser.php) service of NelmioApiDoc and replace it with a custom one ignoring/doing special things for special operations.
from api-platform.
It could be a nice addition to V2, it still generate two panels even with entity annotations
from api-platform.
@napalm33700 WDYM ?
from api-platform.
@Simperfit it was a bug resolved now there were two documentations for custom operation if @apidoc
annotation was used.
from api-platform.
Related Issues (20)
- Graphql schema generation doesn't work with enums
- Use NextJS14 with app router instead of pages. HOT 1
- Custom controllers with parameters are no longer working, throwing "Invalid identifier value or configuration." error
- How to add custom property in default paginator restult
- Inconsistency in Context Concatenation with fetch_data in ItemNormalizer.php
- ApiRessource override GetCollection
- PATCH method without a provider throws a 404 error HOT 1
- OpenAPI (Swagger) documentation does not take into account the routes hostname HOT 2
- Urgent help needed: Inconsistent PropertyFilter Behavior in API Platform v3 in prod env HOT 8
- PWA prod build: ERR_INVALID_URL
- How apply assert collection when ApiProperty is set as iri with writableLink
- Feature request - Restrict ApiFilter usages with security
- Yaml resource configs with Symfony parameters doesn't work
- Attribute that allows schema definition without exposing an endpoint
- Entity definition without groups in docs.json
- Symfony Runtime is missing HOT 12
- Serialization of 'Closure' is not allowed/ Async Symfony Messenger Processor / ContextStamp HOT 1
- Filters not disabled after applying an empty filter field HOT 1
- ResponseDTO Types Get Serialized Incorrectly HOT 1
- CollectionOperation GET|POST with nested path no longer working in API-Platform v3.2 (coming from v2.4) HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from api-platform.