test to text whether Text passed in with URI using REST call can be parsed to JSON OBJECT
Parse Text to JSON:
- text will be passed in with the URI parameters with the '?text=' param (/Controller/Api)
- The controller will then use the interface or method from ParseTextToJson model (ParseText() method)(/Dto)
- Operators will be implicitly converted to JSON objects using the DnaLog and Operator models
- 3a. There are 4 models and the main model being LogDnaDto (/Dto)
- 3b. Any chages made will be only to the ParseTextToJson class unless model needs to be expanded
- DTO objects are used to not interfere with the original models under /models
- If ;and; not specified, then will default to OR
- 5a. <400;>500; will default to <400;or;>500;
- Not supported yet :( :
- Multiple String inputs within ( )
- ! operator will be parsed as its own object
- Int conversion of the len(..) value
- to fix this if it needs to be an int, may need to extract into a partial class or struct
- if not the int will always show even if not set in the JSON object
- FIX: <= >= comparison operators fixed now will work :)
Example URI: "http://localhost:11974/api/dna?text="test data";or;>len(9);"




