Skip to content

Latest commit

 

History

History
363 lines (236 loc) · 10 KB

ApiServerApiApi.md

File metadata and controls

363 lines (236 loc) · 10 KB

\ApiServerApiApi

All URIs are relative to https://devidp.authlete.net

Method HTTP request Description
CreateApiServer Post /api/apiserver
DeleteApiServer Delete /api/apiserver/{id}
GetAll1 Get /api/apiserver
GetApiServer Get /api/apiserver/{id}
UpdateApiServer Post /api/apiserver/{id}

CreateApiServer

AuthleteApiServerUpdateResponse CreateApiServer(ctx).CreateApiServerRequest(createApiServerRequest).Authorization(authorization).DPoP(dPoP).Execute()

Example

package main

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

func main() {
    createApiServerRequest := *openapiclient.NewCreateApiServerRequest("ApiServerUrl_example", "Description_example") // CreateApiServerRequest | 
    authorization := "authorization_example" // string |  (optional)
    dPoP := "dPoP_example" // string |  (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.ApiServerApiApi.CreateApiServer(context.Background()).CreateApiServerRequest(createApiServerRequest).Authorization(authorization).DPoP(dPoP).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `ApiServerApiApi.CreateApiServer``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `CreateApiServer`: AuthleteApiServerUpdateResponse
    fmt.Fprintf(os.Stdout, "Response from `ApiServerApiApi.CreateApiServer`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
createApiServerRequest CreateApiServerRequest
authorization string
dPoP string

Return type

AuthleteApiServerUpdateResponse

Authorization

No authorization required

HTTP request headers

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

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

DeleteApiServer

DeleteApiServer(ctx, id).Authorization(authorization).DPoP(dPoP).Execute()

Example

package main

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

func main() {
    id := int64(789) // int64 | 
    authorization := "authorization_example" // string |  (optional)
    dPoP := "dPoP_example" // string |  (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.ApiServerApiApi.DeleteApiServer(context.Background(), id).Authorization(authorization).DPoP(dPoP).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `ApiServerApiApi.DeleteApiServer``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int64

Other Parameters

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

Name Type Description Notes

authorization | string | | dPoP | string | |

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

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

GetAll1

[]AuthleteApiServerUpdateResponse GetAll1(ctx).Authorization(authorization).DPoP(dPoP).Execute()

Example

package main

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

func main() {
    authorization := "authorization_example" // string |  (optional)
    dPoP := "dPoP_example" // string |  (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.ApiServerApiApi.GetAll1(context.Background()).Authorization(authorization).DPoP(dPoP).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `ApiServerApiApi.GetAll1``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `GetAll1`: []AuthleteApiServerUpdateResponse
    fmt.Fprintf(os.Stdout, "Response from `ApiServerApiApi.GetAll1`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
authorization string
dPoP string

Return type

[]AuthleteApiServerUpdateResponse

Authorization

No authorization required

HTTP request headers

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

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

GetApiServer

AuthleteApiServerUpdateResponse GetApiServer(ctx, id).Authorization(authorization).DPoP(dPoP).Execute()

Example

package main

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

func main() {
    id := int64(789) // int64 | 
    authorization := "authorization_example" // string |  (optional)
    dPoP := "dPoP_example" // string |  (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.ApiServerApiApi.GetApiServer(context.Background(), id).Authorization(authorization).DPoP(dPoP).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `ApiServerApiApi.GetApiServer``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `GetApiServer`: AuthleteApiServerUpdateResponse
    fmt.Fprintf(os.Stdout, "Response from `ApiServerApiApi.GetApiServer`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int64

Other Parameters

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

Name Type Description Notes

authorization | string | | dPoP | string | |

Return type

AuthleteApiServerUpdateResponse

Authorization

No authorization required

HTTP request headers

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

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

UpdateApiServer

AuthleteApiServerUpdateResponse UpdateApiServer(ctx, id).UpdateApiServerRequest(updateApiServerRequest).Authorization(authorization).DPoP(dPoP).Execute()

Example

package main

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

func main() {
    id := int64(789) // int64 | 
    updateApiServerRequest := *openapiclient.NewUpdateApiServerRequest("ApiServerUrl_example", "Description_example") // UpdateApiServerRequest | 
    authorization := "authorization_example" // string |  (optional)
    dPoP := "dPoP_example" // string |  (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.ApiServerApiApi.UpdateApiServer(context.Background(), id).UpdateApiServerRequest(updateApiServerRequest).Authorization(authorization).DPoP(dPoP).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `ApiServerApiApi.UpdateApiServer``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `UpdateApiServer`: AuthleteApiServerUpdateResponse
    fmt.Fprintf(os.Stdout, "Response from `ApiServerApiApi.UpdateApiServer`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int64

Other Parameters

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

Name Type Description Notes

updateApiServerRequest | UpdateApiServerRequest | | authorization | string | | dPoP | string | |

Return type

AuthleteApiServerUpdateResponse

Authorization

No authorization required

HTTP request headers

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

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