Skip to content
This repository was archived by the owner on Jan 19, 2024. It is now read-only.
Draft
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
14 changes: 14 additions & 0 deletions schema/ack.get.request.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"required": [
"blinded_utxo"
],
"properties": {
"blinded_utxo": {
"type": "string",
"description": "The blinded UTXO for which we want to know ACK status."
}
}
}
13 changes: 13 additions & 0 deletions schema/ack.get.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"required": [
],
"properties": {
"result": {
"type": "boolean",
"description": "`true` when counterparty ACKed before, `false` if they NACKed, `null` if they haven't given any response yet."
}
}
}
19 changes: 19 additions & 0 deletions schema/ack.post.request.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"required": [
"blinded_utxo",
"ack"
],
"properties": {
"blinded_utxo": {
"type": "string",
"description": "The blinded UTXO for which we want to ACK or nACK its associated consignment file"
},
"ack": {
"type": "boolean",
"description": "Whether the consignment is accepted (`true`) or rejected (`false`)"
}
}
}
14 changes: 14 additions & 0 deletions schema/ack.post.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"required": [
"result"
],
"properties": {
"result": {
"type": "boolean",
"description": "`true` when first successful upload. `false` when the same request has been made before."
}
}
}
14 changes: 14 additions & 0 deletions schema/consignment.get.request.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"required": [
"blinded_utxo"
],
"properties": {
"blinded_utxo": {
"type": "string",
"description": "the blinded UTXO for which we want to download consignment data"
}
}
}
14 changes: 14 additions & 0 deletions schema/consignment.get.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"required": [
"result"
],
"properties": {
"result": {
"type": "string",
"description": "`true` when first successful upload. `false` when the same file was already uploaded before."
}
}
}
14 changes: 14 additions & 0 deletions schema/consignment.post.request.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"required": [
"blinded_utxo"
],
"properties": {
"blinded_utxo": {
"type": "string",
"description": "the blinded UTXO for which we want to upload consingment file"
}
}
}
14 changes: 14 additions & 0 deletions schema/consignment.post.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"required": [
"result"
],
"properties": {
"result": {
"type": "boolean",
"description": "`true` when first successful upload. `false` when the same file was already uploaded before."
}
}
}
14 changes: 14 additions & 0 deletions schema/media.get.request.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"required": [
"attachment_id"
],
"properties": {
"attachment_id": {
"type": "string",
"description": "Attachment id for which we want to upload a media file"
}
}
}
14 changes: 14 additions & 0 deletions schema/media.get.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"required": [
"result"
],
"properties": {
"result": {
"type": "string",
"description": "base64 encoded media, if available."
}
}
}
14 changes: 14 additions & 0 deletions schema/media.post.request.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"required": [
"attachment_id"
],
"properties": {
"attachment_id": {
"type": "string",
"description": "Attachment id for which we want to upload a media file"
}
}
}
14 changes: 14 additions & 0 deletions schema/media.post.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"required": [
"result"
],
"properties": {
"result": {
"type": "boolean",
"description": "`true` when first successful upload. `false` when the same file was already uploaded before."
}
}
}
Loading