Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Access to user information via the web

What is the sanctioned way to access user information via the web? For
example, to query the current user, to find a user by name, etc. I note
there is a service
service/com.ibm.team.repository.common.internal.IContributorRestService that
seems to return the current user, but I cannot call that service.

There is another service,
com.ibm.team.workitem.common.internal.rest.IWorkItemRestService, that I
*can* call to access lists of users.

Both of these are marked internal, so presumably I should not call them. Is
the current recommended approach that I should provide my own service that
implements the user access I need in my web UI?

0 votes



2 answers

Permanent link
Just a minor update - I can call the IContributorRestService successfully.
But my question still stands, "should I, and if not what is the
alternative?"



"fmcgrath" <fmcgrath@us.ibm.com> wrote in message
news:fdc0c6$mbm$1@localhost.localdomain...
What is the sanctioned way to access user information via the web? For
example, to query the current user, to find a user by name, etc. I note
there is a service
service/com.ibm.team.repository.common.internal.IContributorRestService
that seems to return the current user, but I cannot call that service.

There is another service,
com.ibm.team.workitem.common.internal.rest.IWorkItemRestService, that I
*can* call to access lists of users.

Both of these are marked internal, so presumably I should not call them.
Is the current recommended approach that I should provide my own service
that implements the user access I need in my web UI?

0 votes


Permanent link
Hi Frank -

Those methods are marked internal to note that they are subject to
change without warning - they're not API, in other words, and so you
shouldn't use them as such. When you say "via the web", I'm assuming
that you're referring to a RESTful resource-oriented architecture?

We will have REST services, URIs and representations that will be
treated as API, but we're not there yet, and I'm not in a position to
say when we will be. An example - on a server that I have access to,
putting the following into a browser will yield XML:

http://jazzdev.torolab.ibm.com:9980/jazz/service/com.ibm.team.repository.common.internal.IItemRestService/com.ibm.team.repository/itemName/Contributor/lainhart

The returned schema is exploratory and will change. If you have a tool
that will allow you to specify text/json as the Accept header value
(take a look at HttpUtil.MediaType, when M3 is deployed), you'll get
back some JSON that's closer to what we'll release in M4 (I hope, but
I'm not in a position to commit to).

The syntax of the URI will most likely change as well (for the better :-)).

-- Todd

fmcgrath wrote:
Just a minor update - I can call the IContributorRestService successfully.
But my question still stands, "should I, and if not what is the
alternative?"



"fmcgrath" <fmcgrath@us.ibm.com> wrote in message
news:fdc0c6$mbm$1@localhost.localdomain...
What is the sanctioned way to access user information via the web? For
example, to query the current user, to find a user by name, etc. I note
there is a service
service/com.ibm.team.repository.common.internal.IContributorRestService
that seems to return the current user, but I cannot call that service.

There is another service,
com.ibm.team.workitem.common.internal.rest.IWorkItemRestService, that I
*can* call to access lists of users.

Both of these are marked internal, so presumably I should not call them.
Is the current recommended approach that I should provide my own service
that implements the user access I need in my web UI?


0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Sep 25 '07, 5:59 p.m.

Question was seen: 7,146 times

Last updated: Sep 25 '07, 5:59 p.m.

Confirmation Cancel Confirm