Skip to content

Latest commit

 

History

History
98 lines (66 loc) · 3.75 KB

File metadata and controls

98 lines (66 loc) · 3.75 KB

Zowe Sample API Service

Use this sample Spring Boot REST API as a starting point to create a new z/OS-based service that:

  • Supports basic auth via SAF validation (when running on z/OS)
  • Can invoke traditional z/OS services via assembler or metal C interface through JNI
  • Is automatically discoverable via the Zowe API Mediation Layer

Prerequisites

Following platform is required to run the application:

Quick Start

Download the source code of the sample from https://github.com/zowe/sample-spring-boot-api-service/releases/latest/download/zowe-rest-api-sample-spring.zip and unzip it:

curl -OL https://github.com/zowe/sample-spring-boot-api-service/releases/latest/download/zowe-rest-api-sample-spring.zip
unzip zowe-rest-api-sample-spring.zip
cd zowe-rest-api-sample-spring

Build you application:

./gradlew build

Note: On Windows use gradlew instead of ./gradlew

Start your application:

./gradlew bootRun

Use the Application

Open https://localhost:10080/api/v1/greeting in your browser or favorite REST API client (for example HTTPie, REST Client for VSCode, or Insomnia.

Use zowe as the username and zowe as the password.

The default page https://localhost:10080/ opens Swagger UI with the API Documentation.

Swagger UI

Customize and Extend Your Application

For further reference, please consider the following sections:

Learn More about Gradle and Spring Boot

Reference Documentation

For further reference, please consider the following sections:

Guides

The following guides illustrate how to use some features concretely:

Additional Links

These additional references should also help you: