Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2023-029
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
2023-029
2023-029
Commits
b24b2ab2
Commit
b24b2ab2
authored
May 18, 2023
by
supundileepa00
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: Initialized fastAPI app
parent
e39250ce
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
0 deletions
+20
-0
Project/Backend/Server_Python/__pycache__/main.cpython-310.pyc
...ct/Backend/Server_Python/__pycache__/main.cpython-310.pyc
+0
-0
Project/Backend/Server_Python/controllers/__init__.py
Project/Backend/Server_Python/controllers/__init__.py
+0
-0
Project/Backend/Server_Python/controllers/__pycache__/__init__.cpython-310.pyc
...r_Python/controllers/__pycache__/__init__.cpython-310.pyc
+0
-0
Project/Backend/Server_Python/controllers/__pycache__/users_controller.cpython-310.pyc
.../controllers/__pycache__/users_controller.cpython-310.pyc
+0
-0
Project/Backend/Server_Python/controllers/users_controller.py
...ect/Backend/Server_Python/controllers/users_controller.py
+14
-0
Project/Backend/Server_Python/main.py
Project/Backend/Server_Python/main.py
+6
-0
No files found.
Project/Backend/Server_Python/__pycache__/main.cpython-310.pyc
0 → 100644
View file @
b24b2ab2
File added
Project/Backend/Server_Python/controllers/__init__.py
0 → 100644
View file @
b24b2ab2
Project/Backend/Server_Python/controllers/__pycache__/__init__.cpython-310.pyc
0 → 100644
View file @
b24b2ab2
File added
Project/Backend/Server_Python/controllers/__pycache__/users_controller.cpython-310.pyc
0 → 100644
View file @
b24b2ab2
File added
Project/Backend/Server_Python/controllers/users_controller.py
0 → 100644
View file @
b24b2ab2
from
fastapi
import
APIRouter
router
=
APIRouter
()
@
router
.
get
(
"/users"
)
def
get_users
():
# Your code here
return
{
"message"
:
"Get users endpoint"
}
@
router
.
post
(
"/users"
)
def
create_user
():
# Your code here
return
{
"message"
:
"Create user endpoint"
}
Project/Backend/Server_Python/main.py
0 → 100644
View file @
b24b2ab2
from
fastapi
import
FastAPI
from
controllers
import
users_controller
app
=
FastAPI
()
app
.
include_router
(
users_controller
.
router
)
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