简体   繁体   English

存储和报告从API检索到的数据

[英]Storing and Reporting on data retrieved from an API

I have a very high-level, generic question related to the retrieval of data with an API, the storage of that data, and the ability to report off of the data. 我有一个非常高级的通用问题,涉及使用API​​检索数据,存储数据以及报告数据的能力。 My background is primarily on the database side with a specific focus on reporting out of Crystal. 我的背景主要是在数据库方面,尤其侧重于Crystal报表。 That being said, I'm fairly green when it comes to APIs, SDKs, .NET, and Visual Studio, so feel free to respond as if I'm 5. 话虽这么说,我在使用API​​,SDK,.NET和Visual Studio时还是比较环保的,所以请随时回应,就像我5岁一样。

I've attached a quick mock-up of the application architecture for context. 我已经附上了上下文的应用程序体系结构的快速模型。 The vendor we're working with touts their APIs as the best way to retrieve data for reporting purposes, but I'm struggling with visualizing the layer between raw API data retrieval and a reporting environment. 我们正在与之合作的供应商吹捧他们的API是检索用于报告目的的数据的最佳方法,但是我一直在努力使原始API数据检索和报告环境之间的层可视化。 Having not worked with API data retrieval in the past, can someone explain to me in layman's terms how this process would work? 过去没有使用过API数据检索,有人可以用外行的方式向我解释该过程如何工作吗?

1.) How would I go about retrieving data from the app server via the vendor's API? 1.)我将如何通过供应商的API从应用服务器检索数据? Is it as simple as creating a visual studio project and coding the API call? 它就像创建一个Visual Studio项目并编写API调用一样简单吗?

2.) Let's say I'm able to retrieve the data with an API call, what is the best method for storing / reporting against that data? 2.)假设我能够通过API调用来检索数据,针对该数据进行存储/报告的最佳方法是什么? Is it possible to develop real-time reports out of visual studio with API call data? 是否可以使用API​​调用数据在Visual Studio外开发实时报告?

3.) If #2 is not possible, the data pulled from the API calls will have to be stored somewhere. 3.)如果无法使用#2,则必须将从API调用中提取的数据存储在某个位置。 Is it possible to code the API calls to write results directly to a separate reporting datamart? 是否可以对API调用进行编码以将结果直接写入单独的报告数据集市?

Again, I apologize if these questions are extremely elementary. 再次,如果这些问题非常基础,我深表歉意。 I'm basically looking for context around the scenario to identify how close or rather far off I am in my understanding. 我基本上是在寻找场景的背景信息,以识别我所了解的距离有多远。

Any help is appreciated. 任何帮助表示赞赏。 Thanks! 谢谢!

高级项目图

i´m going to try to answer each question as high level as possible: 我将尝试尽可能高水平地回答每个问题:

1) Retrieving the data via the API is fairly simple, you need to code the call with a proper requerst and handle the response, for example if your API is exposed with a REST web service all you need to do is make an http call to the ws endpoint according to the service definition. 1)通过API检索数据非常简单,您需要对调用进行适当的重询问并处理响应,例如,如果您的API使用REST Web服务公开,您要做的就是对http进行调用根据服务定义的ws端点。

2) You said that the report requirement is probably a SSRS report. 2)您说该报告要求可能是SSRS报告。 The way to proceed depends on how you want to handle this data. 处理方式取决于您要如何处理此数据。 One approach culd be to store it in a database and then create a report server project that generates reports with this data. 一种方法可能是将其存储在数据库中,然后创建一个使用此数据生成报告的报告服务器项目。

3) Yes, according to the data format you can do whatever you want with it, from exporting a csv file to store it inside a dedicated database. 3)是的,根据数据格式,您可以执行任何操作,从导出csv文件到将其存储在专用数据库中。

I hope this was useful in some way, as i´m not super experienced in report generation but have worked with different APIs handling data 我希望这在某种程度上是有用的,因为我在报表生成方面不是超级有经验,但是已经使用了不同的API处理数据

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM