Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
teknikattan-scoring-system
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tddd96-grupp1
teknikattan-scoring-system
Commits
aae3d8d2
Commit
aae3d8d2
authored
3 years ago
by
Victor Löfgren
Browse files
Options
Downloads
Patches
Plain Diff
Update api descriptions
parent
01872a8f
No related branches found
No related tags found
1 merge request
!161
Resolve "replace-restx-with-smorest"
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
server/app/apis/auth.py
+3
-1
3 additions, 1 deletion
server/app/apis/auth.py
server/app/apis/misc.py
+1
-1
1 addition, 1 deletion
server/app/apis/misc.py
server/app/apis/users.py
+3
-1
3 additions, 1 deletion
server/app/apis/users.py
with
7 additions
and
3 deletions
server/app/apis/auth.py
+
3
−
1
View file @
aae3d8d2
...
@@ -20,7 +20,9 @@ from flask_smorest import Blueprint, abort, arguments
...
@@ -20,7 +20,9 @@ from flask_smorest import Blueprint, abort, arguments
from
.
import
http_codes
,
protect_route
from
.
import
http_codes
,
protect_route
blp
=
Blueprint
(
"
auth
"
,
"
auth
"
,
url_prefix
=
"
/api/auth
"
,
description
=
"
Operations related to authorization
"
)
blp
=
Blueprint
(
"
auth
"
,
"
auth
"
,
url_prefix
=
"
/api/auth
"
,
description
=
"
Logging in as a user or with a code, and logging out
"
)
class
UserLoginArgsSchema
(
ma
.
Schema
):
class
UserLoginArgsSchema
(
ma
.
Schema
):
...
...
This diff is collapsed.
Click to expand it.
server/app/apis/misc.py
+
1
−
1
View file @
aae3d8d2
...
@@ -24,7 +24,7 @@ from marshmallow_sqlalchemy import auto_field
...
@@ -24,7 +24,7 @@ from marshmallow_sqlalchemy import auto_field
from
.
import
http_codes
from
.
import
http_codes
blp
=
Blueprint
(
"
misc
"
,
"
misc
"
,
url_prefix
=
"
/api/misc
"
,
description
=
"
Miscellaneous operation
s
"
)
blp
=
Blueprint
(
"
misc
"
,
"
misc
"
,
url_prefix
=
"
/api/misc
"
,
description
=
"
Roles, regions, types and statistic
s
"
)
class
TypesResponseSchema
(
BaseSchema
):
class
TypesResponseSchema
(
BaseSchema
):
...
...
This diff is collapsed.
Click to expand it.
server/app/apis/users.py
+
3
−
1
View file @
aae3d8d2
...
@@ -17,7 +17,9 @@ from marshmallow import fields
...
@@ -17,7 +17,9 @@ from marshmallow import fields
from
.
import
http_codes
from
.
import
http_codes
blp
=
Blueprint
(
"
users
"
,
"
users
"
,
url_prefix
=
"
/api/users
"
,
description
=
"
Operations on users
"
)
blp
=
Blueprint
(
"
users
"
,
"
users
"
,
url_prefix
=
"
/api/users
"
,
description
=
"
Adding, updating, deleting and searching for users
"
)
class
UserAddArgsSchema
(
BaseSchema
):
class
UserAddArgsSchema
(
BaseSchema
):
...
...
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