Skip to content

Commit

Permalink
Merge pull request #9 from BIDMCDigitalPsychiatry/limit
Browse files Browse the repository at this point in the history
Limit
  • Loading branch information
ryan-hays authored Feb 19, 2021
2 parents d2ae54c + cc0fb74 commit acebe64
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
15 changes: 15 additions & 0 deletions LAMP/api/activity_event_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ def __all_by_participant(
'_from',
'to',
'transform',
'_limit',
],
'required': [
'participant_id',
Expand Down Expand Up @@ -161,20 +162,24 @@ def __all_by_participant(
(float,),
'transform':
(str,),
'_limit':
(float,),
},
'attribute_map': {
'participant_id': 'participant_id',
'origin': 'origin',
'_from': 'from',
'to': 'to',
'transform': 'transform',
'_limit':'limit'
},
'location_map': {
'participant_id': 'path',
'origin': 'query',
'_from': 'query',
'to': 'query',
'transform': 'query',
'_limit':'query'
},
'collection_format_map': {
}
Expand Down Expand Up @@ -276,6 +281,7 @@ def __all_by_researcher(
'_from',
'to',
'transform',
'_limit',
],
'required': [
'researcher_id',
Expand Down Expand Up @@ -303,20 +309,24 @@ def __all_by_researcher(
(float,),
'transform':
(str,),
'_limit':
(float,),
},
'attribute_map': {
'researcher_id': 'researcher_id',
'origin': 'origin',
'_from': 'from',
'to': 'to',
'transform': 'transform',
'_limit':'limit',
},
'location_map': {
'researcher_id': 'path',
'origin': 'query',
'_from': 'query',
'to': 'query',
'transform': 'query',
'_limit':'query',
},
'collection_format_map': {
}
Expand Down Expand Up @@ -418,6 +428,7 @@ def __all_by_study(
'_from',
'to',
'transform',
'_limit',
],
'required': [
'study_id',
Expand Down Expand Up @@ -445,20 +456,24 @@ def __all_by_study(
(float,),
'transform':
(str,),
'_limit':
(float,),
},
'attribute_map': {
'study_id': 'study_id',
'origin': 'origin',
'_from': 'from',
'to': 'to',
'transform': 'transform',
'_limit':'limit',
},
'location_map': {
'study_id': 'path',
'origin': 'query',
'_from': 'query',
'to': 'query',
'transform': 'query',
'_limit':'query',
},
'collection_format_map': {
}
Expand Down
15 changes: 15 additions & 0 deletions LAMP/api/sensor_event_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ def __all_by_participant(
'_from',
'to',
'transform',
'_limit',
],
'required': [
'participant_id',
Expand Down Expand Up @@ -161,20 +162,24 @@ def __all_by_participant(
(float,),
'transform':
(str,),
'_limit':
(float,),
},
'attribute_map': {
'participant_id': 'participant_id',
'origin': 'origin',
'_from': 'from',
'to': 'to',
'transform': 'transform',
'_limit':'limit'
},
'location_map': {
'participant_id': 'path',
'origin': 'query',
'_from': 'query',
'to': 'query',
'transform': 'query',
'_limit':'query'
},
'collection_format_map': {
}
Expand Down Expand Up @@ -276,6 +281,7 @@ def __all_by_researcher(
'_from',
'to',
'transform',
'_limit',
],
'required': [
'researcher_id',
Expand Down Expand Up @@ -303,20 +309,24 @@ def __all_by_researcher(
(float,),
'transform':
(str,),
'_limit':
(float,),
},
'attribute_map': {
'researcher_id': 'researcher_id',
'origin': 'origin',
'_from': 'from',
'to': 'to',
'transform': 'transform',
'_limit':'limit',
},
'location_map': {
'researcher_id': 'path',
'origin': 'query',
'_from': 'query',
'to': 'query',
'transform': 'query',
'_limit':'query',
},
'collection_format_map': {
}
Expand Down Expand Up @@ -418,6 +428,7 @@ def __all_by_study(
'_from',
'to',
'transform',
'_limit',
],
'required': [
'study_id',
Expand Down Expand Up @@ -445,20 +456,24 @@ def __all_by_study(
(float,),
'transform':
(str,),
'_limit':
(float,),
},
'attribute_map': {
'study_id': 'study_id',
'origin': 'origin',
'_from': 'from',
'to': 'to',
'transform': 'transform',
'_limit':'limit',
},
'location_map': {
'study_id': 'path',
'origin': 'query',
'_from': 'query',
'to': 'query',
'transform': 'query',
'_limit':'query',
},
'collection_format_map': {
}
Expand Down

0 comments on commit acebe64

Please sign in to comment.