Skip to content

Instantly share code, notes, and snippets.

@pfisher
Last active June 4, 2024 19:04
Show Gist options
  • Save pfisher/7bb6ad5a0654d25e812ed9ff33db07f2 to your computer and use it in GitHub Desktop.
Save pfisher/7bb6ad5a0654d25e812ed9ff33db07f2 to your computer and use it in GitHub Desktop.
uigen openapi
{
"swagger": "2.0",
"info": {
"title": "juiced_service.proto",
"version": "version not set"
},
"tags": [
{
"name": "UiGen"
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/generate": {
"post": {
"operationId": "UiGen_GenerateCode",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/uigenGenerateCodeResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "openapiUrl",
"description": "Must be publicly accessible",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "openapiJson",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "flutterOptions.stateManagement",
"in": "query",
"required": false,
"type": "string",
"enum": [
"FLUTTER_SET_STATE",
"FLUTTER_BLOC",
"FLUTTER_REDUX"
],
"default": "FLUTTER_SET_STATE"
},
{
"name": "reactOptions.stateManagement",
"in": "query",
"required": false,
"type": "string",
"enum": [
"REACT_USE_STATE",
"REACT_REDUX"
],
"default": "REACT_USE_STATE"
},
{
"name": "angularOptions.stateManagement",
"in": "query",
"required": false,
"type": "string",
"enum": [
"ANGULAR_NGRX",
"ANGULAR_COMPONENT_STORE"
],
"default": "ANGULAR_NGRX"
}
],
"tags": [
"UiGen"
]
}
}
},
"definitions": {
"protobufAny": {
"type": "object",
"properties": {
"@type": {
"type": "string"
}
},
"additionalProperties": {}
},
"rpcStatus": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/protobufAny"
}
}
}
},
"uigenAngularConfig": {
"type": "object",
"properties": {
"stateManagement": {
"$ref": "#/definitions/uigenAngularStateManagement"
}
}
},
"uigenAngularStateManagement": {
"type": "string",
"enum": [
"ANGULAR_NGRX",
"ANGULAR_COMPONENT_STORE"
],
"default": "ANGULAR_NGRX"
},
"uigenFlutterConfig": {
"type": "object",
"properties": {
"stateManagement": {
"$ref": "#/definitions/uigenFlutterStateManagement"
}
}
},
"uigenFlutterStateManagement": {
"type": "string",
"enum": [
"FLUTTER_SET_STATE",
"FLUTTER_BLOC",
"FLUTTER_REDUX"
],
"default": "FLUTTER_SET_STATE"
},
"uigenGenerateCodeResponse": {
"type": "object",
"properties": {
"zipUrl": {
"type": "string",
"title": "The publicly accessible URL to download the generated code"
}
}
},
"uigenReactConfig": {
"type": "object",
"properties": {
"stateManagement": {
"$ref": "#/definitions/uigenReactStateManagement"
}
}
},
"uigenReactStateManagement": {
"type": "string",
"enum": [
"REACT_USE_STATE",
"REACT_REDUX"
],
"default": "REACT_USE_STATE"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment