Skip to main content

Interfaces

Add any number of interfaces to a single configuration to interact with. Interfaces run a number of actions when triggered.

Defining Interfaces

Defining interfaces are simple. Declare an interfaces section and create your identifiers for each interface.

Usage

name: get-vault-secrets

interfaces:
prod/user-login:
prod/user-details:

Options

NameTypeDescription
summarystring (optional)Short summary on what this api interface is for
descriptionstring (optional)Longer description on what this api interface is for
outputstring (required)How to interact with this api
  • http
methodstring (required)The method to call this api
  • GET
  • POST
routestring (optional)Define the route the api will be called on. The interface identifer is the default route and will be used if no route is defined.
tagsarray (optional)Array of strings containing tags
actionsarray (optional)An array of instructions and transformations that occur when an API interface is called

Usage

name: get-vault-secrets

interfaces:
prod/user-login:
summary: production endpoint
description: production endpoint for login service
tags: ['env:production', 'version:1.0.0']
output: http
method: POST

actions:
- name: CheckInput
- name: VerifyUser
- name: VerifyPassword