Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Communications Backbone System
communications-backbone
Commits
23cc052e
Unverified
Commit
23cc052e
authored
2 years ago
by
Dan Jones
Browse files
Options
Download
Email Patches
Plain Diff
fix: correct endpoint imports
parent
92db11ce
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
endpoints/clients.py
endpoints/clients.py
+1
-1
endpoints/notify.py
endpoints/notify.py
+2
-2
endpoints/receive.py
endpoints/receive.py
+1
-1
endpoints/send.py
endpoints/send.py
+2
-2
No files found.
endpoints/clients.py
View file @
23cc052e
...
...
@@ -98,9 +98,9 @@ clients_file = ClientsFile()
# Client
class
Client
(
Resource
):
@
marshal_with
(
resource_fields
)
def
get
(
self
,
client_id
):
client
=
clients_file
.
find
(
client_id
)
del
client
[
'secret'
]
if
not
client
:
abort
(
404
,
message
=
"No client with id: {}"
.
format
(
client_id
))
return
client
...
...
This diff is collapsed.
Click to expand it.
endpoints/notify.py
View file @
23cc052e
from
flask_restful
import
Resource
,
reqparse
,
abort
,
fields
,
marshal_with
from
marshmallow
import
Schema
,
field
from
flask_restful
import
Resource
,
reqparse
,
abort
from
marshmallow
import
Schema
,
field
s
import
json
class
NotifySchema
(
Schema
):
...
...
This diff is collapsed.
Click to expand it.
endpoints/receive.py
View file @
23cc052e
from
flask_restful
import
Resource
,
request
,
abort
,
fields
from
flask_restful
import
Resource
,
request
,
abort
from
marshmallow
import
Schema
,
fields
import
pika
import
json
...
...
This diff is collapsed.
Click to expand it.
endpoints/send.py
View file @
23cc052e
from
flask_restful
import
Resource
,
reqparse
,
abort
,
fields
,
marshal_with
from
marshmallow
import
Schema
,
field
from
flask_restful
import
Resource
,
reqparse
,
abort
from
marshmallow
import
Schema
,
field
s
import
json
class
SendSchema
(
Schema
):
...
...
This diff is collapsed.
Click to expand it.
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