Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Arkindex
Backend
Commits
fc394ce5
Commit
fc394ce5
authored
5 years ago
by
Bastien Abadie
Browse files
Options
Downloads
Plain Diff
Merge branch 'metadata-type-docs' into 'master'
Add metatype docs See merge request
!680
parents
5084f544
8c26e701
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!680
Add metatype docs
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arkindex/documents/api/elements.py
+12
-1
12 additions, 1 deletion
arkindex/documents/api/elements.py
with
12 additions
and
1 deletion
arkindex/documents/api/elements.py
+
12
−
1
View file @
fc394ce5
...
...
@@ -765,7 +765,18 @@ class RegionBulkCreate(CreateAPIView, UpdateAPIView):
class
ElementMetadata
(
CreateAPIView
):
"""
Create a medadata on an existing element
Create a metadata on an existing element.
The `date` type allows dates to be parsed and indexed for search APIs. The supported date formats are as follows:
* `YYYY`: `1995` (recommended)
* `YYYY-MM`: `1995-02` (recommended)
* `YYYY-MM-DD`: `1995-02-16` (recommended)
* `/YYYY(.*)month/`: `1995, february`, with months in French or English (case-insensitive)
* `YYYY-YYYY`: `1995-1996` (yields a date interval)
The `reference` type is also indexed in search APIs and allows searching by
known identifiers or references, or any arbitrary string.
"""
permission_classes
=
(
IsVerified
,
)
serializer_class
=
MetaDataUpdateSerializer
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment