package
0.0.0-20250911181333-da675a2cc9ad
Repository: https://github.com/debian/dcs.git
Documentation: pkg.go.dev
# README
Go API client for swagger
OpenAPI for https://codesearch.debian.net/
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: 1.4.0
- 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 https://codesearch.debian.net/api/v1
Class | Method | HTTP request | Description |
---|---|---|---|
SearchApi | Search | Get /search | Searches through source code |
SearchApi | Searchperpackage | Get /searchperpackage | Like /search, but aggregates per package |
Documentation For Models
Documentation For Authorization
api_key
- 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)