The invention discloses an
oil field GIS modularization application program interface
verification method and
system, and the method comprises the steps: firstly, setting a uniform interface specification, guaranteeing that all modules follow the same standard during the interface development, and reducing the
verification problem caused by the interface difference; the access point of each interface is provided with interface
metadata used for describing the basic information, the
parameter type, the value range and the like of the interface. The interface
metadata is the basis of interface
verification and provides all information required during interface calling. When the interface is called, the transmitted parameters are dynamically verified according to the interface
metadata to ensure that the parameters conform to the definition in the interface metadata. And after the parameter verification succeeds, obtaining a corresponding
business logic processing object and a
data format according to the interface metadata. This ensures that the
system can correctly process the interface request, avoiding problems caused by mismatching of data formats or
processing logic errors. Therefore, the method provided by the invention can solve the problems in the prior art.