DECA-190: Implement a RESTful ROA architecture for decapod 0.5 a

Metadata

Source
DECA-190
Type
Task
Priority
Blocker
Status
Closed
Resolution
Fixed
Assignee
N/A
Reporter
Justin Obara
Created
2011-11-10T14:38:58.894-0500
Updated
2012-01-10T09:19:04.442-0500
Versions
N/A
Fixed Versions
  1. 0.5a
Component
N/A

Description

Implement a RESTful Resource Oriented Architecture (ROA) for decapod 0.5a based on the proposal in the wiki
http://wiki.fluidproject.org/display/fluid/Proposed+Decapod+Server+Architecture

For decapod 0.5a only need the following:

http://localhost:8080/books/decapod05a/

  • DELETE: removes all pages and export artifacts

http://localhost:8080/books/decapod05a/pages/

  • POST: add new pages

https://localhost:8080/books/decapod05a/export/pdf/type1
https://localhost:8080/books/decapod05a/export/pdf/type2
https://localhost:8080/books/decapod05a/export/pdf/type3

  • PUT: trigger the creation of the pdf
  • GET: retrieve the status of export and path to the pdf if generated
  • DELETE: remove all export artifacts including the pdf

**NOTE: for decapod 0.5a only one pdf at a time, meaning if generating type 3 then type 2, type 3 will be overwritten by type 2.**