Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
rpteam
Revue de Press
Commits
138f9412
Commit
138f9412
authored
May 23, 2019
by
Okhin
Browse files
AAdding a bit of doc for the API
parent
84565d6b
Pipeline
#2614
passed with stages
in 3 minutes and 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
apps/rp/api/views.py
View file @
138f9412
...
...
@@ -19,6 +19,16 @@ class ArticleViewSet(ArticleMixin, ArticleFilterMixin, viewsets.ModelViewSet):
The RequestBody is only needed for the create, update and partial_update
functions.
You can add query parameters to do some filtering, Those are :
q="search terms" # to do a plaintext search into the title and extract
# of articles
archive="true|[false]|both" # to filter on the archive flag or to
# disable filtering on this flag.
speak="true|false|[both]" # to filter on the speak flag, or to disable
# filtering on this flag.
quote="true|false|[both]" # to filter on the quote flag, or to disable
# filtering on this flag.
list:
List all known articles in database.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment