Jump to content
  • 1

REST API to get all CASPIO object info (triggers, datapages, ecc)


vidierre

Question

I am trying to document my app using the REST API. But I don't see how to get all Datapages info. Are there others methods to get all datapage info?

I used the GET /v2/applications/{externalKey}/datapages/{appKey}  to collect Datapages properties, but it returns:
 

{
  "Result": {
    "Name": "Classi Elenco",
    "AppKey": "xx9999999x99x999x99x999xx9x9x",
    "AppName": "XYZ Formazione",
    "Path": "/myPath",
    "Type": "WEBAPP",
    "DateCreated": "2021-03-09T11:18:52.040",
    "DateModified": "2022-11-09T11:46:32.260",
    "CreatedBy": "Vittorio (info@nomail.it)",
    "ModifiedBy": "Vittorio (info@nomail.it)",
    "Note": ""
  }
}

That is less than displayed from WEB interface where under thre Properties I see:

Datasource: for_classi
Lookup data source: for_lkp_xyz for_lkp_classi_001 for_lkp_xyz2 for_classi
Authentication: My_auth
Style: MyStyle
Localization: Italia
App: XYZ Formazione
Caspio AppKey: 9x9x9x9x9x9x9x9x9x9x9x9x
Deployment: Enabled
Access Restriction: None
Host Pages:
15 Nov 2022 12:00 AM: https://myweb.it/formazione-fiscale/classi-elenco-2/
12 Nov 2022 12:00 AM: https://myweb.it/formazione-fiscale-territori/classi-elenco-territori/
more...
Created: 01 Mar 1999 12:18 PM by Vittorio (info@nomail.it)
Last modified: 01 Nov 1999 12:46 PM by Vittorio (info@nomail.it)
Notes: Add

From WEB interface there are more useful info that are missing from API response like:

  • Datasource
  • Lookup datasources
  • Authentication
  • Style
  • Localization
  • Deployment
  • Hostpages

How can I get them? There is something to get Triggers info?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
On 11/15/2022 at 10:31 AM, vidierre said:

I am trying to document my app using the REST API. But I don't see how to get all Datapages info. Are there others methods to get all datapage info?

I used the GET /v2/applications/{externalKey}/datapages/{appKey}  to collect Datapages properties, but it returns:
 

{
  "Result": {
    "Name": "Classi Elenco",
    "AppKey": "xx9999999x99x999x99x999xx9x9x",
    "AppName": "XYZ Formazione",
    "Path": "/myPath",
    "Type": "WEBAPP",
    "DateCreated": "2021-03-09T11:18:52.040",
    "DateModified": "2022-11-09T11:46:32.260",
    "CreatedBy": "Vittorio (info@nomail.it)",
    "ModifiedBy": "Vittorio (info@nomail.it)",
    "Note": ""
  }
}

That is less than displayed from WEB interface where under thre Properties I see:

Datasource: for_classi
Lookup data source: for_lkp_xyz for_lkp_classi_001 for_lkp_xyz2 for_classi
Authentication: My_auth
Style: MyStyle
Localization: Italia
App: XYZ Formazione
Caspio AppKey: 9x9x9x9x9x9x9x9x9x9x9x9x
Deployment: Enabled
Access Restriction: None
Host Pages:
15 Nov 2022 12:00 AM: https://myweb.it/formazione-fiscale/classi-elenco-2/
12 Nov 2022 12:00 AM: https://myweb.it/formazione-fiscale-territori/classi-elenco-territori/
more...
Created: 01 Mar 1999 12:18 PM by Vittorio (info@nomail.it)
Last modified: 01 Nov 1999 12:46 PM by Vittorio (info@nomail.it)
Notes: Add

From WEB interface there are more useful info that are missing from API response like:

  • Datasource
  • Lookup datasources
  • Authentication
  • Style
  • Localization
  • Deployment
  • Hostpages

How can I get them? There is something to get Triggers info?

None has played with this?

Link to comment
Share on other sites

  • 0

@vidierre - I love this question - I'm literally on day one of my official Caspio contract and am already seeing a need for this - I actually was asking support today about being able to get the host pages in a report.  Lots of uses for this information in terms of making development more streamlined and lower-risk.

I'd also love to figure out  how to get all of my HTML code and Javascript code exported to a database so that we can find hard-coding and correct it.  

Would love to hear if you came up with anything here.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...