My Products
Help
pjleiwa
CONTRIBUTOR **

How to retreive column definition of an endpoint

by pjleiwa

Hi, I would like to know how I can retreive column information for the response of an endpoint?

 

For example. To get account data, the following uri is used.

https://integration.visma.net/API/controller/api/v1/account

As a response I get the the account. Besides this I would like get the definition of it. Like this:

[
  {
    "accountID": 0,
    "accountCD": "string",
    "accountGroupCD": "string",
    "accountClass": "string",
    "type": "Asset",
    "active": true,
    "description": "string",
    "useDefaultSub": true,
    "postOption": "string",
    "currency": "string",
    "taxCategory": "string",
    "cashAccount": true,
    "publicCode1": 0,
    "externalCode1": "string",
    "externalCode2": "string",
    "analysisCode": "string",
    "lastModifiedDateTime": "2023-01-24T09:16:53.779Z"
  }
]

What is the uri to get this information?

Thanks for your help.

3 REPLIES 3
Accepted solution
pjleiwa
CONTRIBUTOR **

by pjleiwa

FYI: @Magnus Johnsen: In combination with your answer and openapi2jsonschema, I found what I needed.

 

https://github.com/airbytehq/openapi2jsonschema

by Magnus Johnsen

Hi,

You can find all the modelDTO's in the Swagger documentation, either directly under the endpoint itself:
2023-01-24 12_56_06-.png

Or in the bttom of the site:2023-01-24 12_57_06-Visma.net Integrations Documentation - Brave.png

 

pjleiwa
CONTRIBUTOR **

by pjleiwa

Thanks Magnus for your answer. Is there also a way to get this information from an API call? Or is it only available on the Swagger page.