Skip to content

Commit

Permalink
#166: Adapt example filter inputs for ICAT backend
Browse files Browse the repository at this point in the history
  • Loading branch information
MRichards99 committed Oct 21, 2020
1 parent fe9623b commit 7d0205c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/swagger/initialise_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ def initialise_spec(spec):
},
},
"examples": {
"eq": {"value": [{"ID": {"eq": 1}}]},
"like": {"value": [{"NAME": {"like": "dog"}}]},
"gte": {"value": [{"ID": {"gte": 50}}]},
"lte": {"value": [{"ID": {"lte": 50}}]},
"in": {"value": [{"ID": {"in": [1, 2, 3]}}]},
"eq": {"value": {"id": {"eq": 1}}},
"like": {"value": [{"name": {"like": "dog"}}]},
"gte": {"value": [{"id": {"gte": 50}}]},
"lte": {"value": [{"id": {"lte": 50}}]},
"in": {"value": [{"id": {"in": [1, 2, 3]}}]},
},
},
)
Expand All @@ -118,7 +118,7 @@ def initialise_spec(spec):
"name": "order",
"description": "Apply order filters to the query. Given a field and direction, order the returned entities.",
"schema": {"type": "array", "items": {"type": "string"}},
"examples": {"asc": {"value": ["ID asc"]}, "desc": {"value": ["ID desc"]}},
"examples": {"asc": {"value": ["id asc"]}, "desc": {"value": ["id desc"]}},
},
)

Expand Down

0 comments on commit 7d0205c

Please sign in to comment.