Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
indicators-parser-saas
backend
Commits
e7afe0f2
Verified
Commit
e7afe0f2
authored
2 years ago
by
Власов Иван Юрьевич
Browse files
Options
Download
Patches
Plain Diff
Docstring modified
parent
c60b51c4
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
responses/responses.py
+2
-7
responses/responses.py
with
2 additions
and
7 deletions
+2
-7
responses/responses.py
+
2
−
7
View file @
e7afe0f2
...
...
@@ -10,17 +10,12 @@ from starlette.responses import JSONResponse
class
ResponseModel
(
BaseModel
):
"""
Base response model, all success responses should be wrapped like this
Attributes
----------
ok : bool
Shows is response contains error
data : any
Dict or Pydantic object with data
"""
ok
=
True
""" Shows is response contains error """
data
:
Any
""" Dict or Pydantic object with data """
class
Config
:
json_encoders
=
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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
Menu
Explore
Projects
Groups
Topics
Snippets