Skip to content

cisco-lockhart/cdo-public-api-docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to the Cisco Security Cloud Control Public API Documentation

These docs are published to DevNet using PubHub.

See [https://pubhub.cisco.com/detail/5082] or contact siwarrie@cisco.com for details

View your changes

Go to [https://devnetapps.cisco.com/docs/cisco-defense-orchestrator/].

Contributions

  • PRs with changes to this file will only accepted from contributors who work for Cisco, who use a Github account associated with their Cisco email address to create the PR.

Adding a new microservice

  • Edit cloud-fw-mgr-api-docs.config.yaml in the root of this repo, and add the new microservice to the services section. For example:
  - name: "my-new-service"
    url: "https://staging.manage.security.cisco.com/api/platform/my-new-service/v3/api-docs.yaml"
    # Optional: if your endpoints are accessible on /api/platform/myapp/foos, but the public-api-gateway makes them available on /api/rest/v1/bars/foos, you should specify /v1/bars as the prefix. Start with a /, and no trailing slashes.
    prefixToAdd: "/v1/bars"

Making API changes to an existing microservice

My change is backwards-incompatible

To adhere to Cisco's policy around backwards compatibility, you cannot make backwards-incompatible changes to an existing microservice. If you need to make a backwards-incompatible change, please work with Jeremy Street and Siddhu Warrier.

My change is backwards-compatible

This can involve adding new APIs, or changing existing in APIs in a backwards-compatible manner.

PR guidelines

All PR commits should follow the Conventional Commits format. This will help us automate the release process, and we will set the version of the CLI on the basis of the commit made.

The Golang CLI for API documentation generation

Pre-requisites

go run main.go install-pre-reqs

Development

Add a new command

cobra-cli add <command-name>

Testing

All tests are written using Ginkgo and Gomega.

To run your tests, use the following command:

cd /path/to/scripts/golang
ginkgo -r