CN110633100A - Method, device, storage medium and computing equipment for providing data service - Google Patents

Method, device, storage medium and computing equipment for providing data service Download PDF

Info

Publication number
CN110633100A
CN110633100A CN201910859939.6A CN201910859939A CN110633100A CN 110633100 A CN110633100 A CN 110633100A CN 201910859939 A CN201910859939 A CN 201910859939A CN 110633100 A CN110633100 A CN 110633100A
Authority
CN
China
Prior art keywords
data
data service
service api
api
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910859939.6A
Other languages
Chinese (zh)
Inventor
何孝贵
蔡云山
陈志辉
杨秋亮
龚平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Data Co Ltd Of Beijing Asiainfo
Original Assignee
Data Co Ltd Of Beijing Asiainfo
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Data Co Ltd Of Beijing Asiainfo filed Critical Data Co Ltd Of Beijing Asiainfo
Priority to CN201910859939.6A priority Critical patent/CN110633100A/en
Publication of CN110633100A publication Critical patent/CN110633100A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention provides a method, a device, a readable storage medium and a computing device for providing data service, wherein the method comprises the following steps: receiving a data service Application Programming Interface (API) generation request of a first user; according to the data service API generation request, determining data items capable of providing the data service, and generating a configuration page comprising the data items capable of providing the data service and access rules of the data items capable of providing the data service; receiving configuration information input by a first user on a configuration page, wherein the configuration information comprises a data item corresponding to a data service API and an access rule of the data item corresponding to the data service API; generating a data service API according to the data item corresponding to the data service API and the access rule of the data item corresponding to the data service API; receiving a request of a second user for calling a data service API; and sending the information of the data service API to the second user.

Description

