mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
chore: add api tests for all alternative heartbeat endpoints
This commit is contained in:
@ -207,7 +207,7 @@ var doc = `{
|
||||
"heartbeat"
|
||||
],
|
||||
"summary": "Push new heartbeats",
|
||||
"operationId": "post-heartbeat-6",
|
||||
"operationId": "post-heartbeat-7",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "Multiple heartbeats",
|
||||
@ -460,7 +460,7 @@ var doc = `{
|
||||
"heartbeat"
|
||||
],
|
||||
"summary": "Push new heartbeats",
|
||||
"operationId": "post-heartbeat-4",
|
||||
"operationId": "post-heartbeat-5",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "Multiple heartbeats",
|
||||
@ -547,6 +547,75 @@ var doc = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/users/{user}/heartbeats": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"heartbeat"
|
||||
],
|
||||
"summary": "Push a new heartbeat",
|
||||
"operationId": "post-heartbeat-4",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "A single heartbeat",
|
||||
"name": "heartbeat",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/models.Heartbeat"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"201": {
|
||||
"description": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/users/{user}/heartbeats.bulk": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"heartbeat"
|
||||
],
|
||||
"summary": "Push new heartbeats",
|
||||
"operationId": "post-heartbeat-8",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "Multiple heartbeats",
|
||||
"name": "heartbeat",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/models.Heartbeat"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"201": {
|
||||
"description": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/v1/users/{user}/heartbeats": {
|
||||
"post": {
|
||||
"security": [
|
||||
@ -594,7 +663,7 @@ var doc = `{
|
||||
"heartbeat"
|
||||
],
|
||||
"summary": "Push new heartbeats",
|
||||
"operationId": "post-heartbeat-5",
|
||||
"operationId": "post-heartbeat-6",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "Multiple heartbeats",
|
||||
|
@ -191,7 +191,7 @@
|
||||
"heartbeat"
|
||||
],
|
||||
"summary": "Push new heartbeats",
|
||||
"operationId": "post-heartbeat-6",
|
||||
"operationId": "post-heartbeat-7",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "Multiple heartbeats",
|
||||
@ -444,7 +444,7 @@
|
||||
"heartbeat"
|
||||
],
|
||||
"summary": "Push new heartbeats",
|
||||
"operationId": "post-heartbeat-4",
|
||||
"operationId": "post-heartbeat-5",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "Multiple heartbeats",
|
||||
@ -531,6 +531,75 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/users/{user}/heartbeats": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"heartbeat"
|
||||
],
|
||||
"summary": "Push a new heartbeat",
|
||||
"operationId": "post-heartbeat-4",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "A single heartbeat",
|
||||
"name": "heartbeat",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/models.Heartbeat"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"201": {
|
||||
"description": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/users/{user}/heartbeats.bulk": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"heartbeat"
|
||||
],
|
||||
"summary": "Push new heartbeats",
|
||||
"operationId": "post-heartbeat-8",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "Multiple heartbeats",
|
||||
"name": "heartbeat",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/models.Heartbeat"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"201": {
|
||||
"description": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/v1/users/{user}/heartbeats": {
|
||||
"post": {
|
||||
"security": [
|
||||
@ -578,7 +647,7 @@
|
||||
"heartbeat"
|
||||
],
|
||||
"summary": "Push new heartbeats",
|
||||
"operationId": "post-heartbeat-5",
|
||||
"operationId": "post-heartbeat-6",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "Multiple heartbeats",
|
||||
|
@ -436,7 +436,7 @@ paths:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
operationId: post-heartbeat-6
|
||||
operationId: post-heartbeat-7
|
||||
parameters:
|
||||
- description: Multiple heartbeats
|
||||
in: body
|
||||
@ -604,7 +604,7 @@ paths:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
operationId: post-heartbeat-4
|
||||
operationId: post-heartbeat-5
|
||||
parameters:
|
||||
- description: Multiple heartbeats
|
||||
in: body
|
||||
@ -667,6 +667,48 @@ paths:
|
||||
summary: Retrieve a summary
|
||||
tags:
|
||||
- summary
|
||||
/users/{user}/heartbeats:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
operationId: post-heartbeat-4
|
||||
parameters:
|
||||
- description: A single heartbeat
|
||||
in: body
|
||||
name: heartbeat
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/models.Heartbeat'
|
||||
responses:
|
||||
"201":
|
||||
description: ""
|
||||
security:
|
||||
- ApiKeyAuth: []
|
||||
summary: Push a new heartbeat
|
||||
tags:
|
||||
- heartbeat
|
||||
/users/{user}/heartbeats.bulk:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
operationId: post-heartbeat-8
|
||||
parameters:
|
||||
- description: Multiple heartbeats
|
||||
in: body
|
||||
name: heartbeat
|
||||
required: true
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/definitions/models.Heartbeat'
|
||||
type: array
|
||||
responses:
|
||||
"201":
|
||||
description: ""
|
||||
security:
|
||||
- ApiKeyAuth: []
|
||||
summary: Push new heartbeats
|
||||
tags:
|
||||
- heartbeat
|
||||
/v1/users/{user}/heartbeats:
|
||||
post:
|
||||
consumes:
|
||||
@ -691,7 +733,7 @@ paths:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
operationId: post-heartbeat-5
|
||||
operationId: post-heartbeat-6
|
||||
parameters:
|
||||
- description: Multiple heartbeats
|
||||
in: body
|
||||
|
Reference in New Issue
Block a user