Go API client for swagger
OpenAPI for Todolist RESTful API
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
- Package version: 1.0.0
- Build package: io.swagger.codegen.v3.generators.go.GoClientCodegen For more information, please visit https://github.com/IkoAfianando
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://{environment}.programmingwithiko.com/api/v1
Class | Method | HTTP request | Description |
---|---|---|---|
TodolistApi | TodolistGet | Get /todolist | Get All Todolist |
TodolistApi | TodolistPost | Post /todolist | Create New Todolist |
TodolistApi | TodollistTodolistIdDelete | Delete /todollist/{todolistId} | Delete existing Todolist |
TodolistApi | TodollistTodolistIdPut | Put /todollist/{todolistId} | Update existing Todolist |
Documentation For Models
Documentation For Authorization
TodolistAuth
- 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)