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
9e0bf249
Verified
Commit
9e0bf249
authored
4 years ago
by
Erwan Rouchet
Browse files
Options
Downloads
Patches
Plain Diff
Add OpenAPI docs for email verification endpoint
parent
1d153f1a
No related branches found
No related tags found
1 merge request
!754
Add OpenAPI docs for email verification endpoint
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arkindex/users/api.py
+29
-0
29 additions, 0 deletions
arkindex/users/api.py
with
29 additions
and
0 deletions
arkindex/users/api.py
+
29
−
0
View file @
9e0bf249
...
...
@@ -186,6 +186,35 @@ class UserEmailLogin(CreateAPIView):
class
UserEmailVerification
(
APIView
):
"""
Verify a user
'
s email address
"""
openapi_overrides
=
{
'
operationId
'
:
'
VerifyEmail
'
,
'
tags
'
:
[
'
users
'
],
'
parameters
'
:
[
{
'
name
'
:
'
email
'
,
'
in
'
:
'
query
'
,
'
description
'
:
'
E-mail to verify
'
,
'
required
'
:
True
,
'
schema
'
:
{
'
type
'
:
'
string
'
,
'
format
'
:
'
email
'
,
},
},
{
'
name
'
:
'
token
'
,
'
in
'
:
'
query
'
,
'
description
'
:
'
Verification token
'
,
'
required
'
:
True
,
'
schema
'
:
{
'
type
'
:
'
string
'
,
},
},
],
}
def
get
(
self
,
*
args
,
**
kwargs
):
if
not
all
(
arg
in
self
.
request
.
GET
for
arg
in
(
'
email
'
,
'
token
'
)):
...
...
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