Workdocumentation 2021-03-22/lukas guenther task

From Openresearch
Revision as of 11:06, 8 April 2021 by Luguenth (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Loading...

Parameters

You're able to filter the Results with the following parameters

Parameter Example Description
ord 1 Selects only Events with the specified Ordinal
format json Changes the return format of the Result-Set
limit 50 Lets you limit the size of the Result-Set
Example

https://www.openresearch.org/wiki/Workdocumentation_2021-03-22/lukas_guenther_task?limit=50&ord=1&format=json


Problem: Limit

I was not able to dynamically check the maximum configuration parameter for the maximum limit. So I manually typed in the Limit of 10000 and retrieved 2000 results. So I'm only guessing the 2000 maximum limit defined in the configuration parameters of OpenResearch right now.

Ideas for extending the urlget-Extension

  • When checking $params, it just makes sure there are two brackets. There could be Edge-Cases like url.de/index?params]0[=value. So strpos of the right bracket should be higher than the left bracket.