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} |
AuthleteApiServerUpdateResponse CreateApiServer(ctx).CreateApiServerRequest(createApiServerRequest).Authorization(authorization).DPoP(dPoP).Execute()
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)
}
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 |
AuthleteApiServerUpdateResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteApiServer(ctx, id).Authorization(authorization).DPoP(dPoP).Execute()
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)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int64 |
Other parameters are passed through a pointer to a apiDeleteApiServerRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
authorization | string | | dPoP | string | |
(empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]AuthleteApiServerUpdateResponse GetAll1(ctx).Authorization(authorization).DPoP(dPoP).Execute()
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)
}
Other parameters are passed through a pointer to a apiGetAll1Request struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
authorization | string | ||
dPoP | string |
[]AuthleteApiServerUpdateResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AuthleteApiServerUpdateResponse GetApiServer(ctx, id).Authorization(authorization).DPoP(dPoP).Execute()
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)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int64 |
Other parameters are passed through a pointer to a apiGetApiServerRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
authorization | string | | dPoP | string | |
AuthleteApiServerUpdateResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AuthleteApiServerUpdateResponse UpdateApiServer(ctx, id).UpdateApiServerRequest(updateApiServerRequest).Authorization(authorization).DPoP(dPoP).Execute()
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)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int64 |
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 | |
AuthleteApiServerUpdateResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]