learningtapestry / metadataregistry

DEPRECATED - THIS CODE BASE IS NO LONGER MAINTAINED. Metadata Registry
Apache License 2.0
7 stars 4 forks source link

Add prepared queries on the config #75

Closed andersoncardoso closed 7 years ago

andersoncardoso commented 7 years ago

an interesting feature would be adding a ‘prepared query’ template on the config.json.

For example: If we want a simple way to search for standards like above. we can add:

// config.json
  "queries": {
      "standard": "educationalAlignment=[{\"targetName\":\"$term\"}]"
   }

and then we could just use

/api/lr/search?standard=CCSS.Math.Content.8.EE.A.4

and it translates to the prepared query.

on the LR we are interested on 'standard' and 'publisher_name'.