Method, device, storage medium and computing equipment for providing data service
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for providing data services, a readable storage medium, and a computing device.
Background
With the continuous increase of the data volume of medical data, accurate data after integration needs to be docked urgently by medical institutions in various places, cities and counties and community outpatients, so that information islands of systems in various places and cities are broken, information barriers of various departments are broken, and secondary system decision analysis is performed by utilizing authorized open data of a cloud system. In the past, the mode adopted is that a demand side provides demands, two sides evaluate, superior leadership examines, technical interface docking specifications are compiled, and developers of the two sides respectively develop interfaces, debug, test and release on line. This process is not only labor intensive, but also time consuming. For example, in practical surveys, it is found that the process generally takes a week, and if holidays are hit or development tasks conflict, the process will take longer, even more than a month. The resource response time obviously cannot meet the requirements of various local and urban systems, and meanwhile, a large amount of development resources are occupied by a large amount of interface development requirements, so that the productivity is low.
Disclosure of Invention
To this end, the present disclosure provides a method, apparatus, readable storage medium, and computing device for providing data services in an effort to solve or at least mitigate at least one of the problems identified above.
According to an aspect of an embodiment of the present disclosure, there is provided a method of providing a data service, including:
receiving a data service Application Programming Interface (API) generation request of a first user;
according to the data service API generation request, determining data items capable of providing the data service, and generating a configuration page comprising the data items capable of providing the data service and access rules of the data items capable of providing the data service;
receiving configuration information input by a first user on a configuration page, wherein the configuration information comprises a data item corresponding to a data service API and an access rule of the data item corresponding to the data service API;
generating a data service API according to the data item corresponding to the data service API and the access rule of the data item corresponding to the data service API;
receiving a request of a second user for calling a data service API;
and sending the information of the data service API to the second user.
Optionally, generating the data service API according to the data item corresponding to the data service API and the access rule of the data item corresponding to the data service API, where the generating includes:
determining a template function required by generating the API and parameter setting corresponding to the template function according to the data item corresponding to the data service API and the access rule of the data item corresponding to the data service API;
and generating the data service API according to the template function required by the API and the parameter setting corresponding to the template function.
Optionally, the method further comprises:
receiving a request of a test data service API of a first user;
acquiring a data item corresponding to the data service API and an access rule of the data item corresponding to the data service API according to a request of a first user for testing the data service API;
generating a test configuration page according to the data item corresponding to the data service API and the access rule of the data item corresponding to the data service API;
receiving test configuration information input by a first user on a test configuration page;
generating a test code according to the test configuration information;
and executing the test code, and calling the data service API to test.
Optionally, before sending the information of the data service API to the second user, the method further includes:
according to a request of a second user for calling a data service API, generating an approval page corresponding to the request of the second user for calling the data service API;
receiving approval information input by a first user on an approval page;
and determining that the first user authorizes the second user to call the data service API according to the approval information.
Optionally, the access rule of the data item corresponding to the data service API includes:
and accessing the data item corresponding to the data service API.
Optionally, the access rule of the data item corresponding to the data service API further includes:
the data service API corresponds to a data range of the data item.
Optionally, the information of the data service API includes:
service address, request mode and interface unified parameter description.
According to another aspect of the embodiments of the present disclosure, there is provided an apparatus for providing a data service, including:
an API generation request receiving unit, configured to receive a data service API generation request of a first user;
the configuration page generating unit is used for determining data items capable of providing the data service according to the data service API generating request and generating a configuration page comprising the data items capable of providing the data service and the access rules of the data items capable of providing the data service;
the configuration information acquisition unit is used for receiving configuration information input by a first user on the configuration page, and the configuration information comprises a data item corresponding to the data service API and an access rule of the data item corresponding to the data service API;
the API generating unit is used for generating a data service API according to the data item corresponding to the data service API and the access rule of the data item corresponding to the data service API;
an API call request receiving unit, configured to receive a request for calling a data service API from a second user;
and the API information issuing unit is used for sending the information of the data service API to the second user.
According to yet another aspect of embodiments of the present disclosure, there is provided a readable storage medium having executable instructions thereon, which when executed, cause a computing device to perform operations included in the above-described method of providing a data service.
According to yet another aspect of embodiments of the present disclosure, there is provided a computing device including: a processor; and a memory storing executable instructions that, when executed, cause the processor to perform operations included in the above-described method of providing data services.
In the embodiment of the disclosure, the data service API is automatically generated according to the data item corresponding to the data service API configured by the first user and the access rule of the data item corresponding to the data service API, and a code developer does not need to write each API independently, so that the consumption of development resources is reduced, the manufacturing time of the API is shortened, and the efficiency of establishing a data sharing channel among different departments is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate exemplary embodiments of the disclosure and together with the description serve to explain the principles of the disclosure.
FIG. 1 is a schematic block diagram of an exemplary computing device 100;
FIG. 2 is a flow diagram of a method of providing data services in accordance with an embodiment of the present disclosure;
FIG. 3 is an API release interface diagram according to an embodiment of the present disclosure;
FIG. 4 is a test configuration interface diagram according to an embodiment of the present disclosure;
FIG. 5 is an interface diagram of API application success in accordance with an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an apparatus for providing data services according to an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 is a block diagram of an example computing device 100 arranged to implement a method of providing data services in accordance with the present disclosure. In a basic configuration 102, computing device 100 typically includes system memory 106 and one or more processors 104. A memory bus 108 may be used for communication between the processor 104 and the system memory 106.
Depending on the desired configuration, the processor 104 may be any type of processing, including but not limited to: the processor 104 may include one or more levels of cache, such as a level one cache 110 and a level two cache 112, a processor core 114, and registers 116. the example processor core 114 may include an Arithmetic Logic Unit (ALU), a Floating Point Unit (FPU), a digital signal processing core (DSP core), or any combination thereof.
Depending on the desired configuration, system memory 106 may be any type of memory, including but not limited to: volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.), or any combination thereof. System memory 106 may include an operating system 120, one or more programs 122, and program data 124. In some implementations, the program 122 can be configured to execute instructions on an operating system by one or more processors 104 using program data 124.
Computing device 100 may also include an interface bus 140 that facilitates communication from various interface devices (e.g., output devices 142, peripheral interfaces 144, and communication devices 146) to the basic configuration 102 via the bus/interface controller 130. The example output device 142 includes a graphics processing unit 148 and an audio processing unit 150. They may be configured to facilitate communication with various external devices, such as a display terminal or speakers, via one or more a/V ports 152. Example peripheral interfaces 144 may include a serial interface controller 154 and a parallel interface controller 156, which may be configured to facilitate communication with external devices such as input devices (e.g., keyboard, mouse, pen, voice input device, touch input device) or other peripherals (e.g., printer, scanner, etc.) via one or more I/O ports 158. An example communication device 146 may include a network controller 160, which may be arranged to facilitate communications with one or more other computing devices 162 over a network communication link via one or more communication ports 164.
A network communication link may be one example of a communication medium. Communication media may typically be embodied by computer readable instructions, data structures, program modules, and may include any information delivery media, such as carrier waves or other transport mechanisms, in a modulated data signal. A "modulated data signal" may be a signal that has one or more of its data set or its changes made in such a manner as to encode information in the signal. By way of non-limiting example, communication media may include wired media such as a wired network or private-wired network, and various wireless media such as acoustic, Radio Frequency (RF), microwave, Infrared (IR), or other wireless media. The term computer readable media as used herein may include both storage media and communication media.
Computing device 100 may be implemented as part of a small-form factor portable (or mobile) electronic device such as a cellular telephone, a Personal Digital Assistant (PDA), a personal media player device, a wireless web-watch device, a personal headset device, an application specific device, or a hybrid device that include any of the above functions. Computing device 100 may also be implemented as a personal computer including both desktop and notebook computer configurations.
Among other things, one or more programs 122 of computing device 100 include instructions for performing a method of providing data services according to the present disclosure.
Fig. 2 illustrates a flow chart of a method 200 of providing data services according to the present disclosure, the method 200 starting at step S210.
S210, receiving a data service Application Programming Interface (API) generation request of a first user;
s220, generating a request according to the data service API, determining a data item capable of providing the data service, and generating a configuration page comprising the data item capable of providing the data service and an access rule of the data item capable of providing the data service;
s230, receiving configuration information input by a first user on a configuration page, wherein the configuration information comprises a data item corresponding to a data service API and an access rule of the data item corresponding to the data service API;
s240, generating a data service API according to the data item corresponding to the data service API and the access rule of the data item corresponding to the data service API;
s250, receiving a request of a second user for calling a data service API;
and S260, sending the information of the data service API to the second user.
According to the steps, when a data sharing channel is established among different departments, the data provider can automatically generate the API only by performing static configuration, the data user can call the data provider by applying for the API related information, the data provider and the data user do not need to develop the API codes, perform joint debugging test of the API codes and the like, and the data sharing capability among the departments is greatly promoted.
Optionally, in step S240, the access rule of the data item corresponding to the data service API includes:
and accessing the data item corresponding to the data service API.
For example: when the data user calls API, a parameter is carried in the access request, and the database returns the result corresponding to the parameter; taking the book management system as an example, the data user carries the school number in the access request, and the database returns the lent book corresponding to the school number.
Optionally, in step S240, the access rule of the data item corresponding to the data service API further includes:
the data service API corresponds to a data range of the data item.
For example: when the data user calls API, the parameter carried in the access request should meet the requirement of the data range, otherwise forbid to access the database; taking the book management system as an example, the book number is carried in the access request by the data user, and the API inquires that the book number exceeds the number range allowed to be searched, and refuses the data user to access the detailed information of the book.
Optionally, the information of the data service API includes: service address, request mode and interface unified parameter description. The service address is an address for the data user to call the API, the request mode is a mode for the data user to initiate an API call request, and the unified interface parameter description refers to a common parameter definition of multiple APIs, for example, an account password parameter definition.
Optionally, generating the data service API according to the data item corresponding to the data service API and the access rule of the data item corresponding to the data service API, where the generating includes:
determining a template function required by generating the API and parameter setting corresponding to the template function according to the data item corresponding to the data service API and the access rule of the data item corresponding to the data service API;
and generating the data service API according to the template function required by the API and the parameter setting corresponding to the template function.
Specifically, an API automatic generation framework tool is set up in advance, a plurality of template functions are set, the template functions comprise a template function for data item access and a template function for data item access rule judgment, and the logic relation between the template functions is defined; in addition, a function for generating a service address, a function for realizing access in a certain request mode, a function for identity authentication and the like are preset, and the template functions and the functions form a complete API after parameter information is injected.
Optionally, an embodiment of the present disclosure further provides a step of testing the generated API, including:
receiving a request of a first user for testing the data service API;
acquiring a data item corresponding to the data service API and an access rule of the data item corresponding to the data service API according to a request of a first user for testing the data service API;
generating a test configuration page according to the data item corresponding to the data service API and the access rule of the data item corresponding to the data service API;
receiving test configuration information input by a first user on a test configuration page;
generating a test code according to the test configuration information;
and executing the test code, and calling the data service API to test.
In the above steps, the non-code developer automatically calls the configuration information of the API to generate a corresponding test configuration page by configuring the static test configuration information, and automatically generates the test code based on the filling result of the test configuration page to complete the API test, thereby avoiding developing a test script for testing the API, improving the API test efficiency, and reducing the resource requirement of the code developer.
Optionally, before sending the information of the data service API to the second user, the method further includes:
generating an approval page according to a request of a second user for calling a data service API;
receiving approval information input by a first user on an approval page;
and determining that the first user authorizes the second user to call the data service API according to the approval information.
And if and only after the first user passes the authorization, allowing the second user to call the data service API, so that the authorization approval management of the data service API is realized, code developers are not required to participate in the management approval process, and the API can be issued only by clicking and passing the approval personnel on an approval page, so that the consumption of code development resources is reduced, and the approval efficiency of the data service API is improved.
The method and the device for generating, testing and releasing the data service API realize that the processes of generating, testing and releasing the data service API are all completed by the configuration of the static page, and greatly save time and release development manpower compared with the mode of manually developing and joint debugging the test interface service by a large number of code developers in the past.
The following gives a specific embodiment of the present disclosure by taking an example of an authorized query data service with a newly added marital information interface.
In a first aspect, a data service development process includes:
step 1, filling basic information of marital information service;
for example: filling in service name, selecting service type, filling in information of service department, etc.; the service types are divided into original data service and fused data service, the original data is cleaned, converted and processed (such as desensitization) to obtain fused data, different service types select different data sources, and the data acquisition rules are different.
Step 2, open field metadata of the data source table is selected;
for example, the system reads an ODS.VIEW _ T _ MZ _ JH _ LHDJXX marriage information data table and acquires field information of the data table; and presenting the field information to a user, selecting field data for providing data access to the outside by the user, and checking the field data by a check box in front of the field by the user. In addition, the user can also select whether to encrypt the data, and if so, the other party also needs to decrypt the data.
Step 3, defining access parameters of the newly added interface;
if the set interface access parameter is an identity card, the identity card information is firstly provided when the other party needs to acquire interface return data, and then the system returns the specific corresponding marital information according to the identity card information.
Specifically, the user should fill in information such as a parameter name, whether the parameter name is a mandatory item, and a parameter value type of the interface access parameter.
Step 4, newly adding an interface authorization data query range;
when more data are returned through the interface parameters in step 3, a data range authorized to be opened can be set in step 4. For example, only the marriage information corresponding to the identification number intervals SFZ1 and SFZ2 is returned, and the rest data are not returned.
Step 5, the data query returns the sequencing configuration of the result;
and 6, completing the configuration of newly adding a data interface.
Through the steps, the interface api is generated, and the data in the data range is inquired and screened from the database table. The release information of the generated marital information service interface API is shown in fig. 3.
In a second aspect, test validation of an API includes:
and returning the data content of the information item authorized to be opened to the outside by the marital table according to the configured input parameters SFZ1 and SFZ 2.
As shown in FIG. 4, the test configuration page includes user code, number of pages to which the results are exposed, and test data ranges SFZ 1-SFZ 2.
In a third aspect, the process of API approval includes:
step 1, after the test verification is completed, the interface issues an online.
And 2, applying for opening a data interface with specific requirements by a third party according to requirements.
Step 3, after the application authorization is passed, the third party may refer to the subscribed data service interfaces in the data subscription of the individual, wherein the subscribed data service interfaces include a marital information data service interface, as shown in fig. 5.
According to the scheme provided by the specific embodiment of the disclosure, the automatic generation of the marital information query service API is realized through the online selection of the data table and the open configuration of the information items, the online test and approval are supported, the previous links of code development, authorization and debugging are omitted, and the time and the manpower resources are saved.
Referring to fig. 6, there is also provided an apparatus 300 for providing a data service, according to an embodiment of the present disclosure, including:
an API generation request receiving unit 310, configured to receive a data service API generation request of a first user;
a configuration page generating unit 320, configured to determine a data item capable of providing a data service according to a data service API generation request, and generate a configuration page including the data item capable of providing the data service and an access rule of the data item capable of providing the data service;
the configuration information obtaining unit 330 is configured to receive configuration information input by the first user on the configuration page, where the configuration information includes a data item corresponding to the data service API and an access rule of the data item corresponding to the data service API;
the API generating unit 340 is configured to generate a data service API according to the data item corresponding to the data service API and the access rule of the data item corresponding to the data service API;
an API call request receiving unit 350 for receiving a request for calling a data service API of a second user;
the API information issuing unit 360 is configured to send information of the data service API to the second user.
Optionally, the API generating unit 340 is specifically configured to:
determining a template function required by generating the API and parameter setting corresponding to the template function according to the data item corresponding to the data service API and the access rule of the data item corresponding to the data service API;
and generating the data service API according to the template function required by the API and the parameter setting corresponding to the template function.
Optionally, the apparatus 300 for providing data services further comprises a testing unit for:
receiving a request of a first user for testing the data service API;
acquiring a data item corresponding to the data service API and an access rule of the data item corresponding to the data service API according to a request of a first user for testing the data service API;
generating a test configuration page according to the data item corresponding to the data service API and the access rule of the data item corresponding to the data service API;
receiving test configuration information input by a first user on a test configuration page;
generating a test code according to the test configuration information;
and executing the test code, and calling the data service API to test.
Optionally, the apparatus 300 for providing data service further comprises an approval unit configured to:
generating an approval page according to a request of a second user for calling a data service API;
receiving approval information input by a first user on an approval page;
and determining that the first user authorizes the second user to call the data service API according to the approval information.
Optionally, the access rule of the data item corresponding to the data service API received by the configuration information obtaining unit 330 includes:
and accessing the data item corresponding to the data service API.
Optionally, the access rule of the data item corresponding to the data service API received by the configuration information obtaining unit 330 further includes:
the data service API corresponds to a data range of the data item.
Optionally, the information of the data service API issued by the API information issuing unit 360 includes:
service address, request mode and interface unified parameter description.
It should be understood that the various techniques described herein may be implemented in connection with hardware or software or, alternatively, with a combination of both. Thus, the methods and apparatus of the present disclosure, or certain aspects or portions thereof, may take the form of program code (i.e., instructions) embodied in tangible media, such as floppy diskettes, CD-ROMs, hard drives, or any other machine-readable storage medium, wherein, when the program is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the disclosure.
In the case of program code execution on programmable computers, the computing device will generally include a processor, a storage medium readable by the processor (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device. Wherein the memory is configured to store program code; the processor is configured to perform the various methods of the present disclosure according to instructions in the program code stored in the memory.
By way of example, and not limitation, computer readable media may comprise computer storage media and communication media. Computer-readable media includes both computer storage media and communication media. Computer storage media store information such as computer readable instructions, data structures, program modules or other data. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. Combinations of any of the above are also included within the scope of computer readable media.
It should be appreciated that in the foregoing description of exemplary embodiments of the disclosure, various features of the disclosure are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that is, the claimed disclosure requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this disclosure.
Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in a device as described in this embodiment or alternatively may be located in one or more devices different from the devices in this example. The modules in the foregoing examples may be combined into one module or may be further divided into multiple sub-modules.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Moreover, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the disclosure and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
Furthermore, some of the described embodiments are described herein as a method or combination of method elements that can be performed by a processor of a computer system or by other means of performing the described functions. A processor having the necessary instructions for carrying out the method or method elements thus forms a means for carrying out the method or method elements. Further, the elements of the apparatus embodiments described herein are examples of the following apparatus: the apparatus is used to implement the functions performed by the elements for the purpose of carrying out the invention.
As used herein, unless otherwise specified the use of the ordinal adjectives "first", "second", "third", etc., to describe a common object, merely indicate that different instances of like objects are being referred to, and are not intended to imply that the objects so described must be in a given sequence, either temporally, spatially, in ranking, or in any other manner.
While the disclosure has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of this description, will appreciate that other embodiments can be devised which do not depart from the scope of the disclosure as described herein. Moreover, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the disclosed subject matter. Accordingly, many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the appended claims. The disclosure of the present disclosure is intended to be illustrative, but not limiting, of the scope of the disclosure, which is set forth in the following claims.

Claims (10)

1. A method of providing data services, comprising:
receiving a data service Application Programming Interface (API) generation request of a first user;
determining data items capable of providing data services according to the data service API generation request, and generating a configuration page comprising the data items capable of providing data services and access rules of the data items capable of providing data services;
receiving configuration information input by the first user on the configuration page, wherein the configuration information comprises a data item corresponding to a data service API and an access rule of the data item corresponding to the data service API;
generating a data service API according to the data item corresponding to the data service API and the access rule of the data item corresponding to the data service API;
receiving a request of a second user for calling the data service API;
and sending the information of the data service API to the second user.
2. The method of claim 1, wherein generating a data service API according to the data item corresponding to the data service API and the access rule of the data item corresponding to the data service API comprises:
determining a template function required by the generation API and parameter setting corresponding to the template function according to the data item corresponding to the data service API and the access rule of the data item corresponding to the data service API;
and generating the data service API according to the template function required by the API generation and the parameter setting corresponding to the template function.
3. The method of claim 1, further comprising:
receiving a request of the first user to test the data service API;
acquiring a data item corresponding to the data service API and an access rule of the data item corresponding to the data service API according to the request of the first user for testing the data service API;
generating a test configuration page according to the data item corresponding to the data service API and the access rule of the data item corresponding to the data service API;
receiving test configuration information input by the first user on the test configuration page;
generating a test code according to the test configuration information;
and executing the test code and calling the data service API to test.
4. The method of claim 1, wherein prior to sending the information of the data service API to the second user, further comprising:
generating an approval page corresponding to the request of the second user for calling the data service API according to the request of the second user for calling the data service API;
receiving approval information input by the first user on the approval page;
and determining that the first user authorizes the second user to call the data service API according to the approval information.
5. The method of claim 1, wherein the access rules for the data items to which the data service API corresponds include:
and accessing the data item corresponding to the data service API.
6. The method of claim 5, wherein the access rules for the data items to which the data service API corresponds further comprise:
and the data range of the data item corresponding to the data service API.
7. The method of claim 1, wherein the information of the data service API comprises:
service address, request mode and interface unified parameter description.
8. An apparatus for providing data services, comprising:
an API generation request receiving unit, configured to receive a data service API generation request of a first user;
the configuration page generating unit is used for determining data items capable of providing data services according to the data service API generating request and generating a configuration page comprising the data items capable of providing the data services and the access rules of the data items capable of providing the data services;
the configuration information acquisition unit is used for receiving configuration information input by the first user on the configuration page, wherein the configuration information comprises a data item corresponding to a data service API and an access rule of the data item corresponding to the data service API;
the API generating unit is used for generating a data service API according to the data item corresponding to the data service API and the access rule of the data item corresponding to the data service API;
an API call request receiving unit, configured to receive a request for calling the data service API from a second user;
and the API information issuing unit is used for sending the information of the data service API to the second user.
9. A readable storage medium having executable instructions thereon that, when executed, cause a computing device to perform the operations included in any of claims 1-7.
10. A computing device, comprising:
a processor; and
a memory storing executable instructions that, when executed, cause the processor to perform the operations included in any of claims 1-7.
CN201910859939.6A 2019-09-11 2019-09-11 Method, device, storage medium and computing equipment for providing data service Pending CN110633100A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910859939.6A CN110633100A (en) 2019-09-11 2019-09-11 Method, device, storage medium and computing equipment for providing data service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910859939.6A CN110633100A (en) 2019-09-11 2019-09-11 Method, device, storage medium and computing equipment for providing data service

Publications (1)

Publication Number Publication Date
CN110633100A true CN110633100A (en) 2019-12-31

Family

ID=68971962

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910859939.6A Pending CN110633100A (en) 2019-09-11 2019-09-11 Method, device, storage medium and computing equipment for providing data service

Country Status (1)

Country Link
CN (1) CN110633100A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111427576A (en) * 2020-03-27 2020-07-17 远光软件股份有限公司 Method, device, storage medium and terminal for configuring application program interface
CN112052418A (en) * 2020-09-08 2020-12-08 新奥数能科技有限公司 Data configuration method and device
CN112685021A (en) * 2020-12-28 2021-04-20 平安普惠企业管理有限公司 API (application program interface) generating method and device, computer equipment and storage medium
CN114153438A (en) * 2022-02-07 2022-03-08 宜科(天津)电子有限公司 API automatic generation system
CN114816505A (en) * 2022-04-18 2022-07-29 上海博般数据技术有限公司 Configuration method and system of data service interface and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140289699A1 (en) * 2009-08-18 2014-09-25 Adobe Systems Incorporated Methods and Systems for Data Service Development
CN106856485A (en) * 2015-12-08 2017-06-16 阿里巴巴集团控股有限公司 The dissemination method and device of data, services
CN108427550A (en) * 2018-02-13 2018-08-21 深圳太极云软技术股份有限公司 A kind of Web service generation method, device and equipment
CN108446116A (en) * 2018-02-26 2018-08-24 平安普惠企业管理有限公司 Generation method, device, computer equipment and the storage medium of the application program page
CN109522139A (en) * 2018-11-23 2019-03-26 杭州数梦工场科技有限公司 A kind of tables of data service creation call method, device, equipment and storage medium
CN110049001A (en) * 2019-02-27 2019-07-23 新奥特(北京)视频技术有限公司 A kind of method, apparatus, storage medium and server for realizing WebService service

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140289699A1 (en) * 2009-08-18 2014-09-25 Adobe Systems Incorporated Methods and Systems for Data Service Development
CN106856485A (en) * 2015-12-08 2017-06-16 阿里巴巴集团控股有限公司 The dissemination method and device of data, services
CN108427550A (en) * 2018-02-13 2018-08-21 深圳太极云软技术股份有限公司 A kind of Web service generation method, device and equipment
CN108446116A (en) * 2018-02-26 2018-08-24 平安普惠企业管理有限公司 Generation method, device, computer equipment and the storage medium of the application program page
CN109522139A (en) * 2018-11-23 2019-03-26 杭州数梦工场科技有限公司 A kind of tables of data service creation call method, device, equipment and storage medium
CN110049001A (en) * 2019-02-27 2019-07-23 新奥特(北京)视频技术有限公司 A kind of method, apparatus, storage medium and server for realizing WebService service

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111427576A (en) * 2020-03-27 2020-07-17 远光软件股份有限公司 Method, device, storage medium and terminal for configuring application program interface
CN112052418A (en) * 2020-09-08 2020-12-08 新奥数能科技有限公司 Data configuration method and device
CN112052418B (en) * 2020-09-08 2024-03-05 新奥数能科技有限公司 Data configuration method and device
CN112685021A (en) * 2020-12-28 2021-04-20 平安普惠企业管理有限公司 API (application program interface) generating method and device, computer equipment and storage medium
CN114153438A (en) * 2022-02-07 2022-03-08 宜科(天津)电子有限公司 API automatic generation system
CN114816505A (en) * 2022-04-18 2022-07-29 上海博般数据技术有限公司 Configuration method and system of data service interface and electronic equipment

Similar Documents

Publication Publication Date Title
CN110633100A (en) Method, device, storage medium and computing equipment for providing data service
CN109325195B (en) Rendering method and system for browser, computer device and computer storage medium
US20210327007A1 (en) Signing methods, apparatuses and devices of electronic contract
CN109636309B (en) Task processing method and device, electronic equipment and storage medium
CN109905398B (en) Mobile phone number binding change verification method, device, equipment and storage medium
CN110009362B (en) Block chain intelligent contract modification method and device and computer readable storage medium
CN111107503A (en) Short message fallback method, device and system for converged communication message platform service
CN109345190B (en) Data processing method and device
CN109165157B (en) Method for testing application program and test platform
CN108132926A (en) Contract generating means and system
TW201933244A (en) Method and device for handling cross border drawback
CA3059719C (en) Payment processing method, device, medium and electronic device
CN110795343A (en) Test system, test method and computing device
CN106453263A (en) Method and system of binding cellphone number with APP
CN110597602A (en) Transaction processing method and device, computer equipment and storage medium
CN111447178B (en) Access control method, system and computing device
CN110336872B (en) Method, device and system for acquiring third-party data
CN111105210A (en) Approval task processing method and device, electronic equipment and storage medium
CN111865726B (en) Service message testing method, device, computer system and storage medium
KR20120076479A (en) System and method for producing application
CN115576711A (en) Method and system for simulating returned data and computing equipment
CN114168937A (en) Resource access method, computing device and readable storage medium
CN114721943A (en) Method and device for determining test range
CN114168485A (en) Test method, device, equipment and medium
CN108932283B (en) Customer information screening method, system, computer device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20191231

RJ01 Rejection of invention patent application after publication