Skip to content

Latest commit

 

History

History
73 lines (46 loc) · 1.77 KB

SearchAPI.md

File metadata and controls

73 lines (46 loc) · 1.77 KB

\SearchAPI

All URIs are relative to https://yasm.prodyna.com:443/api/v1

Method HTTP request Description
Search Post /search Fulltext search on all kinds of objects

Search

SearchResult Search(ctx).Search(search).Execute()

Fulltext search on all kinds of objects

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "github.com/prodyna-yasm/yasm-api-go"
)

func main() {
    search := *openapiclient.NewSearch(int32(123), int32(123)) // Search | 

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.SearchAPI.Search(context.Background()).Search(search).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.Search``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `Search`: SearchResult
    fmt.Fprintf(os.Stdout, "Response from `SearchAPI.Search`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiSearchRequest struct via the builder pattern

Name Type Description Notes
search Search

Return type

SearchResult

Authorization

oidcScheme, bearerScheme

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]