Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CS699-Project
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Meet Narendra
CS699-Project
Commits
b11a0d5b
Commit
b11a0d5b
authored
Nov 21, 2022
by
Meet Narendra
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added details functions
parent
abe9d083
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
sitcomm/api/views.py
sitcomm/api/views.py
+26
-0
No files found.
sitcomm/api/views.py
View file @
b11a0d5b
...
@@ -240,3 +240,29 @@ class getConfluencePagesViewSet(views.APIView):
...
@@ -240,3 +240,29 @@ class getConfluencePagesViewSet(views.APIView):
except
Exception
as
e
:
except
Exception
as
e
:
print
(
e
)
print
(
e
)
return
Response
({
'status'
:
False
})
return
Response
({
'status'
:
False
})
class
getUserDetailsViewSet
(
views
.
APIView
):
def
get
(
self
,
request
):
uid
=
request
.
GET
.
get
(
'uid'
)
try
:
user
=
Users
.
objects
.
filter
(
uid
=
uid
)
if
user
is
None
:
return
Response
({
'status'
:
False
})
return
Response
({
'user'
:
user
.
values
(),
'status'
:
True
})
except
Exception
as
e
:
print
(
e
)
return
Response
({
'status'
:
False
})
class
getProjectDetailsViewSet
(
views
.
APIView
):
def
get
(
self
,
request
):
pid
=
request
.
GET
.
get
(
'pid'
)
try
:
project
=
Projects
.
objects
.
filter
(
pid
=
pid
)
if
project
is
None
:
return
Response
({
'status'
:
False
})
return
Response
({
'project'
:
project
.
values
(),
'status'
:
True
})
except
Exception
as
e
:
print
(
e
)
return
Response
({
'status'
:
False
})
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