Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

api-landscape

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

api-landscape

API Landscape CLI

  • 0.1.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

DO NOT USE; Research project

Build Status

API Landscape Lifecycle Tooling

  • Human Entrypoint TODO
  • Machine Discovery

Requirements

Accounts

  • NPM account
  • GitHub account
  • Travis CI account
  • ZEIT Now account
  • Docker HUB account
  • Infrastructural Domain in ZEIT (optional)

Local Development

  • Docker

Collaborate

  • fork or create branch
  • dev

Env Varianbles

API_LANDSCAPE_DOMAIN APIS_DOMAINS

Local

SERVICE_SELF_PORT

CI/CD

SERVICE_SELF_PORT NOW_TOKEN NOW_TEAM API_LANDSCAPE_DOMAIN TRAVIS_PULL_REQUEST - Travis specific

Production

Build

SERVICE_SELF_PORT

Runtime

BASE_URL - It templates itself when the container starts

Dependencies

  • supermodels
  • governance repo

Commands

test

  • does the readme contain the right branch
  • dredd test the mock
  • governance

build

X - syntax validation X - dereferencing

  • generates readme

    • doc url
    • mock url
    • changelog
  • compiles and dereferences the templated and decomposed spec

    • github
    • version
    • host
    • license

serve maybe mock

  • starts a server
    • with the mock for the api
    • and the discovery endpoint service the compiled spec
    • and the human readable documentaion

dev

X - it builds the spec document

  • it starts the mock server
  • the mock server
    • is mocking the API
    • is serving the /discovery endpoint X - compat /discovery/doc endpoint X - compat /discovery/spec endpoint X - is serving the doc
    • is serving the spec document X - when the spec changes X - it rebuilds the spec X - it reloads the browser automatically
    • it reloads the mock

release

  • locally
    • for master branch
      • fail
    • for other branches
      • fail
  • in CI
    • for master branch
      • semantic release
    • for other branches
      • fail

deploy

  • locally

    • for master branch
    • for other branches
  • in CI

    • for master branch

    • for other branches
      • if PR
        • deploy to PR
      • if not PR
        • do nothing

References

TODO

Security

  • [] Make sure tokens are secure for forks in CI
  • [] Figure out PR deployment for forks reflecting ^^^

Infra

  • [] Conventions for environment varirables and configuration
    • service configuration
    • discovery: surrounding environment (local (mocking), stage, prod etc..)

Developer Experience

  • [] STDOUT from deploy task
  • [] Faster Docker build using arbitrary binary node-alpine + stoplight/prism images
  • [] mock component binary, problematic license
  • [] performance degradation by reverse proxying
  • [] show OAS validation errors with line numbers
  • [] faster build
    • [] using JS API instead of CLI
    • [] triggering mock reloadng instead of the full entire process/container lifecycle
  • [] not only API Specification is the contract
    • [] scenarios
    • [] prose

FAQs

Package last updated on 15 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc