jamesbar2 / ld-openapi

Open API specification for the LaunchDarkly REST API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LaunchDarkly OpenAPI

This repository contains an OpenAPI specification for LaunchDarkly's REST API.

This REST API is for custom integrations, data export, or automating your feature flag workflows. DO NOT use this client library to add feature flags to your web or mobile application. To integrate feature flags with your application, please see the SDK documentation

Directory architecture

This project uses YAML file pointers to create the directory architecture described here:

http://azimi.me/2015/07/16/split-swagger-into-smaller-files.html

Compiling the spec

It may be useful to compile the spec to a single file. To do so follow these instructions:

  1. Install dependencies:

    npm install

  2. Compile to a single yaml:

    npm run compile

Alternatively, you can test a multi-file Swagger spec using VSCode, or by following these instructions for the online editor:

https://apihandyman.io/writing-openapi-swagger-specification-tutorial-part-8-splitting-specification-file/#editing-splitted-local-files-with-the-online-editor

Suggested editors

Code generation

Server/client code for the API can be automatically generated. To generate the code:

  1. Install swagger-codegen:

    brew install swagger-codegen

  2. Run the generate command:

    npm run generate

About

Open API specification for the LaunchDarkly REST API

License:Other


Languages

Language:Makefile 53.8%Language:Shell 26.1%Language:HTML 20.1%