sql server - How to determine the schema of a REST service? -
i'm attempting build process import json data returned rest service sql server 2016 database on scheduled basis (every 5 mins). i'm aware there's new sql 2016 function called openjson can handle importing data, i'm concerned setting target tables in database since don't know rest service possibly return.
is there way lookup full schema (required , optional fields) of rest service tables created in sql server can built handle of types of data rest service return?
am being foolish since rest schema potentially change? if that's case, how process rely on rest data, of set in stone?
do have control on rest service? if can publish schema using api explorer tool such swagger. can version end-points , dto's avoid contract changes. if don't have control on rest service , subject change you'll unfortunately need validate data contract side has agreed upon before importing data it.
Comments
Post a Comment