Skip to content

Commit

Permalink
update #72
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Nov 19, 2018
1 parent 6148ab4 commit 80bd62c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
2 changes: 2 additions & 0 deletions docs/source/gettingstarted.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
Getting Started
=================

Make sure you have first read the :ref:`introduction` so you understand what CLAM is and what it's architecture is like.

You start a new CLAM webservice project using the ``clamnewproject`` tool. The tool
generates all the necessary files, which you have to edit. The tool
takes one argument: an identifier for your system. This identifier is
Expand Down
2 changes: 2 additions & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _introduction:

Introduction
================================

Expand Down
17 changes: 14 additions & 3 deletions docs/source/restapi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ CLAM.
:Request Parameters: (none)
:Response: ``200 - OK`` & CLAM XML, ``401 - Unauthorised``


:Endpoint: ``/[project]/``
:Method: ``GET``
:Request Parameters: (none)
Expand Down Expand Up @@ -61,6 +62,7 @@ CLAM.
:Description: Deletes a project. Any running processes will be
aborted.


:Endpoint: ``/[project]/input/[filename]``
:Method: ``GET``
:Request Parameters: (none)
Expand Down Expand Up @@ -101,6 +103,7 @@ CLAM.
setting ``metadata`` to the full XML string of the metadata
specification.


:Endpoint: ``/[project]/output/[filename]``
:Method: ``GET``
:Request Parameters: (none)
Expand All @@ -113,6 +116,7 @@ CLAM.
``404 - Not Found``
:Description: Deletes the specified output file.


:Endpoint: ``/[project]/output/[filename]/metadata``
:Method: ``GET``
:Request Parameters: (none)
Expand All @@ -121,13 +125,15 @@ CLAM.
:Description: Retrieves the metadata for the specified output
file.


:Endpoint: ``/[project]/input/[filename]/metadata``
:Method: ``GET``
:Request Parameters: (none)
:Response: ``200 - OK`` & CLAM Metadata XML,
``401 - Unauthorised``, ``404 - Not Found``
:Description: Retrieves the metadata for the specified input file.


:Endpoint: ``/[project]/output/``
:Method: ``GET``
:Request Parameters: ``format=zip|tar.gz|tar.bz2``
Expand All @@ -141,6 +147,7 @@ CLAM.
:Description: Deletes all output files and resets the project for
another run.


:Endpoint: ``/actions/[action_id]/``
:Method: ``GET`` and/or ``POST``, may be constrained by the action
:Request Parameters: Determined by the action
Expand All @@ -150,11 +157,15 @@ CLAM.
action and obtain the results. The parameters are specific to the
action.

| \|l|p10cm\| & **Project entry shortcut**
| & This is a shortcut method (available since CLAM v0.99.17) that
Project entry shortcut
---------------------------

This is a shortcut method (available since CLAM v0.99.17) that
combines the steps of project creation, file adding and upload, in one
single GET or POST request. Although more limited than the invididual
calls, and less RESTful, it facilitates the job for simpler callers.
calls, and less RESTful, it facilitates the job for simpler callers:


:Endpoint: ``/``
:Method: ``GET`` or ``POST``
:Request Parameters: ``project=[name|new]`` (mandatory), selects
Expand Down

0 comments on commit 80bd62c

Please sign in to comment.