summaryrefslogtreecommitdiff
path: root/provider
diff options
context:
space:
mode:
Diffstat (limited to 'provider')
-rw-r--r--provider/posts/thermoprint-3.lhs18
1 files changed, 9 insertions, 9 deletions
diff --git a/provider/posts/thermoprint-3.lhs b/provider/posts/thermoprint-3.lhs
index 82d5056..9227c97 100644
--- a/provider/posts/thermoprint-3.lhs
+++ b/provider/posts/thermoprint-3.lhs
@@ -71,19 +71,19 @@ We support the following actions through our API:
71> QueryParam "printer" PrinterId :> QueryParam "min" JobId :> QueryParam "max" JobId :> Get '[JSON] (Seq JobId) -- List all jobs allowing for selection by printerId and pagination (/jobs?printer=*&min=*&max=*) 71> QueryParam "printer" PrinterId :> QueryParam "min" JobId :> QueryParam "max" JobId :> Get '[JSON] (Seq JobId) -- List all jobs allowing for selection by printerId and pagination (/jobs?printer=*&min=*&max=*)
72> ) 72> )
73> :<|> "job" :> Capture "jobId" JobId :> ( 73> :<|> "job" :> Capture "jobId" JobId :> (
74> Get '[JSON] Printout -- Getting the contents of a job currently known to the server (/job:jobId) 74> Get '[JSON] Printout -- Get the contents of a job currently known to the server (/job:jobId)
75> :<|> "status" :> Get '[JSON] JobStatus -- Getting the status of a job (/job:jobId/status) 75> :<|> "status" :> Get '[JSON] JobStatus -- Get the status of a job (/job:jobId/status)
76> :<|> "printer" :> Get '[JSON] PrinterId -- Finding the printer a job was queued for (/job:jobId/printer) 76> :<|> "printer" :> Get '[JSON] PrinterId -- Find the printer a job was queued for (/job:jobId/printer)
77> :<|> Delete '[] () -- Aborting a job (which we expect to make it unknown to the server) (/job:jobId) 77> :<|> Delete '[] () -- Abort a job (which we expect to make it unknown to the server) (/job:jobId)
78> ) 78> )
79> :<|> "drafts" :> ( 79> :<|> "drafts" :> (
80> Get '[JSON] (Set DraftId) -- Getting a list of the ids of all drafts known to the server (/drafts) 80> Get '[JSON] (Set DraftId) -- List the identifiers of all drafts known to the server (/drafts)
81> :<|> ReqBody '[JSON] Printout :> Post '[JSON] DraftId -- Making a draft known to the server by submitting its contents (/drafts) 81> :<|> ReqBody '[JSON] Printout :> Post '[JSON] DraftId -- Make a draft known to the server by submitting its contents (/drafts)
82> ) 82> )
83> :<|> "draft" :> Capture "draftId" DraftId :> ( 83> :<|> "draft" :> Capture "draftId" DraftId :> (
84> ReqBody '[JSON] Printout :> Put '[] () -- Updating a draft by replacing its contents (/draft:draftId) 84> ReqBody '[JSON] Printout :> Put '[] () -- Update a draft by replacing its contents (/draft:draftId)
85> :<|> Get '[JSON] Printout -- Getting the contents of a draft (/draft:draftId) 85> :<|> Get '[JSON] Printout -- Get the contents of a draft (/draft:draftId)
86> :<|> Delete '[] () -- Deleting a draft (/draft:draftId) 86> :<|> Delete '[] () -- Delete a draft (/draft:draftId)
87> ) 87> )
88> 88>
89> thermoprintAPI :: Proxy ThermoprintAPI 89> thermoprintAPI :: Proxy ThermoprintAPI