These docs are published to DevNet using PubHub.
See [https://pubhub.cisco.com/detail/5082] or contact siwarrie@cisco.com for details
Go to [https://devnetapps.cisco.com/docs/cisco-defense-orchestrator/].
- 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.
- Edit
cloud-fw-mgr-api-docs.config.yaml
in the root of this repo, and add the new microservice to theservices
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"
- Edit
api-changelog.md
to add a short description of what APIs your new microservice provides. - Submit a PR (please see commit message guidelines).
- You will need approval from the CODEOWNERS. See
.github/CODEOWNERS
to see who to request approval from. - Once your PR is approved, you will be (Cisco network only) be able to view the changes at https://devnetapps.cisco.com/docs/cisco-security-cloud-control/.
- To get it published to https://developer.cisco.com/docs/cisco-security-cloud-control, please work with the Cisco Devnet team or Siddhu Warrier, as this is a manual process that will involve reviewing the APIs you have added to ensure that they meet Cisco style guidelines.
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.
This can involve adding new APIs, or changing existing in APIs in a backwards-compatible manner.
- Edit
api-changelog.md
to add a short description of what APIs your new microservice provides. - Submit a PR (please see commit message guidelines).
- You will need approval from the CODEOWNERS. See
.github/CODEOWNERS
to see who to request approval from. - Once your PR is approved, you will be (Cisco network only) be able to view the changes at https://devnetapps.cisco.com/docs/cisco-security-cloud-control/.
- To get it published to https://developer.cisco.com/docs/cisco-security-cloud-control, please work with the Cisco Devnet team or Siddhu Warrier, as this is a manual process that will involve reviewing the APIs you have added to ensure that they meet Cisco style 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.
- Install Golang: https://golang.org/doc/install
- Install cobra-cli:
go install github.com/spf13/cobra-cli@latest
- Install pre-requisites:
go run main.go install-pre-reqs
cobra-cli add <command-name>
All tests are written using Ginkgo and Gomega.
To run your tests, use the following command:
cd /path/to/scripts/golang
ginkgo -r