PowerPlatformConnectors/independent-publisher-conne.../Shadify/apiDefinition.swagger.json

1070 строки
31 KiB
JSON
Исходник Постоянная ссылка Обычный вид История

{
"swagger": "2.0",
"info": {
"title": "Shadify",
"description": "Shadify is a powerful service for generating data and executing various logic to create different applications and games. Endpoints include data generated for Suduku, Takuzu, Schulte, Minesweeper, word search, anagrams, and math expressions.",
"version": "1.0",
"contact": {
"name": "Troy Taylor",
"url": "https://www.hitachisolutions.com",
"email": "ttaylor@hitachisolutions.com"
}
},
"host": "shadify.dev",
"basePath": "/api/",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/sudoku/verifier": {
"get": {
"responses": {
"200": {
"description": "default",
"schema": {
"type": "object",
"properties": {
"isError": {
"type": "boolean",
"description": "Whether is error.",
"title": "Is Error"
},
"position": {
"type": "string",
"description": "The position.",
"title": "Position"
}
}
}
}
},
"summary": "Check Sudoku answers",
"description": "Uses answer lines in a string format (separated by a dash) to retrieve errors and error position.",
"operationId": "SudokuCheck",
"parameters": [
{
"name": "task",
"in": "query",
"x-ms-summary": "Answer",
"description": "The answer lines.",
"required": true,
"type": "string"
}
]
}
},
"/sudoku/generator": {
"get": {
"responses": {
"200": {
"description": "default",
"schema": {
"type": "object",
"properties": {
"grid": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "integer",
"format": "int32"
}
},
"description": "The grid.",
"title": "Grid"
},
"task": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "integer",
"format": "int32"
}
},
"description": "The task.",
"title": "Task"
}
}
}
}
},
"summary": "Get a Sudoku puzzle",
"description": "Returns an array of the task and completed grid lines.",
"operationId": "SudokuGet",
"parameters": [
{
"name": "fill",
"in": "query",
"x-ms-summary": "Fill",
"description": "The fill level.",
"required": false,
"type": "integer"
}
]
}
},
"/takuzu/generator": {
"get": {
"responses": {
"200": {
"description": "default",
"schema": {
"type": "object",
"properties": {
"size": {
"type": "integer",
"format": "int32",
"description": "The size.",
"title": "Size"
},
"field": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string"
}
},
"description": "The field.",
"title": "Field"
},
"task": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string"
}
},
"description": "The task.",
"title": "Task"
}
}
}
}
},
"summary": "Get a Takuzu puzzle",
"description": "Retrieves a puzzle based on the requested size and field fill.",
"operationId": "TakuzuGet",
"parameters": [
{
"name": "size",
"in": "query",
"x-ms-summary": "Size",
"description": "The size.",
"required": false,
"type": "integer",
"default": 8
},
{
"name": "fill",
"in": "query",
"x-ms-summary": "Fill",
"description": "The fill level.",
"required": false,
"type": "integer",
"default": 33
}
]
}
},
"/takuzu/verifier": {
"get": {
"responses": {
"200": {
"description": "default",
"schema": {
"type": "object",
"properties": {
"isError": {
"type": "boolean",
"description": "Whether is error.",
"title": "Is Error"
},
"message": {
"type": "string",
"description": "The message.",
"title": "Message"
},
"position": {
"type": "array",
"items": {
"type": "string"
},
"description": "The position.",
"title": "Position"
}
}
}
}
},
"description": "Uses answer lines in a string format (separated by a dash) to retrieve errors and error position.",
"summary": "Check Takuzu answers",
"operationId": "TakuzuCheck",
"parameters": [
{
"name": "task",
"in": "query",
"x-ms-summary": "Answer",
"description": "The answer lines.",
"required": true,
"type": "string"
}
]
}
},
"/math/add": {
"get": {
"responses": {
"200": {
"description": "default",
"schema": {
"type": "object",
"properties": {
"first": {
"type": "integer",
"format": "int32",
"description": "The first number.",
"title": "First"
},
"second": {
"type": "integer",
"format": "int32",
"description": "The second number.",
"title": "Second"
},
"operation": {
"type": "string",
"description": "The operation.",
"title": "Operation"
},
"expression": {
"type": "string",
"description": "The expression.",
"title": "Expression"
},
"answer": {
"type": "integer",
"format": "int32",
"description": "The answer.",
"title": "Answer"
}
}
}
}
},
"summary": "Get an addition expression",
"description": "Retrieves a random addition expression.",
"operationId": "AdditionGet",
"parameters": [
{
"name": "minFirst",
"in": "query",
"x-ms-summary": "First Minimum",
"description": "The first number minimum.",
"required": false,
"type": "integer",
"default": 1
},
{
"name": "maxFirst",
"in": "query",
"x-ms-summary": "First Maximum",
"description": "The first number maximum.",
"required": false,
"type": "integer",
"default": 99
},
{
"name": "minSecond",
"in": "query",
"x-ms-summary": "Second Minimum",
"description": "The second number minimum.",
"required": false,
"type": "integer",
"default": 1
},
{
"name": "maxSecond",
"in": "query",
"x-ms-summary": "Second Maximum",
"description": "The second number maximum",
"required": false,
"type": "integer",
"default": 99
},
{
"name": "negative",
"in": "query",
"x-ms-summary": "Negative",
"description": "Whether to allow (1) negative numbers or not (0).",
"required": false,
"type": "integer",
"default": 0,
"enum": [
0,
1
]
}
]
}
},
"/schulte/generator": {
"get": {
"responses": {
"200": {
"description": "default",
"schema": {
"type": "object",
"properties": {
"grid": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "integer",
"format": "int32"
}
},
"description": "The grid.",
"title": "Grid"
}
}
}
}
},
"summary": "Get a Schulte table",
"description": "Retrieves a random Schulte table with the given size and mode.",
"operationId": "SchulteGet",
"parameters": [
{
"name": "size",
"in": "query",
"x-ms-summary": "Size",
"description": "The size.",
"required": false,
"type": "integer",
"default": 5,
"enum": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15
]
},
{
"name": "mode",
"in": "query",
"x-ms-summary": "Mode",
"description": "The mode.",
"required": false,
"type": "string",
"default": "number",
"enum": [
"number",
"alphabet"
]
}
]
}
},
"/minesweeper/generator": {
"get": {
"responses": {
"200": {
"description": "default",
"schema": {
"type": "object",
"properties": {
"start": {
"type": "string",
"description": "The start position.",
"title": "Start"
},
"width": {
"type": "integer",
"format": "int32",
"description": "The width.",
"title": "Width"
},
"height": {
"type": "integer",
"format": "int32",
"description": "The height.",
"title": "Height"
},
"board": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string"
}
},
"description": "The board.",
"title": "Board"
},
"mines": {
"type": "integer",
"format": "int32",
"description": "The number of mines.",
"title": "Mines"
}
}
}
}
},
"summary": "Get a Minesweeper puzzle",
"description": "Retrieve a random Minesweeper puzzle from the given width and height, number of mines, and start position.",
"operationId": "MinesweeperGet",
"parameters": [
{
"name": "width",
"in": "query",
"x-ms-summary": "Width",
"description": "The width.",
"required": false,
"type": "integer",
"default": 9
},
{
"name": "height",
"in": "query",
"x-ms-summary": "Height",
"description": "The height.",
"required": false,
"type": "integer",
"default": 9
},
{
"name": "start",
"in": "query",
"x-ms-summary": "Start",
"description": "The start position.",
"required": false,
"type": "string"
},
{
"name": "mines",
"in": "query",
"x-ms-summary": "Mines",
"description": "The number of mines.",
"required": false,
"type": "integer",
"default": 12
}
]
}
},
"/wordsearch/generator": {
"get": {
"responses": {
"200": {
"description": "default",
"schema": {
"type": "object",
"properties": {
"width": {
"type": "integer",
"format": "int32",
"description": "The width.",
"title": "Width"
},
"height": {
"type": "integer",
"format": "int32",
"description": "The height.",
"title": "Height"
},
"wordsCount": {
"type": "integer",
"format": "int32",
"description": "The words count.",
"title": "Words Count"
},
"grid": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string"
}
},
"description": "The grid.",
"title": "Grid"
},
"words": {
"type": "array",
"items": {
"type": "object",
"properties": {
"word": {
"type": "string",
"description": "The word.",
"title": "Word"
},
"position": {
"type": "object",
"properties": {
"start": {
"type": "array",
"items": {
"type": "integer",
"format": "int32"
},
"description": "The start.",
"title": "Start"
},
"end": {
"type": "array",
"items": {
"type": "integer",
"format": "int32"
},
"description": "The end.",
"title": "End"
}
},
"description": "The position.",
"title": "Position"
}
}
},
"title": "Words"
}
}
}
}
},
"summary": "Get a word search puzzle",
"description": "Retrieve a random word search puzzle.",
"operationId": "WordSearchGet",
"parameters": [
{
"name": "width",
"in": "query",
"x-ms-summary": "Width",
"description": "The width.",
"required": false,
"type": "integer",
"default": 9,
"enum": [
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20
]
},
{
"name": "height",
"in": "query",
"x-ms-summary": "Height",
"description": "The height.",
"required": false,
"type": "integer",
"default": 9,
"enum": [
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20
]
}
]
}
},
"/anagram/generator": {
"get": {
"responses": {
"200": {
"description": "default",
"schema": {
"type": "object",
"properties": {
"Task": {
"type": "string",
"description": "The task.",
"title": "Task"
},
"Words": {
"type": "array",
"items": {
"type": "string"
},
"description": "The words.",
"title": "Words"
}
}
}
}
},
"summary": "Get an anagram",
"description": "Retrieves a word and an array of all possible words composed from that word.",
"operationId": "AnagramGet",
"parameters": []
}
},
"/math/sub": {
"get": {
"responses": {
"200": {
"description": "default",
"schema": {
"type": "object",
"properties": {
"first": {
"type": "integer",
"format": "int32",
"description": "The first number.",
"title": "First"
},
"second": {
"type": "integer",
"format": "int32",
"description": "The second number.",
"title": "Second"
},
"operation": {
"type": "string",
"description": "The operation.",
"title": "Operation"
},
"expression": {
"type": "string",
"description": "The expression.",
"title": "Expression"
},
"answer": {
"type": "integer",
"format": "int32",
"description": "The answer.",
"title": "Answer"
}
}
}
}
},
"summary": "Get a subtraction expression",
"description": "Retrieves a random subtraction expression.",
"operationId": "SubtractionGet",
"parameters": [
{
"name": "minFirst",
"in": "query",
"x-ms-summary": "First Minimum",
"description": "The first number minimum.",
"required": false,
"type": "integer",
"default": 1
},
{
"name": "maxFirst",
"in": "query",
"x-ms-summary": "First Maximum",
"description": "The first number maximum.",
"required": false,
"type": "integer",
"default": 99
},
{
"name": "minSecond",
"in": "query",
"x-ms-summary": "Second Minimum",
"description": "The second number minimum.",
"required": false,
"type": "integer",
"default": 1
},
{
"name": "maxSecond",
"in": "query",
"x-ms-summary": "Second Maximum",
"description": "The second number maximum",
"required": false,
"type": "integer",
"default": 99
},
{
"name": "negative",
"in": "query",
"x-ms-summary": "Negative",
"description": "Whether to allow (1) negative numbers or not (0).",
"required": false,
"type": "integer",
"default": 0,
"enum": [
0,
1
]
}
]
}
},
"/math/mul": {
"get": {
"responses": {
"200": {
"description": "default",
"schema": {
"type": "object",
"properties": {
"first": {
"type": "integer",
"format": "int32",
"description": "The first number.",
"title": "First"
},
"second": {
"type": "integer",
"format": "int32",
"description": "The second number.",
"title": "Second"
},
"operation": {
"type": "string",
"description": "The operation.",
"title": "Operation"
},
"expression": {
"type": "string",
"description": "The expression.",
"title": "Expression"
},
"answer": {
"type": "integer",
"format": "int32",
"description": "The answer.",
"title": "Answer"
}
}
}
}
},
"summary": "Get a multiplication expression",
"description": "Retrieves a random multiplication expression.",
"operationId": "MultiplicationGet",
"parameters": [
{
"name": "minFirst",
"in": "query",
"x-ms-summary": "First Minimum",
"description": "The first number minimum.",
"required": false,
"type": "integer",
"default": 1
},
{
"name": "maxFirst",
"in": "query",
"x-ms-summary": "First Maximum",
"description": "The first number maximum.",
"required": false,
"type": "integer",
"default": 99
},
{
"name": "minSecond",
"in": "query",
"x-ms-summary": "Second Minimum",
"description": "The second number minimum.",
"required": false,
"type": "integer",
"default": 1
},
{
"name": "maxSecond",
"in": "query",
"x-ms-summary": "Second Maximum",
"description": "The second number maximum",
"required": false,
"type": "integer",
"default": 99
},
{
"name": "negative",
"in": "query",
"x-ms-summary": "Negative",
"description": "Whether to allow (1) negative numbers or not (0).",
"required": false,
"type": "integer",
"default": 0,
"enum": [
0,
1
]
}
]
}
},
"/math/div": {
"get": {
"responses": {
"200": {
"description": "default",
"schema": {
"type": "object",
"properties": {
"first": {
"type": "integer",
"format": "int32",
"description": "The first number.",
"title": "First"
},
"second": {
"type": "integer",
"format": "int32",
"description": "The second number.",
"title": "Second"
},
"operation": {
"type": "string",
"description": "The operation.",
"title": "Operation"
},
"expression": {
"type": "string",
"description": "The expression.",
"title": "Expression"
},
"answer": {
"type": "integer",
"format": "int32",
"description": "The answer.",
"title": "Answer"
}
}
}
}
},
"summary": "Get a division expression",
"description": "Retrieves a random division expression.",
"operationId": "DivisionGet",
"parameters": [
{
"name": "minFirst",
"in": "query",
"x-ms-summary": "First Minimum",
"description": "The first number minimum.",
"required": false,
"type": "integer",
"default": 1
},
{
"name": "maxFirst",
"in": "query",
"x-ms-summary": "First Maximum",
"description": "The first number maximum.",
"required": false,
"type": "integer",
"default": 99
},
{
"name": "minSecond",
"in": "query",
"x-ms-summary": "Second Minimum",
"description": "The second number minimum.",
"required": false,
"type": "integer",
"default": 1
},
{
"name": "maxSecond",
"in": "query",
"x-ms-summary": "Second Maximum",
"description": "The second number maximum",
"required": false,
"type": "integer",
"default": 99
},
{
"name": "negative",
"in": "query",
"x-ms-summary": "Negative",
"description": "Whether to allow (1) negative numbers or not (0).",
"required": false,
"type": "integer",
"default": 0,
"enum": [
0,
1
]
}
]
}
},
"/math/quad": {
"get": {
"responses": {
"200": {
"description": "default",
"schema": {
"type": "object",
"properties": {
"equation": {
"type": "string",
"description": "The equation.",
"title": "Equation"
},
"a": {
"type": "integer",
"format": "int32",
"description": "The value of A.",
"title": "a"
},
"b": {
"type": "integer",
"format": "int32",
"description": "The value of b.",
"title": "b"
},
"c": {
"type": "integer",
"format": "int32",
"description": "The value of c.",
"title": "c"
},
"discriminant": {
"type": "integer",
"format": "int32",
"description": "The discriminant.",
"title": "Discriminant"
},
"x1": {
"type": "string",
"description": "The value of x1.",
"title": "x1"
},
"x2": {
"type": "string",
"description": "The value of c2.",
"title": "x2"
}
}
}
}
},
"summary": "Get a quadratic equation",
"description": "Retrieve a random quadratic equation.",
"operationId": "QuadraticGet",
"parameters": [
{
"name": "minA",
"in": "query",
"x-ms-summary": "a Minimum",
"description": "The a minimum.",
"required": false,
"type": "integer",
"default": 1
},
{
"name": "maxA",
"in": "query",
"x-ms-summary": "a Maximum",
"description": "The a maximum.",
"required": false,
"type": "integer",
"default": 20
},
{
"name": "minB",
"in": "query",
"x-ms-summary": "b Minimum",
"description": "The b minimum.",
"required": false,
"type": "integer",
"default": 1
},
{
"name": "maxB",
"in": "query",
"x-ms-summary": "b Maximum",
"description": "The b maximum.",
"required": false,
"type": "integer",
"default": 40
},
{
"name": "minC",
"in": "query",
"x-ms-summary": "c Minimum",
"description": "The c minimum.",
"required": false,
"type": "integer",
"default": 1
},
{
"name": "maxC",
"in": "query",
"x-ms-summary": "c Maximum",
"description": "The c maximum.",
"required": false,
"type": "integer",
"default": 20
}
]
}
}
},
"definitions": {},
"parameters": {},
"responses": {},
"securityDefinitions": {},
"security": [],
"tags": [],
"x-ms-connector-metadata": [
{
"propertyName": "Website",
"propertyValue": "https://github.com/cheatsnake/shadify"
},
{
"propertyName": "Privacy policy",
"propertyValue": "https://github.com/cheatsnake/shadify"
},
{
"propertyName": "Categories",
"propertyValue": "Data;Lifestyle and Entertainment"
}
]
}