From 701e4faae153fafa0451c237e1c31da2e074deab Mon Sep 17 00:00:00 2001 From: bkoschicek Date: Wed, 25 Oct 2023 13:16:33 +0200 Subject: [PATCH] described search parameter --- openatlas/api/swagger.json | 105 +++++++++++++++++++++++++++++--- sphinx/source/technical/api.rst | 14 +++-- 2 files changed, 105 insertions(+), 14 deletions(-) diff --git a/openatlas/api/swagger.json b/openatlas/api/swagger.json index 5970ab368..04b1095e0 100644 --- a/openatlas/api/swagger.json +++ b/openatlas/api/swagger.json @@ -1,9 +1,9 @@ { - "openapi": "3.0.2", + "openapi": "3.0.3", "info": { "title": "OpenAtlas API", "description": "An API that allows user to access data from an OpenAtlas instance.", - "version": "0.4.1", + "version": "0.5.0", "contact": { "name": "OpenAtlas", "url": "https://openatlas.eu", @@ -53,8 +53,8 @@ } ], "externalDocs": { - "description": "OpenAtlas Manual", - "url": "https://manual.openatlas.eu/" + "description": "OpenAtlas API Manual", + "url": "https://manual.openatlas.eu/technical/api.html" }, "tags": [ { @@ -1286,15 +1286,61 @@ }, "search": { "name": "search", - "description": "Search query for specific results.", + "description": "Search query for specific results. For a better overview visit: `https://manual.openatlas.eu/technical/api_parameters_03.html#id27`\n\n **Filterable categories**\n\n entityName, entityDescription, entityAliases, entityCidocClass, entitySystemClass, entityID, typeID, valueTypeID, typeIDWithSubs, typeName, beginFrom, beginTo, endFrom, endTo, relationToID\n\n **Values** \n\n Values has to be a list of items. The items can be either a string, an integer or a tuple (see Note). Strings need to be marked with “” or ‘’, while integers doesn’t allow this.\\n *Note*: the category valueTypeID can search for values of a type ID. But it takes one or more two valued Tuple as list entry: (x,y). x is the type id and y is the searched value. This can be an int or a float, e.g: `{\"operator\":\"lesserThan\",\"values\":[(3142,543.3)],\"logicalOperator\":\"and\"}`\n\n **Compare operators** \n\n equal, notEqual, like (1), greaterThan (2), greaterThanEqual (2), lesserThan (2)\n\nThe compare operators work like the mathematical operators. equal x=y, notEqual x!=y, greaterThan x>y , greaterThanEqual x>=y, lesserThan x`_). The API is -`RESTlike `_ -to provide easy access to the data. +Interface (`API `_). An API allows easy +and controlled access from external sources (e.g. presentation sites or +analytical tools) to your data. It is human and mashine readable and +provides different approaches to query your data. -To try out the API first hand, visit https://demo.openatlas.eu/swagger +The OpenAtlas API tries to follow the +`RESTful `_ constraints. + +To try out the API first hand at our demo site: https://demo.openatlas.eu/swagger. +If you have your own OpenAtlas instance just visit /swagger. Be aware +that the :doc:`/admin/api` has to be set to public at the admin section. Quick Start Guide