Skip to content
This repository was archived by the owner on Feb 7, 2020. It is now read-only.
This repository was archived by the owner on Feb 7, 2020. It is now read-only.

Replace promote command with swagger import #25

@schovi

Description

@schovi

Instead of workflow:

Swagger file -> swagger import + blueprint -> DEV
DEV -> promote -> QA
QA -> promote -> PRD

we can do:

Swagger file -> swagger import + blueprint -> DEV or QA or PRD
  1. Each environment can have a separate blueprint, but it will cost a lot of work on maintaining.
  2. Or it can share the same blueprint with some new properties which will be merged over default one:
endpoint:
  timeout: 10
  methods:
    - name: "Some method"
environment:
  DEV:
    endpoint:
      name: *:DEV *
      publicDomain: dev.adidas.com

  QA:
    endpoint:
      name: *:QA *
      timeout: 5
      publicDomain: qa.adidas.com

then it can be called as
mashery-toolbet swagger-import swagger.yaml --blueprint="blueprint.yaml" --env="QA"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions