Open Fank opened 2 years ago
@andygrunwald While implementing #565 i noticed that all endpoints require a workspace id. So I came up with some ideas right now, should we go for:
1.
client := NewClient(...)
client.Insight.ObjectType.GetAttributes("MyWorkspaceID", "ID")
2.
client := NewClient(...)
client.Insight("MyWorkspaceID").ObjectType.GetAttributes("ID")
3.
client := NewClient(...)
client.Insight.ObjectType.GetAttributes("MyWorkspaceID", "ID")
client2 := NewClient(...)
client2.InsightWithWorkspace("MyWorkspaceID").ObjectType.GetAttributes("ID")
// which is a wrapper for
// client2.Insight.ObjectType.GetAttributes("MyWorkspaceID", "ID")
// so you can do something like:
insight := client2.InsightWithWorkspace("MyWorkspaceID")
insight.ObjectType.Get("ID")
insight.ObjectType.GetAttributes("ID")
...
Personally, I am in favor of option 1, because
Jira bought "Insight" a longer time ago and added it to there Cloud APIs using the same authentication methods:
Additional context
REST Documentation: https://developer.atlassian.com/cloud/insight/rest/
Implemented API
Icon:
Import:
Iql:
Object:
Objectconnectedtickets:
Objectschema:
Objecttype:
Objecttypeattribute:
Progress:
Config:
Global: