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

add ReplayAppEvent endpoint #672

Merged
merged 7 commits into from
May 31, 2022
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
122 changes: 122 additions & 0 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -2970,6 +2970,128 @@ var doc = `{
}
}
},
"/events/{eventID}/replay": {
"put": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "This endpoint replays an app event",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Events"
],
"summary": "Replay app event",
"parameters": [
{
"type": "string",
"description": "group id",
"name": "groupId",
"in": "query",
"required": true
},
{
"type": "string",
"description": "event id",
"name": "eventID",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"allOf": [
{
"$ref": "#/definitions/server.serverResponse"
},
{
"type": "object",
"properties": {
"data": {
"allOf": [
{
"$ref": "#/definitions/datastore.Event"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/server.Stub"
}
}
}
]
}
}
}
]
}
},
"400": {
"description": "Bad Request",
"schema": {
"allOf": [
{
"$ref": "#/definitions/server.serverResponse"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/server.Stub"
}
}
}
]
}
},
"401": {
"description": "Unauthorized",
"schema": {
"allOf": [
{
"$ref": "#/definitions/server.serverResponse"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/server.Stub"
}
}
}
]
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"allOf": [
{
"$ref": "#/definitions/server.serverResponse"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/server.Stub"
}
}
}
]
}
}
}
}
},
"/groups": {
"get": {
"security": [
Expand Down
122 changes: 122 additions & 0 deletions docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -2958,6 +2958,128 @@
}
}
},
"/events/{eventID}/replay": {
"put": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "This endpoint replays an app event",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Events"
],
"summary": "Replay app event",
"parameters": [
{
"type": "string",
"description": "group id",
"name": "groupId",
"in": "query",
"required": true
},
{
"type": "string",
"description": "event id",
"name": "eventID",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"allOf": [
{
"$ref": "#/definitions/server.serverResponse"
},
{
"type": "object",
"properties": {
"data": {
"allOf": [
{
"$ref": "#/definitions/datastore.Event"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/server.Stub"
}
}
}
]
}
}
}
]
}
},
"400": {
"description": "Bad Request",
"schema": {
"allOf": [
{
"$ref": "#/definitions/server.serverResponse"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/server.Stub"
}
}
}
]
}
},
"401": {
"description": "Unauthorized",
"schema": {
"allOf": [
{
"$ref": "#/definitions/server.serverResponse"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/server.Stub"
}
}
}
]
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"allOf": [
{
"$ref": "#/definitions/server.serverResponse"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/server.Stub"
}
}
}
]
}
}
}
}
},
"/groups": {
"get": {
"security": [
Expand Down
65 changes: 65 additions & 0 deletions docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2181,6 +2181,71 @@ paths:
summary: Get delivery attempt
tags:
- DeliveryAttempts
/events/{eventID}/replay:
put:
consumes:
- application/json
description: This endpoint replays an app event
parameters:
- description: group id
in: query
name: groupId
required: true
type: string
- description: event id
in: path
name: eventID
required: true
type: string
produces:
- application/json
responses:
"200":
description: OK
schema:
allOf:
- $ref: '#/definitions/server.serverResponse'
- properties:
data:
allOf:
- $ref: '#/definitions/datastore.Event'
- properties:
data:
$ref: '#/definitions/server.Stub'
type: object
type: object
"400":
description: Bad Request
schema:
allOf:
- $ref: '#/definitions/server.serverResponse'
- properties:
data:
$ref: '#/definitions/server.Stub'
type: object
"401":
description: Unauthorized
schema:
allOf:
- $ref: '#/definitions/server.serverResponse'
- properties:
data:
$ref: '#/definitions/server.Stub'
type: object
"500":
description: Internal Server Error
schema:
allOf:
- $ref: '#/definitions/server.serverResponse'
- properties:
data:
$ref: '#/definitions/server.Stub'
type: object
security:
- ApiKeyAuth: []
summary: Replay app event
tags:
- Events
/groups:
get:
consumes:
Expand Down