Created the GTDServlet to serve the GTD repository via a REST API.

* Moved Item, PropertyHelp to the com.jdblabs.gtd namespace.
* Broke out common functions from GTCLI to a new Util class.
* Created a GTDServlet class which responds to the following endpoints:

  * `/login` (POST): Expects JSON input in the request body in the form of
    `{"username": "joe_user", "password": "password1234" }`. The username and
    password are validated against the values listed in the GTD root directory
    .properties file.
  * `/contexts` (GET): Returns all the GTD contexts the current user has `read`
    access to.
  * `/contexts/<contextId>` (GET): Returns a single context. The ID is the GTD
    context directory name.
  * `/projects` (GET): Returns all the GTD projects the current user has `read`
    access to.
  * `/projects/<projectId>` (GET): Returns a single project. The ID is the GTD
    project directory name.
  * `/next-actions/<categoryNames>` (GET): Returns all the next actions for a
    list of contexts or projects. The categoryNames value is expected to be a
    comma-delimited list of project and context names.
This commit is contained in:
Jonathan Bernard
2013-09-22 16:08:04 -05:00
parent a2f8b7b7a6
commit 58026c83ab
8 changed files with 466 additions and 72 deletions

View File

@ -1,8 +1,8 @@
#Mon, 05 Aug 2013 10:16:09 -0500
#Sun, 22 Sep 2013 16:05:26 -0500
lib.local=true
name=jdb-gtd
version=1.1
version=1.2
nailgun.classpath.dir=/home/jdbernard/programs/nailgun/classpath
executable.jar=true
main.class=com.jdblabs.gtd.cli.GTDCLI
build.number=2
build.number=49