package
1.2.2
Repository: https://github.com/csbzy/goctl-swagger.git
Documentation: pkg.go.dev

# README

Go API client for swagger

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

Overview

This API client was generated by the swagger-codegen project. By using the swagger-spec from a remote server, you can easily generate an API client.

  • API version:
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.languages.GoClientCodegen

Installation

Put the package under your project folder and add the following in import:

import "./swagger"

Documentation for API Endpoints

All URIs are relative to http://localhost

ClassMethodHTTP requestDescription
GreetApiPingGet /user/ping
UserApiApiGetUserInfoGet /api/user/{id}获取用户信息
UserApiApiLoginPost /api/user/login登录
UserApiApiRegisterPost /api/user/register注册
UserApiApiSearchUserGet /api/user/search用户搜索

Documentation For Models

Documentation For Authorization

apiKey

  • Type: API key

Example

auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{
	Key: "APIKEY",
	Prefix: "Bearer", // Omit if not necessary.
})
r, err := client.Service.Operation(auth, args)

Author