diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2016-01-11 05:25:46 +0000 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2016-01-11 05:25:46 +0000 |
commit | 99b75b1c17058661db5bc15a0aa7b61d361a6552 (patch) | |
tree | 83719b5fd3c01aac93b8b1d30115aeb904143679 | |
parent | a7c01eaf04939707475a4b26fd654c8b8993ff49 (diff) | |
download | dirty-haskell.org-99b75b1c17058661db5bc15a0aa7b61d361a6552.tar dirty-haskell.org-99b75b1c17058661db5bc15a0aa7b61d361a6552.tar.gz dirty-haskell.org-99b75b1c17058661db5bc15a0aa7b61d361a6552.tar.bz2 dirty-haskell.org-99b75b1c17058661db5bc15a0aa7b61d361a6552.tar.xz dirty-haskell.org-99b75b1c17058661db5bc15a0aa7b61d361a6552.zip |
wording
-rw-r--r-- | provider/posts/thermoprint-3.lhs | 18 |
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 |