Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add REST API to repo docs #29

Closed
levinas opened this issue May 20, 2014 · 6 comments
Closed

Add REST API to repo docs #29

levinas opened this issue May 20, 2014 · 6 comments
Assignees

Comments

@levinas
Copy link
Contributor

levinas commented May 20, 2014

Example:
http://restbrowser.bitbucket.org

@levinas levinas added this to the Functions for RAST2 demo milestone May 20, 2014
@cbun
Copy link
Contributor

cbun commented May 20, 2014

I'm working on it. Here is a cheat sheet

# all jobs
/user/{user.id}/job/{?report}

# status of job
/user/{user.id}/job/{job.id}/status

# file info for all results of job
/user/{user.id}/job/{job.id}/results{?type,tags}

# user's data info
/user/{user.id}/data
/user/{user.id}/data/{data.id}

# modules available for pipeline
/module/all
/module/avail

/shock

@sebhtml
Copy link
Contributor

sebhtml commented May 20, 2014

.

sebhtml pushed a commit to sebhtml/assembly that referenced this issue Jun 5, 2014
Link: kbaseattic#29
Link: kbaseattic#6
Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>
@sebhtml
Copy link
Contributor

sebhtml commented Jun 5, 2014

sebhtml@70f348b

@levinas
Copy link
Contributor Author

levinas commented Jul 2, 2014

@cbun, can you give a working example of /user/{user.id}/job/{job.id}/results{?type,tags}?

I still don't understand the syntax.

@cbun
Copy link
Contributor

cbun commented Jul 2, 2014

Plugins can tag a results with whatever keyword. Also, data that is produced by a give module, tags it with it's module name. The quast plugin tags contigsets in the order it runs them. For example, the auto recipe has quast run on contigs sorted by ALE:

;;; 'auto' Wasp exp
(define newsort (sort (list gam sp vt id) > :key (lambda (c) (get ale_score (ale c)))))
     (tar (all_files (quast (upload newsort))) :name analysis)

If the spades contigs are first, the contigset will be tagged with quast-1

To get this specific one,

curl -X GET localhost:8000/user/cbun/job/1521/results?tags=quast-1

@levinas
Copy link
Contributor Author

levinas commented Jul 2, 2014

I see. There may be a bug with the implementation. I created a separate issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants