All URIs are relative to https://yasm.prodyna.com:443/api/graph/v1
Method | HTTP request | Description |
---|---|---|
ReadPersonProjectParticipation | Get /persons/{personId}/project-participation | Get a Project Participation of a Person |
[]PersonProjectParticipationDetails ReadPersonProjectParticipation(ctx, personId).ProjectIds(projectIds).Execute()
Get a Project Participation of a Person
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/prodyna-yasm/yasm-api-go"
)
func main() {
personId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
projectIds := []string{"Inner_example"} // []string | Filter by project ids, if not set, all projects are returned (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ProjectParticipationAPI.ReadPersonProjectParticipation(context.Background(), personId).ProjectIds(projectIds).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ProjectParticipationAPI.ReadPersonProjectParticipation``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ReadPersonProjectParticipation`: []PersonProjectParticipationDetails
fmt.Fprintf(os.Stdout, "Response from `ProjectParticipationAPI.ReadPersonProjectParticipation`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
personId | string |
Other parameters are passed through a pointer to a apiReadPersonProjectParticipationRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
projectIds | []string | Filter by project ids, if not set, all projects are returned |
[]PersonProjectParticipationDetails
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]