《OPC REST与OpenAPI定义.pdf》由会员分享,可在线阅读,更多相关《OPC REST与OpenAPI定义.pdf(14页珍藏版)》请在三个皮匠报告上搜索。
1、OPC Day International 2024June 17th 21st,2024Randy ArmstrongChair of OPC UA Security Working Grouprandy.armstrongopcfoundation.orgOPC Day International 2024June 17th 21st,2024HTTPS mapping for OPC UA is not new Released originally with 1.00(XML only);JSON mapping added in 1.04.In 1.05.04 HTTPS mappi
2、ng has been updated:Simplified JSON encoding OpenAPI 3.0(Swagger Definitions)JSON Schema Definitions for DataTypes Mandatory support for GZIPObjective:Make the HTTPS APIs accessible using tools that are commonly used in OT.HTTPS/POSTContentType:application/jsonAuthorization:Bearer ClientServerAuthor
3、izationServiceIndustrial ProcessOPC Day International 2024June 17th 21st,20243Standardized FormatProvides a standard format for describing the structure and behaviors of APIs.InteroperabilityMore easily understood and used by developers,regardless of the platform or language they are working in.Auto
4、mationUsed to automate the creation of client libraries,server stubs,and other code.This helps in reducing development time and minimizing errors.OPC Day International 2024June 17th 21st,20244OpenAPI Generator supports many different programming languages https:/openapi-generator.tech/UA-REST-Starte
5、rKit includes TypeScript web UI built using OpenAPI generated code:https:/ Member-only for now.More language example under development.OPC Day International 2024June 17th 21st,20245ModelCompiler generates:JSON schemas for Structures NodeId declarations BrowseName declarationSupport for ANSI C,C#and
6、TypeScript Support JavaScript and Python planned.Works with officially released companion NodeSets or vendor specific NodeSets.export const NS=http:/opcfoundation.org/UA/;export class DataTypeIds static readonly BaseDataType:string=i=24;static readonly Number:string=i=26;static readonly Integer:stri