Seiteneigenschaften |
---|
Deutsch | ||||
---|---|---|---|---|
Dieser Artikel bietet eine Einführung in die Verwendung von Swagger zur Erstellung eines API-Clients. API-SpezifikationenDie index.json eines jeden Mikrodienstes enthält die jeweilige LMC-API-Spezifikation. Der Speicherort jeder index.json ist https://cloud.lancom.de/<micro-service>/api-docs/index.json. Eine Möglichkeit, alle diese Dateien herunterzuladen, ist:
Swagger-Code-GeneratorSwagger bietet ein Java JAR, um Code aus einer gegebenen API-Spezifikation (index-json) zu generieren. Sie können die neueste Version von hier herunterladen: https://github.com/swagger-api/swagger-codegen/releases Java-ClientDas folgende Bash-Skript erzeugt einen Java-Client.
|
Englisch | ||||
---|---|---|---|---|
This section provides an introduction on how to use Swagger to generate an API client. API SpecificationsThe One way of downloading all of these files is:
Swagger Code GeneratorSwagger provides a Java JAR to generate code from a given API specification ( You can download the latest release from here: https://github.com/swagger-api/swagger-codegen/releases Java ClientThe following bash script generates a java client.
|