Skip to content

Commit d6438f7

Browse files
[Automated] OpenAPI Spec Update (#11)
Co-authored-by: BehnH <[email protected]>
1 parent e9848cf commit d6438f7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+368
-40
lines changed

.openapi-generator/FILES

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ docs/EventFailureResponse.md
2929
docs/EventRequest.md
3030
docs/EventSuccessResponse.md
3131
docs/EventsAPI.md
32+
docs/IdempotencyKeyFailureResponse.md
3233
docs/MailingList.md
3334
docs/MailingListsAPI.md
3435
docs/TransactionalEmail.md
@@ -60,6 +61,7 @@ model_contact_success_response.go
6061
model_event_failure_response.go
6162
model_event_request.go
6263
model_event_success_response.go
64+
model_idempotency_key_failure_response.go
6365
model_mailing_list.go
6466
model_transactional_email.go
6567
model_transactional_failure2_response.go
@@ -70,5 +72,4 @@ model_transactional_request.go
7072
model_transactional_request_attachments_inner.go
7173
model_transactional_success_response.go
7274
response.go
73-
test/api_contact_properties_test.go
7475
utils.go

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This is the OpenAPI Spec for the [Loops API](https://loops.so/docs/api).
55
## Overview
66
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.
77

8-
- API version: 1.4.1
8+
- API version: 1.4.2
99
- Package version: 1.0.2
1010
- Generator version: 7.7.0
1111
- Build package: org.openapitools.codegen.languages.GoClientCodegen
@@ -108,6 +108,7 @@ Class | Method | HTTP request | Description
108108
- [EventFailureResponse](docs/EventFailureResponse.md)
109109
- [EventRequest](docs/EventRequest.md)
110110
- [EventSuccessResponse](docs/EventSuccessResponse.md)
111+
- [IdempotencyKeyFailureResponse](docs/IdempotencyKeyFailureResponse.md)
111112
- [MailingList](docs/MailingList.md)
112113
- [TransactionalEmail](docs/TransactionalEmail.md)
113114
- [TransactionalFailure2Response](docs/TransactionalFailure2Response.md)

api/openapi.yaml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ openapi: 3.1.0
22
info:
33
description: "This is the OpenAPI Spec for the [Loops API](https://loops.so/docs/api)."
44
title: Loops OpenAPI Spec
5-
version: 1.4.1
5+
version: 1.4.2
66
servers:
77
- url: https://app.loops.so/api/v1
88
tags:
@@ -301,6 +301,12 @@ paths:
301301
description: Bad request (e.g. `eventName` is missing).
302302
"405":
303303
description: Wrong HTTP request method.
304+
"409":
305+
content:
306+
application/json:
307+
schema:
308+
$ref: '#/components/schemas/IdempotencyKeyFailureResponse'
309+
description: Idempotency key has been used.
304310
security:
305311
- apiKey: []
306312
summary: Send an event
@@ -374,6 +380,12 @@ paths:
374380
description: Transactional email not found.
375381
"405":
376382
description: Wrong HTTP request method.
383+
"409":
384+
content:
385+
application/json:
386+
schema:
387+
$ref: '#/components/schemas/IdempotencyKeyFailureResponse'
388+
description: Idempotency key has been used.
377389
security:
378390
- apiKey: []
379391
summary: Send a transactional email
@@ -648,6 +660,18 @@ components:
648660
required:
649661
- message
650662
- success
663+
IdempotencyKeyFailureResponse:
664+
example:
665+
success: true
666+
message: message
667+
properties:
668+
success:
669+
type: boolean
670+
message:
671+
type: string
672+
required:
673+
- message
674+
- success
651675
TransactionalEmail:
652676
example:
653677
lastUpdated: lastUpdated

api_api_key.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api_contact_properties.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api_contacts.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api_events.go

Lines changed: 11 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api_mailing_lists.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api_transactional_emails.go

Lines changed: 11 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)