Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
assetmanagerLogin
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
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
arun.uday
assetmanagerLogin
Commits
8f017c7c
Commit
8f017c7c
authored
Mar 23, 2023
by
Arun Uday
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes to api calls
parent
1df069bc
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
11 deletions
+8
-11
scripts/constants/api.py
scripts/constants/api.py
+0
-1
scripts/log/AssetManagerlog.log
scripts/log/AssetManagerlog.log
+1
-0
scripts/schemas/project_schema.py
scripts/schemas/project_schema.py
+5
-8
scripts/services/v1/__init__.py
scripts/services/v1/__init__.py
+1
-1
scripts/services/v1/iot_manager_services.py
scripts/services/v1/iot_manager_services.py
+1
-1
No files found.
scripts/constants/api.py
View file @
8f017c7c
...
...
@@ -18,4 +18,3 @@ class ApiEndPoints:
asset_manager_user_add
:
str
=
asset_manager_user_registration
+
create
asset_manager_user_update
:
str
=
asset_manager_user_registration
+
update
asset_manager_user_delete
:
str
=
asset_manager_user_registration
+
delete
scripts/log/AssetManagerlog.log
View file @
8f017c7c
...
...
@@ -964,3 +964,4 @@ ImportError: cannot import name 'Services' from 'scripts.constants' (E:\Git\meta
2023-03-23 19:09:51 - INFO - [MainThread:<module>(): 37] - App Starting at 127.0.0.1:8671
2023-03-23 19:33:49 - INFO - [MainThread:<module>(): 37] - App Starting at 127.0.0.1:8671
2023-03-23 19:34:12 - INFO - [MainThread:<module>(): 37] - App Starting at 127.0.0.1:8671
2023-03-23 22:40:22 - INFO - [MainThread:<module>(): 37] - App Starting at 127.0.0.1:8671
\ No newline at end of file
scripts/schemas/project_schema.py
View file @
8f017c7c
...
...
@@ -5,14 +5,11 @@ from pydantic import BaseModel
# model for login request
class
LoginRequest
(
BaseModel
):
username
:
Union
[
str
,
None
]
=
None
password
:
Union
[
str
,
None
]
=
None
username
:
str
password
:
str
class
RegistrationData
:
name
:
Union
[
str
,
None
]
=
None
email
:
Union
[
str
:
None
]
=
None
password
:
Union
[
str
:
None
]
=
None
user_role
:
Union
[
str
:
None
]
=
None
is_alive
:
Union
[
bool
:
None
]
=
None
created_at
:
Union
[
str
:
None
]
=
None
name
:
str
email
:
str
user_role
:
str
scripts/services/v1/__init__.py
View file @
8f017c7c
...
...
@@ -3,6 +3,6 @@ from scripts.constants.api import ApiEndPoints
from
scripts.services.v1
import
iot_manager_services
# creating the api router with version as the prefix
router
=
APIRouter
(
prefix
=
ApiEndPoints
.
asset_manager_login
)
router
=
APIRouter
()
# routing to the service api
router
.
include_router
(
iot_manager_services
.
router
)
scripts/services/v1/iot_manager_services.py
View file @
8f017c7c
...
...
@@ -12,7 +12,7 @@ router = APIRouter(prefix=ApiEndPoints.version)
obj_login_handler
=
LoginHandlers
()
@
router
.
post
(
ApiEndPoints
.
asset_manager_
login
)
@
router
.
post
(
ApiEndPoints
.
asset_manager_
submit
)
async
def
login_default
(
login_type
:
str
,
user_data
:
LoginRequest
,
...
...
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