[
https://issues.apache.org/jira/browse/UNOMI-487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17442264#comment-17442264
]
Anatol Sialitski edited comment on UNOMI-487 at 11/11/21, 12:55 PM:
--------------------------------------------------------------------
[~shuber] please have a look at type definitions for ProfileAlias
{code:java}
type CDP_ProfileAlias {
alias: ID!
profileID: CDP_ProfileID! # CDP_ProfileID type contains information about
ClientID
creationTime: DateTime
modifiedTime: DateTime
}
input CDP_ProfileAliasInput {
alias: ID!
profileID: CDP_ProfileIDInput!
}
input CDP_ProfileAliasFilterInput {
and: [CDP_ProfileAliasFilterInput]
or: [CDP_ProfileAliasFilterInput]
alias_equals: ID
profileID_equals: ID
clientID_equals: ID
}
type CDP_ProfileAliasEdge {
node: CDP_ProfileAlias,
cursor: String!
}
type CDP_ProfileAliasConnection {
totalCount: Int
edges: [CDP_ProfileAliasEdge]
pageInfo: PageInfo
}
type CDP_Query {
getProfileAlias(alias: ID!) : CDP_ProfileAlias
getProfileAliases(profileID: CDP_ProfileIDInput!) : [CDP_ProfileAlias]
findProfileAliases(filter: CDP_ProfileAliasFilterInput
orderBy: [CDP_OrderByInput]
first: Int
after: String
last: Int
before: String): CDP_ProfileAliasConnection
}
type CDP_Mutation {
addAliasToProfile(profileAlias: CDP_ProfileAliasInput!): CDP_ProfileAlias
removeAliasFromProfile(alias: ID!, profile_ID: CDP_ProfileIDInput!):
CDP_ProfileAlias
}
{code}
was (Author: anatol):
[~shuber] please have a look at type definitions for ProfileAlias
{code:java}
type CDP_ProfileAlias {
alias: ID!
profileID: CDP_ProfileID! # CDP_ProfileID type contains information about
ClientID
creationTime: DateTime
modifiedTime: DateTime
}
input CDP_ProfileAliasInput {
alias: ID!
profileID: CDP_ProfileIDInput!
}
input CDP_ProfileAliasFilterInput {
alias_equals: ID,
profileID_equals: ID
clientID_equals: ID
}
type CDP_ProfileAliasEdge {
node: CDP_ProfileAlias,
cursor: String!
}
type CDP_ProfileAliasConnection {
totalCount: Int
edges: [CDP_ProfileAliasEdge]
pageInfo: PageInfo
}
type CDP_Query {
getProfileAlias(alias: ID!) : CDP_ProfileAlias
getProfileAliases(profileID: CDP_ProfileIDInput!) : [CDP_ProfileAlias]
findProfileAliases(filter: CDP_ProfileAliasFilterInput
orderBy: [CDP_OrderByInput]
first: Int
after: String
last: Int
before: String): CDP_ProfileAliasConnection
}
type CDP_Mutation {
addAliasToProfile(profileAlias: CDP_ProfileAliasInput!): CDP_ProfileAlias
removeAliasFromProfile(alias: ID!, profile_ID: CDP_ProfileIDInput!):
CDP_ProfileAlias
}
{code}
> Add profile alias management to REST API and GraphQL API
> --------------------------------------------------------
>
> Key: UNOMI-487
> URL: https://issues.apache.org/jira/browse/UNOMI-487
> Project: Apache Unomi
> Issue Type: Sub-task
> Reporter: Serge Huber
> Assignee: Anatol Sialitski
> Priority: Major
>
> REST API ProfileServiceEndpoint should have new methods to :
> - add an alias to a profile
> - list aliases for a profile
> - remove an alias from a profile
> An idea could be some like
> /cxs/profiles/:profileid/aliases/:aliasid
> Same thing for the GraphQL API.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)