# Generated with protoc-gen-openapi # https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi openapi: 3.0.3 info: title: "" version: 0.0.1 paths: /helloworld/{name}: get: tags: - Greeter description: Sends a greeting operationId: Greeter_SayHello parameters: - name: name in: path required: true schema: type: string responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/helloworld.v1.HelloReply' /ucenter/user/create: post: tags: - User description: 创建用户信息 operationId: User_CreateUserInfo requestBody: content: application/json: schema: $ref: '#/components/schemas/api.ucenter.user.CreateUserInfoRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/api.ucenter.user.CreateUserInfoReply' /ucenter/user/get_user_info: get: tags: - User description: 获取用户信息 operationId: User_GetUserInfo parameters: - name: userId in: query schema: type: string responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/api.ucenter.user.GetUserInfoReply' components: schemas: api.ucenter.user.CreateUserInfoReply: type: object properties: id: type: string api.ucenter.user.CreateUserInfoRequest: type: object properties: name: type: string nickname: type: string email: type: string phone: type: string api.ucenter.user.GetUserInfoReply: type: object properties: users: type: array items: $ref: '#/components/schemas/api.ucenter.user.GetUserInfoReply_User' api.ucenter.user.GetUserInfoReply_User: type: object properties: id: type: string name: type: string nickname: type: string email: type: string phone: type: string password: type: string isDeleted: type: boolean createdAt: type: string format: date-time updatedAt: type: string format: date-time deletedAt: type: string format: date-time helloworld.v1.HelloReply: type: object properties: message: type: string description: The response message containing the greetings tags: - name: Greeter description: The greeting service definition. - name: User