All Downloads are FREE. Search and download functionalities are using the official Maven repository.

static.test1.json Maven / Gradle / Ivy

Go to download

This project is implementation of swagger for JSON-RPC with Spring Boot. It generates UI that helps delelopers test api and share it with colleagues

The newest version!
{
  "com/haz4j/swagger4jsonrpc": "2.0",
  "host": "localhost:8082/api",
  "basePath": "/",
  "tags": [
    {
      "name": "generics",
      "description": "Api generics"
    }
  ],
  "paths": {
    "/v1/generic#0": {
      "post": {
        "tags": [
          "generics"
        ],
        "summary": "severalGenerics",
        "description": "",
        "operationId": "/v1/generic#0",
        "consumes": [
          "application/json"
        ],
        "produces": [
          "application/json"
        ],
        "parameters": [
          {
            "in": "body",
            "name": "JsonRpc",
            "description": "JsonRpc",
            "required": true,
            "schema": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer",
                  "format": "int64"
                },
                "jsonrpc": {
                  "type": "string",
                  "description": "jsonrpc version",
                  "default": "2.0"
                },
                "method": {
                  "type": "string",
                  "example": "severalGenerics"
                },
                "params": {
                  "type": "object",
                  "properties": {
                    "generic_dto_1": {
                      "$ref": "#/definitions/generic_dto_entry3_entry1_entry2"
                    },
                    "generic_dto_2": {
                      "$ref": "#/definitions/generic_dto1_entry3"
                    },
                    "generic_dto_3": {
                      "$ref": "#/definitions/generic_dto2_entry2_entry1"
                    }
                  }
                }
              }
            }
          }
        ],
        "responses": {}
      }
    }
  },
  "definitions": {
    "entry1": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int64"
        },
        "name": {
          "type": "string",
          "default": "string"
        }
      }
    },
    "generic_dto_entry3_entry1_entry2": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "default": "string"
        },
        "value": {
          "type": "string",
          "default": "string"
        },
        "entry1": {
          "$ref": "#/definitions/entry3"
        },
        "entry2": {
          "$ref": "#/definitions/entry2"
        },
        "entry3": {
          "$ref": "#/definitions/entry1"
        }
      }
    },
    "generic_dto2_entry2_entry1": {
      "type": "object",
      "properties": {
        "first": {
          "$ref": "#/definitions/entry2"
        },
        "second": {
          "$ref": "#/definitions/entry1"
        },
        "third": {
          "type": "integer",
          "format": "int64"
        }
      }
    },
    "generic_dto1_entry3": {
      "type": "object",
      "properties": {
        "first": {
          "$ref": "#/definitions/entry3"
        },
        "second": {
          "type": "integer",
          "format": "int64"
        }
      }
    },
    "entry2": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int64"
        },
        "value": {
          "type": "string",
          "default": "string"
        }
      }
    },
    "entry3": {
      "type": "object",
      "properties": {
        "offset": {
          "type": "integer",
          "format": "int64"
        },
        "limit": {
          "type": "integer",
          "format": "int64"
        }
      }
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy