AWS CodeCommit Integration

Number of APIs: 2

Introduction

This collection is intended to upload Qodex collections to AWS CodeCommit.

Prerequisites

This collection requires that you have both a Qodex API key ([learn more about the Qodex API here] and get your Qodex API key here) and AWS access keys (learn more about AWS access keys here).

Forking Collections

In order to use this integration, you will need to fork this collection. You can do this by left clicking on a collection and pressing create a fork. You will also need to fork the environment named AWS CodeCommit Integration ([learn more about forking collections and environments here]

Monitors

In the integration, a monitor is used to automatically check to update the changes made to a collection once a day.

In order to make this monitor, input the desired Monitor Name, select the AWS CodeCommit Integration collection as the Collection. Select the AWS CodeCommit environment as the environment and select how often you want it to be run to check if your collection has been updated (we recommend once a day). Then, your monitor should be created ([learn more about creating a monitor here]

Mocks

If you would like to see example responses and run and interact with the collection without having to input valid credentials, you will need to create a mock server. You can do this by left clicking on your forked version of this integration and selecting Mock Collection ([learn more about creating a mock server here]

Then you will also nee to fork the [MOCK] AWS CodeCommit Integration environment. Copy the mock server url and assign it to the environment variable mockUrl. If you run the collection with the mock environment selected, it will show you what a successful request looks so long as you fill out the environment variables with the correct variable type.

Workflow Diagram

Workflow Diagram

Environment Setup

To use this collection, the following environment variables must be defined:

KeyDescription
x-api-keyYour Qodex API key ([learn more about the Qodex API here] and get your Qodex API key here)
awsAccessKeyYour AWS access key (learn more about AWS access keys here)
awsSecretKeyYour AWS secret key (learn more about AWS access keys here)
awsRegionThe region in which your AWS service is located (e.g.: us-east-1, us-west-2)
collectionUIDThe UID of your collection (found under the collection details tab)
repositoryNameThe name of the AWS CodeCommit repository you would like to upload your Qodex collection to
directoryThe directory in which commits are saved. If left blank, the default directory is set to Qodex Collections
fileNameThe file name in AWS CodeCommit you would like your uploaded Qodex collection to have, without the .json extension
branchNameThe name of the AWS CodeCommit branch you would like to upload your Qodex collection to. If no branch is entered, the default branch of the repository is used. If a new repo was created, the default branch is main
collectionContentA serialized version of your Qodex collection (auto-generated by the Get Collection request)
commitIdThe ID of the commit of your Qodex collection (auto-generated by the Get Branch request)
filePathAutogenerated file path created during request call.
modeAutogenerated string to track deletion/creation.
isCreatedAutogenerated boolean value to track if a file has been committed to the repo.
  1. Get Branch POST {{baseUrl}}

  2. Get Collection GET {{baseUrl}}/collections/{{collectionUID}}