Skip to content

Latest commit

 

History

History
224 lines (145 loc) · 5.56 KB

AuditApi.md

File metadata and controls

224 lines (145 loc) · 5.56 KB

\AuditApi

All URIs are relative to http://localhost

Method HTTP request Description
GetTaskAudit Get /api/v1/customers/{cUUID}/tasks/{tUUID}/audit_info Get audit info for a task
GetUserFromTask Get /api/v1/customers/{cUUID}/tasks/{tUUID}/audit_user Get the user associated with a task
ListOfAudit Get /api/v1/customers/{cUUID}/users/{uUUID}/audit_trail List a user's audit entries

GetTaskAudit

Audit GetTaskAudit(ctx, cUUID, tUUID).Execute()

Get audit info for a task

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    cUUID := TODO // string | 
    tUUID := TODO // string | 

    configuration := openapiclient.NewConfiguration()
    api_client := openapiclient.NewAPIClient(configuration)
    resp, r, err := api_client.AuditApi.GetTaskAudit(context.Background(), cUUID, tUUID).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `AuditApi.GetTaskAudit``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `GetTaskAudit`: Audit
    fmt.Fprintf(os.Stdout, "Response from `AuditApi.GetTaskAudit`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
cUUID string
tUUID string

Other Parameters

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

Name Type Description Notes

Return type

Audit

Authorization

apiKeyAuth

HTTP request headers

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

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

GetUserFromTask

Audit GetUserFromTask(ctx, cUUID, tUUID).Execute()

Get the user associated with a task

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    cUUID := TODO // string | 
    tUUID := TODO // string | 

    configuration := openapiclient.NewConfiguration()
    api_client := openapiclient.NewAPIClient(configuration)
    resp, r, err := api_client.AuditApi.GetUserFromTask(context.Background(), cUUID, tUUID).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `AuditApi.GetUserFromTask``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `GetUserFromTask`: Audit
    fmt.Fprintf(os.Stdout, "Response from `AuditApi.GetUserFromTask`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
cUUID string
tUUID string

Other Parameters

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

Name Type Description Notes

Return type

Audit

Authorization

apiKeyAuth

HTTP request headers

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

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

ListOfAudit

[]Audit ListOfAudit(ctx, cUUID, uUUID).Execute()

List a user's audit entries

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    cUUID := TODO // string | 
    uUUID := TODO // string | 

    configuration := openapiclient.NewConfiguration()
    api_client := openapiclient.NewAPIClient(configuration)
    resp, r, err := api_client.AuditApi.ListOfAudit(context.Background(), cUUID, uUUID).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `AuditApi.ListOfAudit``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `ListOfAudit`: []Audit
    fmt.Fprintf(os.Stdout, "Response from `AuditApi.ListOfAudit`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
cUUID string
uUUID string

Other Parameters

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

Name Type Description Notes

Return type

[]Audit

Authorization

apiKeyAuth

HTTP request headers

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

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