Skip to content

Commit

Permalink
Merge pull request #14 from BIDMCDigitalPsychiatry/add_dicts
Browse files Browse the repository at this point in the history
adding dict to response type
  • Loading branch information
lukeoftheshire authored Sep 28, 2021
2 parents 1fa936f + 5f56aa6 commit 439a267
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions LAMP/api/activity_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ def __create(

self.create = Endpoint(
settings={
'response_type': (str,),
'response_type': (str,dict),
'auth': [
'Authorization'
],
Expand Down Expand Up @@ -727,7 +727,7 @@ def __delete(

self.delete = Endpoint(
settings={
'response_type': (str,),
'response_type': (str, dict,),
'auth': [
'Authorization'
],
Expand Down
4 changes: 2 additions & 2 deletions LAMP/api/activity_event_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ def __create(

self.create = Endpoint(
settings={
'response_type': (str,),
'response_type': (str, dict,),
'auth': [
'Authorization'
],
Expand Down Expand Up @@ -688,7 +688,7 @@ def __delete(

self.delete = Endpoint(
settings={
'response_type': (str,),
'response_type': (str, dict,),
'auth': [
'Authorization'
],
Expand Down
8 changes: 4 additions & 4 deletions LAMP/api/activity_spec_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def __create(

self.create = Endpoint(
settings={
'response_type': (str,),
'response_type': (str, dict,),
'auth': [
'Authorization'
],
Expand Down Expand Up @@ -345,7 +345,7 @@ def __delete(

self.delete = Endpoint(
settings={
'response_type': (str,),
'response_type': (str, dict,),
'auth': [
'Authorization'
],
Expand Down Expand Up @@ -467,7 +467,7 @@ def __update(

self.update = Endpoint(
settings={
'response_type': (str,),
'response_type': (str, dict,),
'auth': [
'Authorization'
],
Expand Down Expand Up @@ -593,7 +593,7 @@ def __view(

self.view = Endpoint(
settings={
'response_type': (str,),
'response_type': (str, dict,),
'auth': [
'Authorization'
],
Expand Down
4 changes: 2 additions & 2 deletions LAMP/api/participant_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ def __delete(

self.delete = Endpoint(
settings={
'response_type': (str,),
'response_type': (str, dict,),
'auth': [
'Authorization'
],
Expand Down Expand Up @@ -725,7 +725,7 @@ def __update(

self.update = Endpoint(
settings={
'response_type': (str,),
'response_type': (str, dict,),
'auth': [
'Authorization'
],
Expand Down
6 changes: 3 additions & 3 deletions LAMP/api/researcher_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def __create(

self.create = Endpoint(
settings={
'response_type': (str,),
'response_type': (str, dict,),
'auth': [
'Authorization'
],
Expand Down Expand Up @@ -345,7 +345,7 @@ def __delete(

self.delete = Endpoint(
settings={
'response_type': (str,),
'response_type': (str, dict,),
'auth': [
'Authorization'
],
Expand Down Expand Up @@ -468,7 +468,7 @@ def __update(

self.update = Endpoint(
settings={
'response_type': (str,),
'response_type': (str, dict,),
'auth': [
'Authorization'
],
Expand Down
6 changes: 3 additions & 3 deletions LAMP/api/sensor_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ def __create(

self.create = Endpoint(
settings={
'response_type': (str,),
'response_type': (str, dict,),
'auth': [
'Authorization'
],
Expand Down Expand Up @@ -727,7 +727,7 @@ def __delete(

self.delete = Endpoint(
settings={
'response_type': (str,),
'response_type': (str, dict,),
'auth': [
'Authorization'
],
Expand Down Expand Up @@ -849,7 +849,7 @@ def __update(

self.update = Endpoint(
settings={
'response_type': (str,),
'response_type': (str, dict,),
'auth': [
'Authorization'
],
Expand Down
4 changes: 2 additions & 2 deletions LAMP/api/sensor_event_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ def __create(

self.create = Endpoint(
settings={
'response_type': (str,),
'response_type': (str, dict,),
'auth': [
'Authorization'
],
Expand Down Expand Up @@ -687,7 +687,7 @@ def __delete(

self.delete = Endpoint(
settings={
'response_type': (str,),
'response_type': (str, dict,),
'auth': [
'Authorization'
],
Expand Down
6 changes: 3 additions & 3 deletions LAMP/api/sensor_spec_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def __create(

self.create = Endpoint(
settings={
'response_type': (str,),
'response_type': (str, dict,),
'auth': [
'Authorization'
],
Expand Down Expand Up @@ -345,7 +345,7 @@ def __delete(

self.delete = Endpoint(
settings={
'response_type': (str,),
'response_type': (str, dict,),
'auth': [
'Authorization'
],
Expand Down Expand Up @@ -467,7 +467,7 @@ def __update(

self.update = Endpoint(
settings={
'response_type': (str,),
'response_type': (str, dict,),
'auth': [
'Authorization'
],
Expand Down
6 changes: 3 additions & 3 deletions LAMP/api/study_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ def __create(

self.create = Endpoint(
settings={
'response_type': (str,),
'response_type': (str, dict,),
'auth': [
'Authorization'
],
Expand Down Expand Up @@ -479,7 +479,7 @@ def __delete(

self.delete = Endpoint(
settings={
'response_type': (str,),
'response_type': (str, dict,),
'auth': [
'Authorization'
],
Expand Down Expand Up @@ -601,7 +601,7 @@ def __update(

self.update = Endpoint(
settings={
'response_type': (str,),
'response_type': (str, dict,),
'auth': [
'Authorization'
],
Expand Down

0 comments on commit 439a267

Please sign in to comment.