<<<<<<< HEAD <<<<<<< HEAD API === Examples of requests to the Web Service -------------------------------------- .. code-block:: shell # Get the list of root categories $ GET http://127.0.0.1:5000/api/category?q={"filters":[{"name":"parent_id","op":"is_null"}]} # Get the list of child categories $ GET http://127.0.0.1:5000/api/category?q={"filters":[{"name":"parent_id","op":"is_not_null"}]} # Get information about the child category "Walls & Frame" $ GET http://127.0.0.1:5000/api/category?q={"filters":[{"name":"parent_id","op":"is_not_null"},{"name":"name","op":"eq","val":"Walls %26 frame"}]} # Get information about an attribute $ GET http://127.0.0.1:5000/api/attribute?q={"filters":[{"name":"name","op":"eq","val":"Landform"}]} $ GET http://127.0.0.1:5000/api/attribute?q={"filters":[{"name":"name","op":"eq","val":"Main hazards in country"}]} # Get the translations of a string $ GET http://127.0.0.1:5000/api/translation?q={"filters":[{"name":"original","op":"eq","val":"Name of shelter"}]} ======= ======= >>>>>>> 56b170c62373521aae3518c6fece0335e0e06ec5 Web Services ============ Example of requests to the Web Service <<<<<<< HEAD >>>>>>> b6b3759e10b96db233dac9cadc04365ff404dd97 ======= >>>>>>> 19a939463af74c6008ef819369c07cfda36d9d34 -------------------------------------- .. code-block:: shell # Get the list of root categories $ GET http://127.0.0.1:5000/api/category?q={"filters":[{"name":"parent_id","op":"is_null"}]} # Get the list of child categories $ GET http://127.0.0.1:5000/api/category?q={"filters":[{"name":"parent_id","op":"is_not_null"}]} # Get information about the child category "Walls & Frame" $ GET http://127.0.0.1:5000/api/category?q={"filters":[{"name":"parent_id","op":"is_not_null"},{"name":"name","op":"eq","val":"Walls %26 frame"}]} # Get information about an attribute $ GET http://127.0.0.1:5000/api/attribute?q={"filters":[{"name":"name","op":"eq","val":"Landform"}]} $ GET http://127.0.0.1:5000/api/attribute?q={"filters":[{"name":"name","op":"eq","val":"Main hazards in country"}]} # Get the translations of a string $ GET http://127.0.0.1:5000/api/translation?q={"filters":[{"name":"original","op":"eq","val":"Name of shelter"}]} <<<<<<< HEAD <<<<<<< HEAD ======= Web Services ============ Example of requests to the Web Service -------------------------------------- .. code-block:: shell # Get the list of root categories $ GET http://127.0.0.1:5000/api/category?q={"filters":[{"name":"parent_id","op":"is_null"}]} # Get the list of child categories $ GET http://127.0.0.1:5000/api/category?q={"filters":[{"name":"parent_id","op":"is_not_null"}]} # Get information about the child category "Walls & Frame" $ GET http://127.0.0.1:5000/api/category?q={"filters":[{"name":"parent_id","op":"is_not_null"},{"name":"name","op":"eq","val":"Walls %26 frame"}]} # Get information about an attribute $ GET http://127.0.0.1:5000/api/attribute?q={"filters":[{"name":"name","op":"eq","val":"Landform"}]} $ GET http://127.0.0.1:5000/api/attribute?q={"filters":[{"name":"name","op":"eq","val":"Main hazards in country"}]} # Get the translations of a string $ GET http://127.0.0.1:5000/api/translation?q={"filters":[{"name":"original","op":"eq","val":"Name of shelter"}]} >>>>>>> 011351c71fefe44d232b84497307f51ee6d5b501 ======= >>>>>>> b6b3759e10b96db233dac9cadc04365ff404dd97 ======= >>>>>>> 011351c71fefe44d232b84497307f51ee6d5b501 ======= >>>>>>> 56b170c62373521aae3518c6fece0335e0e06ec5 >>>>>>> 19a939463af74c6008ef819369c07cfda36d9d34