Performing a query

×

Status message

New Feature: Guest Login function added to facilitate site exploration without registering. Try it out!

We can use the previously registered adapter my_adapter, in the namespace tacc, by doing a GET request to the endpoint /tacc/my_adapter_v0.1/search:

curl -Lk -X GET \
     -H "Authorization: Bearer $TOKEN" \
     "$ADAMA/tacc/my_adapter_v0.1/search?word1=hello&word2=world"

This request should return a response like:

{
    "metadata": {
        "time_in_main": 0.0001881122589111328
    },
    "result": [
        {
            "args": {
                "word1": "hello",
                "word2": "world"
            },
            "obj": 1
        },
        {
            "args": {
                "word1": "hello",
                "word2": "world"
            },
            "obj": 2
        }
    ],
    "status": "success"
}

which is the output returned by the function main.py.