Skip to content

Instantly share code, notes, and snippets.

@ignamiguel ignamiguel/LaunchDarkly.raml Secret
Created Aug 23, 2018

Embed
What would you like to do?
#%RAML 1.0
title: Launch Darkly REST API
protocols: [
HTTPS
]
version: 1.0.0
baseUri: https://mocksvc.mulesoft.com/mocks/9dd93301-ba9e-4045-9a82-9cd88a0c9de5/api/v2 # baseUri: /api/v2
mediaType: application/json
description: Build custom integrations with the LaunchDarkly REST API
securitySchemes:
passthrough:
description: |
This API supports Pass Through Authentication.
type: Pass Through
describedBy:
headers:
Authorization:
type: string
description: Authorization Header
example: api-999999e-12b1-41c9-ac15-b4f26c4d9999
displayName: API Token
/projects:
securedBy: passthrough
get:
description: Returns a list of all projects in the account.
displayName: List Projects
responses:
200:
description: Projects Response
body:
application/json:
401:
description: Unauthorized
/{projectKey}:
securedBy: passthrough
uriParameters:
projectKey:
type: string
example: flow-designer
required: true
displayName: Project Key
get:
description: Fetch a single project by key.
responses:
200:
description: Read Project
401:
description: Unauthorized
404:
description: Not Found
/flags/{projectKey}:
securedBy: passthrough
uriParameters:
projectKey:
description: Project Key
displayName: Project Key
get:
description: Get a list of all features in the given project.
responses:
200:
description: Flags response.
body:
application/json:
example: !include flagsExample.raml
401:
description: Unauthorized
/users/{projectKey}/{environmentKey}/{userKey}/flags:
securedBy: passthrough
uriParameters:
projectKey:
description: Project Key
displayName: Project Key
environmentKey:
description: Environment Key
displayName: Environment Key
userKey:
description: User Key
displayName: User Key
get:
description: Fetch a single flag setting for a user by key
displayName: Get user flag settings
responses:
200:
description: Get user flag settings response
body:
application/json:
example: !include userFlagSettingsExample.raml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.