[ 
https://issues.apache.org/jira/browse/OODT-139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12995418#comment-12995418
 ] 

Paul Ramirez commented on OODT-139:
-----------------------------------

@Chris Instead of documenting the services here I think we should just move 
these into our Wiki. It will be easier to organize and maintain. I'll add that 
page soon.

@Brian Seeing your documentation helps a lot. I have an issue with the approach 
that is being taken given the responses that are coming from your service. It 
seems as though you are trying to be too generic and accomplish too much. Maps 
are being encoded into JSON even though there are structs that would mimic 
that. Why would someone need the list of columns when they can inspect the 
first result? Check out 
http://it.toolbox.com/blogs/enterprise-web-solutions/json-basics-in-javascript-32660.
 What also should be considered is the interpretation of the JSON by the 
client. Here is a sample discussion that somewhat illustrates what I'm saying 
http://stackoverflow.com/questions/1637334/iterating-through-parsing-json-object-via-javascript.
 Moreover, even if we were implementing a column service, which I don't 
recommend we do, why would it not just return 
["InstanceId","ModelId","State","CreationDate","CurrentTasks","AliveTime"]? If 
you agree on the endpoints, parameters, and messages passed then both the 
interface and server side implementer can begin work and use that as a 
contract. 

> PCS JAX-RS services
> -------------------
>
>                 Key: OODT-139
>                 URL: https://issues.apache.org/jira/browse/OODT-139
>             Project: OODT
>          Issue Type: New Feature
>          Components: pcs
>            Reporter: Chris A. Mattmann
>            Assignee: Chris A. Mattmann
>              Labels: jaxrs, jsr311, pcs
>             Fix For: 0.3
>
>         Attachments: OODT-139.Mattmann.021311.patch.txt, 
> OODT-139.Mattmann.021411.2.patch.txt, OODT-139.Mattmann.021411.patch.txt
>
>
> Now that the PCS core is contributed, it would be great to not just have 
> command line versions and APIs for tools like pcs_stat, pcstrace and pcs_ll. 
> We should expose them over JAX-RS so that webapps can easily take advantage 
> of PCS services.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to