Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • A api
  • Project information
    • Project information
    • Activity
    • Members
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Wiki
    • Wiki
  • Activity
Collapse sidebar
  • ironapi
  • api
  • Wiki
  • Api
  • Queries
  • Context

Context · Changes

Page history
Update Context authored Dec 09, 2021 by Andrea Pavlovic's avatar Andrea Pavlovic
Show whitespace changes
Inline Side-by-side
API/Queries/Context.md
View page @ d1dce1aa
...@@ -4,9 +4,11 @@ the query context must be defined. ...@@ -4,9 +4,11 @@ the query context must be defined.
Example: to find out which entites (attribute "entity") a user may set as the base entity for a new saved Example: to find out which entites (attribute "entity") a user may set as the base entity for a new saved
query (transition "add" on "extensions.query"), this will find the answer: query (transition "add" on "extensions.query"), this will find the answer:
```JSON `POST #/data/system/entity/query`
#/data/system/entity/query
{"context": { ```json
{
"context": {
"module" : "extensions", "module" : "extensions",
"entity" : "query", "entity" : "query",
"transition" : "add", "transition" : "add",
...@@ -17,8 +19,8 @@ query (transition "add" on "extensions.query"), this will find the answer: ...@@ -17,8 +19,8 @@ query (transition "add" on "extensions.query"), this will find the answer:
If, in this list, the instance with id 5 is listed, this will be a valid request: If, in this list, the instance with id 5 is listed, this will be a valid request:
```JSON `POST /data/extensions/query/transitions/add`
#/data/extensions/query/transitions/add ```json
{ {
"entity" : 5, "entity" : 5,
#other parameters #other parameters
......
Clone repository
  • API
    • Available Endpoints
    • Changing Passwords
    • Form Input Types
    • Introduction
    • Logout
    • Plugins
    • Queries
    • Queries
      • Attributes
      • Context
      • Query Examples
      • Query Search Options
      • Referenced Instances
      • Saved Queries
    • Schema_Changes
    • Storing Files
View All Pages