/utility-network-swagger

Utility Network REST API expressed in Swagger / Open API Specification, code samples

Primary LanguageC#

Swagger for ArcGIS Utility Network web services

An Open API Specification/Swagger definition for methods on the ArcGIS Utility Network REST API

GetRunning

What's Here?

  • Swagger/Open API definition file for trace, updatedIsConnected, getToken.
  • nSwagStudio generated C# client for trace, updatedIsConnected, getToken
  • swagger-codegen samples of other generated clients (Python, C++, TypeScript-Angular, TypeScript-Node, Akka-Scala)

Prerequisites

  • Visual Studio 2015, 2017, or 2019 to compile C# sample (in /utility-network-swagger/code samples/UtilityNetworkCSharpSample_v1 (or _v2))

Getting Started

  • Open .NET solution under code-samples\UtilityNetworkCSharpSample_v2\UNCSharpConsoleSample.sln
  • Change variables marked as REQUIRED in Program.cs for your Portal web adapter, manager, username, password, and utility network feature layer name.
  • Compile, run, have fun!!
  • Fin!

Version 2 SDKs Built With

  • Swagger-Editor - Local Visual editor for OpenAPI Spec, and Client SDK generator
  • SwaggerHub - Local Visual editor for OpenAPI Spec, and Client SDK generator
  • nSwagStudio - Used to generate C#, TypeScript clients
  • Swagger-codegen - Command line client generator for Swagger APIs

Version 1 SDKs Built With