Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[API-193] - add endpoints api keys #25

Merged
merged 17 commits into from
May 24, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
[API-193] - merged main
  • Loading branch information
MaritzaGarc committed May 19, 2023
commit 8e207b78bde7bd909563f9682e74a18e61b52222
88 changes: 88 additions & 0 deletions _build/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2270,6 +2270,69 @@ paths:
- $ref: '#/paths/~1logs/get/parameters/0'
- $ref: '#/paths/~1logs/get/parameters/1'
- $ref: '#/paths/~1logs~1%7Bid%7D/get/parameters/0'
'/events/{event_id}/webhook_logs/{webhook_log_id}/resend':
post:
tags:
- Events
operationId: resendWebhook
summary: Resend Webhook
description: Try to send an event
responses:
'200':
description: successful operation
content:
application/vnd.conekta-v2.1.0+json:
schema:
title: event_webhook_resend_response
description: event model
type: object
properties:
failed_attempts:
type: integer
example: 6
id:
type: string
example: webhl_2svd2sh6GbqzyWBNZ
last_attempted_at:
type: integer
example: 1684265970
last_http_response_status:
type: integer
format: int32
example: 405
response_data:
additionalProperties: true
maxProperties: 100
type: object
example: {}
url:
type: string
example: 'https://username:password@mockoon.stg.conekta.io/payments-api/cash/merchant_approval'
format: uri
'401':
$ref: '#/paths/~1logs/get/responses/401'
'404':
$ref: '#/paths/~1logs~1%7Bid%7D/get/responses/404'
'500':
$ref: '#/paths/~1logs/get/responses/500'
security:
- bearerAuth: []
parameters:
- in: path
name: event_id
description: event identifier
required: true
schema:
type: string
example: 6463d6e35a4c3e001819e760
- in: path
name: webhook_log_id
description: webhook log identifier
required: true
schema:
type: string
example: webhl_2tsv6NzWJHBWCkqGt
- $ref: '#/paths/~1logs/get/parameters/0'
/logs:
get:
tags:
Expand Down Expand Up @@ -7685,6 +7748,31 @@ paths:
parameters:
- $ref: '#/paths/~1logs~1%7Bid%7D/get/parameters/0'
- $ref: '#/paths/~1logs/get/parameters/0'
'/webhooks/{id}/test':
post:
tags:
- Webhooks
operationId: testWebhook
summary: Test Webhook
description: Send a webhook.ping event
responses:
'200':
description: successful
content:
application/vnd.conekta-v2.1.0+json:
schema:
$ref: '#/paths/~1webhooks/post/responses/200/content/application~1vnd.conekta-v2.1.0%2Bjson/schema'
'401':
$ref: '#/paths/~1logs/get/responses/401'
'404':
$ref: '#/paths/~1logs~1%7Bid%7D/get/responses/404'
'500':
$ref: '#/paths/~1logs/get/responses/500'
security:
- bearerAuth: []
parameters:
- $ref: '#/paths/~1logs~1%7Bid%7D/get/parameters/0'
- $ref: '#/paths/~1logs/get/parameters/0'
security:
- bearerAuth: []
components:
Expand Down
2 changes: 2 additions & 0 deletions api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ paths:
$ref: "./resources/webhooks/webhooks.yml"
/webhooks/{id}:
$ref: "./resources/webhooks/webhook.yml"
/webhooks/{id}/test:
$ref: "./resources/webhooks/webhook_test.yml"
security:
- bearerAuth: []
components:
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.