Unified Data Fetching

Fetch different entities at once

Unified Data Fetching

POST https://api.digis.io/data

This endpoint allows you to retrieve any data combination from the CRUD. It also does many requests in one endpoint (similar to GraphQL)

Request Body

NameTypeDescription

entityN

string

you can cadd as many entities as you wish, an example is given below

{
  "entity1": [],
  "entity2": [],
  "entity3": [],
  ...
  "entityN": []
}

Request Example

Query Example

  • projections

  • joins

  • filters

    • equality

    • less than $lt

    • greater than $gt

    • IN operator $in

    • Reg expressions $regex

  • inverted joins references

  • order by order

  • limit take and skip

{
	"imt": {
		"references": {
			"country": {
				"params": {
					"projection": {
						"short": false,
						"name": false
					}
				}
			}
		},
		"filters": {
			"description": {
				"$regex": "BEN*"
			}
		},
		"take": 2,
		"skip": 0
	},
	"marketing_plan": {
		"filters": {
			"year": {
				"$in": [2016, 2017]
			},
			"halfYear": 2,
			"revenueActual": {
				"$gt": 1000
			}
		},
		"projection": {
			"ownInvestment": false,
			"businessPartner": {},
			"statusId": false,
			"ownInvestmentActual": false,
			"revenue": false
		},
		"skip": 0,
		"order": {
			"by": "year",
			"desc": false
		},
		"params": {},
		"take": 2
	}
}

Last updated