All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| DeleteComponentPresentationByIdentifier | Delete /component-presentations/{identifier} | Delete a component presentation by Identifier |
| GetComponentPresentationByIdentifier | Get /component-presentations/{identifier} | Get a component presentation by Identifier |
| GetComponentPresentations | Get /component-presentations | List all component presentations |
| UpsertComponentPresentations | Put /component-presentations | Upserts (creates/updates) a component presentation |
DeleteComponentPresentationByIdentifier(ctx, identifier).Execute()
Delete a component presentation by Identifier
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
identifier := "identifier_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComponentPresentationApi.DeleteComponentPresentationByIdentifier(context.Background(), identifier).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComponentPresentationApi.DeleteComponentPresentationByIdentifier``: %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. | |
| identifier | string |
Other parameters are passed through a pointer to a apiDeleteComponentPresentationByIdentifierRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
ApiToken, ServiceBearer, ServiceToken
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ComponentPresentation GetComponentPresentationByIdentifier(ctx, identifier).Execute()
Get a component presentation by Identifier
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
identifier := "identifier_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComponentPresentationApi.GetComponentPresentationByIdentifier(context.Background(), identifier).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComponentPresentationApi.GetComponentPresentationByIdentifier``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetComponentPresentationByIdentifier`: ComponentPresentation
fmt.Fprintf(os.Stdout, "Response from `ComponentPresentationApi.GetComponentPresentationByIdentifier`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| identifier | string |
Other parameters are passed through a pointer to a apiGetComponentPresentationByIdentifierRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
ApiToken, ServiceBearer, ServiceToken
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ComponentPresentation GetComponentPresentations(ctx).Execute()
List all component presentations
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComponentPresentationApi.GetComponentPresentations(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComponentPresentationApi.GetComponentPresentations``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetComponentPresentations`: []ComponentPresentation
fmt.Fprintf(os.Stdout, "Response from `ComponentPresentationApi.GetComponentPresentations`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetComponentPresentationsRequest struct via the builder pattern
ApiToken, ServiceBearer, ServiceToken
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ComponentPresentation UpsertComponentPresentations(ctx).ComponentPresentation(componentPresentation).Execute()
Upserts (creates/updates) a component presentation
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
componentPresentation := *openapiclient.NewComponentPresentation("Identifier_example", "Name_example", *openapiclient.NewPresentationDefinition()) // ComponentPresentation |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComponentPresentationApi.UpsertComponentPresentations(context.Background()).ComponentPresentation(componentPresentation).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComponentPresentationApi.UpsertComponentPresentations``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpsertComponentPresentations`: ComponentPresentation
fmt.Fprintf(os.Stdout, "Response from `ComponentPresentationApi.UpsertComponentPresentations`: %v\n", resp)
}Other parameters are passed through a pointer to a apiUpsertComponentPresentationsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| componentPresentation | ComponentPresentation |
ApiToken, ServiceBearer, ServiceToken
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]