Repository navigation
Generate API docs - #6319
Generate API docs#6319
Conversation
- Some provided options were not correct
- `/api/plugins/activate` routed to PluginActivate view - Must be associated with a specific plugin ID
…-api-docs # Conflicts: # InvenTree/InvenTree/api.py # InvenTree/InvenTree/settings.py # InvenTree/common/api.py # InvenTree/plugin/api.py # InvenTree/stock/api.py # InvenTree/users/api.py
- Specify serializer - Use RetrieveAPI class type
# Conflicts: # InvenTree/users/api.py # requirements.txt
✅ Deploy Preview for inventree-web-pui-preview ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
Maybe related to #6269? |
| class APISearchViewSerializer(serializers.Serializer): | ||
| """Serializer for the APISearchView.""" | ||
|
|
||
| search = serializers.CharField() | ||
| search_regex = serializers.BooleanField(default=False, required=False) | ||
| search_whole = serializers.BooleanField(default=False, required=False) | ||
| limit = serializers.IntegerField(default=1, required=False) | ||
| offset = serializers.IntegerField(default=0, required=False) |
There was a problem hiding this comment.
@SchrodingersGat I have added only the base inputs for now. We expose a lot of models as optional parameters - should we add them to the serializer? Seems to add a bunch of duplication

There was a problem hiding this comment.
I'm happy to leave as-is for now. We can always update later on
he might be anonymously creating the schema ;-)
|
@SchrodingersGat all errors are gone but there is still a bunch of warnings that require separating reference names for enums and operations. How set are you on solving them? |
|
@SchrodingersGat are you aware of |
Co-authored-by: Matthias Mair <[email protected]>
I am now :) There are so many features now, I had forgotten about that. I have now removed the duplicate task |
|
@matmair thanks for the help getting this one passing :) |


Working towards external generation of API docs.
A BIG part of this PR will be removing our custom
filter_querysetmethods which do secret filtering that does not get exposed to the autodocs.Ref: #6435