0.2.18 • Published 1 day ago

@backstage/plugin-bitbucket-cloud-common v0.2.18

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 day ago

@backstage/plugin-bitbucket-cloud-common

Welcome to the common package for bitbucket-cloud plugins!

This common package provides a reusable API client for the Bitbucket Cloud API which can be reused in catalog-backend-module plugins, scaffolder modules, etc.

Using a shared client allows to control all traffic going from Backstage to the Bitbucket Cloud API compared to separate clients or inline API calls.

We may want to leverage this later to add rate limiting, etc.

How to maintain the generated code

Update the Models

This command will

  1. refresh the schema/OpenAPI Specification
  2. re-generate the models
  3. reduce the models to the minimal needed

Refresh the schema

This command will download the latest version of the Bitbucket Cloud OpenAPI Specification and apply some mutations to fix bugs or improve the schema for a better code generation output.

yarn refresh-schema

Generate Models

The models used are created based on the local OpenAPI Specification file using a code generator. Some post-cleanup is applied to improve the generated output.

The client itself using the models is not generated.

yarn generate-models

Reduce Models

In order to keep the API surface minimal, this command helps to only keep the minimal part of the generated models by considering all Models module members directly or transitively used by the client implementation.

yarn reduce-models

Adding a New Client Method

If you want to add a new method to the client implementation which may use a new endpoint or "new" models you can

  1. optionally refresh the schema to get the latest version
  2. and generate the models.

At this point, you have all models usable for adding a new method using any of them.

If you are ready with your addition to the client, you can reduce the models to the minimal needed.

0.2.19-next.0

3 days ago

0.2.18

24 days ago

0.2.18-next.0

1 month ago

0.2.17

2 months ago

0.2.17-next.2

2 months ago

0.2.17-next.1

2 months ago

0.2.17-next.0

2 months ago

0.2.16

3 months ago

0.2.16-next.2

3 months ago

0.2.16-next.1

3 months ago

0.2.16-next.0

4 months ago

0.2.15

5 months ago

0.2.15-next.1

5 months ago

0.2.13-next.1

7 months ago

0.2.13-next.0

8 months ago

0.2.9-next.0

9 months ago

0.2.14-next.0

6 months ago

0.2.11-next.0

9 months ago

0.2.15-next.0

6 months ago

0.2.14

6 months ago

0.2.13

7 months ago

0.2.12

8 months ago

0.2.11

9 months ago

0.2.10

9 months ago

0.2.12-next.1

8 months ago

0.2.12-next.2

8 months ago

0.2.12-next.3

8 months ago

0.2.9

9 months ago

0.2.8

10 months ago

0.2.8-next.0

11 months ago

0.2.7

11 months ago

0.2.7-next.0

12 months ago

0.2.6

12 months ago

0.2.6-next.0

1 year ago

0.2.5

1 year ago

0.2.5-next.0

1 year ago

0.2.4-next.0

1 year ago

0.2.4

1 year ago

0.2.3-next.1

1 year ago

0.2.3-next.0

1 year ago

0.2.3

1 year ago

0.2.1-next.0

2 years ago

0.2.2-next.1

1 year ago

0.2.2-next.0

1 year ago

0.2.1

1 year ago

0.2.0

2 years ago

0.2.2

1 year ago

0.2.0-next.2

2 years ago

0.2.0-next.1

2 years ago

0.2.0-next.0

2 years ago

0.1.3-next.1

2 years ago

0.1.3-next.0

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.2-next.0

2 years ago

0.1.1

2 years ago

0.1.1-next.1

2 years ago

0.1.1-next.0

2 years ago

0.1.0

2 years ago

0.1.0-next.0

2 years ago