Security update of the REST API: Retrieve Datasources 

To ensure a good long-term performance of our REST API, it´s important to optimize it from time to time. Most of our optimizations are done without any adjustments to the existing routes of the API or the input and return values.  

In this post, we would like to inform you about a change that modifies the return value of an existing REST API route.  

So far, under the "GET /DataSource" call of the "internal" REST API, the following structure of the return value is delivered: 

 


   { 

      "createdDate": "2018-06-08T08:59:00", 
      "latestVersion": "1.0", 
      "type": "StaticTable", 
      "usedInSmaps": [ 

        { 
           "smapName": "Warenausgabe", 
           "smapId": "d0802997-13cc-4222-b175-9f6ad0d155a3" 
        } 

   ], 
   "dataSourceId": "e3c5db75-4eee-48c3-8654-bc9059375293", 
   "name": "Artikelliste" 
}, 

   "createdDate": "2020-12-24T09:29:04.477", 
   "latestVersion": "1.0", 
   "type": "StaticTable", 
   "usedInSmaps": [ 
         { 
          "smapName": "Service Report", 
          "smapId": "d2a52c21-3b7a-45a9-91df-0519e8e14bb0" 
          }, 
          { 
          "smapName": "Bautagesbericht", 
          "smapId": "54faf88c-8f81-4949-be41-2cf6863e7b6c" 
          } 
   ], 
   "dataSourceId": "7a188f11-0620-4363-b963-6a3af365228d", 
   "name": "Liste der Projekte" 
   } 

What´s new?

With changes from release 1.95 the details of a Datasource can now be retrieved via "GET /DataSource/{id}".  

With the release at the end of April the result of the retrieval of the datasource list will no longer contain the attribute "usedInSmaps", so it will be structured as follows:  


   { 
   "createdDate": "2018-06-08T08:59:00", 
   "latestVersion": "1.0", 
   "type": "StaticTable",  
   "dataSourceId": "e3c5db75-4eee-48c3-8654-bc9059375293", 
   "name": "Artikelliste" 
   }, 
   { 
   "createdDate": "2020-12-24T09:29:04.477", 
   "latestVersion": "1.0", 
   "type": "StaticTable",  
   "dataSourceId": "7a188f11-0620-4363-b963-6a3af365228d", 
   "name": "Liste der Projekte" 
   } 

Therefore, please check your existing automatisms and adjust them accordingly, if necessary. If you have any questions or are stuck at a particular point, please feel free to contact our support team at any time via support@smapone.com.


Subscribe to release notes

You will be regularly informed about the latest technical updates of the smapOne platform.

✉ Subscribe now