{ "openapi" : "3.0.3", "info" : { "title" : "examples-graphql-users", "version" : "0.0.1" }, "paths" : { "/users" : { "post" : { "requestBody" : { "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/IoApibuilderExamplesGraphqlUsersModelsUserForm" } } }, "required" : true }, "responses" : { "201" : { "description" : "Created", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/IoApibuilderExamplesGraphqlUsersModelsUser" } } } }, "422" : { "description" : "Unprocessable entity", "content" : { "application/json" : { "schema" : { "type" : "array", "items" : { "type" : "string" } } } } } } }, "patch" : { "requestBody" : { "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/IoApibuilderExamplesGraphqlUsersUnionsUserPatchForm" } } }, "required" : true }, "responses" : { "200" : { "description" : "Successful response", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/IoApibuilderExamplesGraphqlUsersModelsUser" } } } }, "422" : { "description" : "Unprocessable entity", "content" : { "application/json" : { "schema" : { "type" : "array", "items" : { "type" : "string" } } } } } } } }, "/users/{id}" : { "get" : { "parameters" : [ { "name" : "id", "in" : "path", "required" : true, "schema" : { "type" : "string", "format" : "uuid" } } ], "responses" : { "200" : { "description" : "Successful response", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/IoApibuilderExamplesGraphqlUsersModelsUser" } } } }, "404" : { "description" : "Not found" } } }, "delete" : { "parameters" : [ { "name" : "id", "in" : "path", "required" : true, "schema" : { "type" : "string", "format" : "uuid" } } ], "responses" : { "204" : { "description" : "No content" }, "404" : { "description" : "Not found" } } } } }, "components" : { "schemas" : { "IoApibuilderExamplesGraphqlUsersModelsUserForm" : { "type" : "object", "required" : [ "status", "email" ], "properties" : { "status" : { "$ref" : "#/components/schemas/IoApibuilderExamplesGraphqlUsersEnumsUserStatus" }, "email" : { "type" : "string" }, "name" : { "type" : "string" } } }, "IoApibuilderExamplesGraphqlUsersModelsUser" : { "type" : "object", "required" : [ "id", "status", "email" ], "properties" : { "id" : { "type" : "string", "format" : "uuid" }, "status" : { "$ref" : "#/components/schemas/IoApibuilderExamplesGraphqlUsersEnumsUserStatus" }, "email" : { "type" : "string" }, "name" : { "type" : "string" } } }, "IoApibuilderExamplesGraphqlUsersModelsUserStatusPatchForm" : { "type" : "object", "required" : [ "status" ], "properties" : { "status" : { "$ref" : "#/components/schemas/IoApibuilderExamplesGraphqlUsersEnumsUserStatus" } } }, "IoApibuilderExamplesGraphqlUsersModelsUserEmailPatchForm" : { "type" : "object", "required" : [ "email" ], "properties" : { "email" : { "type" : "string" } } }, "IoApibuilderExamplesGraphqlUsersEnumsUserStatus" : { "type" : "string", "enum" : [ "active", "inactive" ] }, "IoApibuilderExamplesGraphqlUsersUnionsUserPatchForm" : { "oneOf" : [ { "$ref" : "#/components/schemas/IoApibuilderExamplesGraphqlUsersModelsUserStatusPatchForm" }, { "$ref" : "#/components/schemas/IoApibuilderExamplesGraphqlUsersModelsUserEmailPatchForm" } ] } } } }