Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
117 changes: 117 additions & 0 deletions openapi.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions src/openapi.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 38 additions & 0 deletions src/webhooks/billable_metric_created.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
post:
operationId: billableMetricCreated
summary: A new billable metric has been created
description: A new billable metric has been created
parameters:
- $ref: "../parameters/webhook_signature.yaml"
- $ref: "../parameters/webhook_signature_algorithm.yaml"
- $ref: "../parameters/webhook_unique_key.yaml"
requestBody:
description: Details of the new billable metric
content:
application/json:
schema:
type: object
required:
- webhook_type
- object_type
- organization_id
- billable_metric
properties:
webhook_type:
type: string
enum:
- billable_metric.created
object_type:
type: string
enum:
- billable_metric
organization_id:
type: string
format: "uuid"
description: Unique identifier of the organization, created by Lago.
example: "1a901a90-1a90-1a90-1a90-1a901a901a90"
billable_metric:
$ref: "../schemas/BillableMetricObject.yaml"
responses:
"200":
description: Return a 200 status to indicate that the data was received successfully
38 changes: 38 additions & 0 deletions src/webhooks/billable_metric_deleted.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
post:
operationId: billableMetricDeleted
summary: A billable metric has been deleted
description: A billable metric has been deleted
parameters:
- $ref: "../parameters/webhook_signature.yaml"
- $ref: "../parameters/webhook_signature_algorithm.yaml"
- $ref: "../parameters/webhook_unique_key.yaml"
requestBody:
description: Details of the billable metric
content:
application/json:
schema:
type: object
required:
- webhook_type
- object_type
- organization_id
- billable_metric
properties:
webhook_type:
type: string
enum:
- billable_metric.deleted
object_type:
type: string
enum:
- billable_metric
organization_id:
type: string
format: "uuid"
description: Unique identifier of the organization, created by Lago.
example: "1a901a90-1a90-1a90-1a90-1a901a901a90"
billable_metric:
$ref: "../schemas/BillableMetricObject.yaml"
responses:
"200":
description: Return a 200 status to indicate that the data was received successfully
38 changes: 38 additions & 0 deletions src/webhooks/billable_metric_updated.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
post:
operationId: billableMetricUpdated
summary: A billable metric has been updated
description: A billable metric has been updated
parameters:
- $ref: "../parameters/webhook_signature.yaml"
- $ref: "../parameters/webhook_signature_algorithm.yaml"
- $ref: "../parameters/webhook_unique_key.yaml"
requestBody:
description: Details of the billable metric
content:
application/json:
schema:
type: object
required:
- webhook_type
- object_type
- organization_id
- billable_metric
properties:
webhook_type:
type: string
enum:
- billable_metric.updated
object_type:
type: string
enum:
- billable_metric
organization_id:
type: string
format: "uuid"
description: Unique identifier of the organization, created by Lago.
example: "1a901a90-1a90-1a90-1a90-1a901a901a90"
billable_metric:
$ref: "../schemas/BillableMetricObject.yaml"
responses:
"200":
description: Return a 200 status to indicate that the data was received successfully
Loading