Universal endpoint for all API operations using the Linq protocol
cURL
curl --request POST \ --url https://localhost:7777/linq \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "link": { "target": "service-name", "action": "fetch" }, "query": { "intent": "api/inventory", "params": {}, "payload": {} } } '
{ "result": {}, "metadata": { "source": "service-name", "status": "success", "team": "67d0aeb17172416c411d419e", "cacheHit": true } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Linq protocol wrapper request
Show child attributes
Target service name
"service-name"
Action to perform (maps to HTTP method)
fetch
create
update
remove
head
options
"fetch"
API endpoint path or operation identifier
"api/inventory"
Query parameters as key-value pairs
Request body for POST/PUT/PATCH operations
Successful response
Response data from the target service
Source service that processed the request
Status of the operation
"success"
Team identifier from gateway context
"67d0aeb17172416c411d419e"
Indicates if the response was served from cache
true