From 99b75b1c17058661db5bc15a0aa7b61d361a6552 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 11 Jan 2016 05:25:46 +0000 Subject: wording --- provider/posts/thermoprint-3.lhs | 18 +++++++++--------- 1 file 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: > 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=*) > ) > :<|> "job" :> Capture "jobId" JobId :> ( -> Get '[JSON] Printout -- Getting the contents of a job currently known to the server (/job:jobId) -> :<|> "status" :> Get '[JSON] JobStatus -- Getting the status of a job (/job:jobId/status) -> :<|> "printer" :> Get '[JSON] PrinterId -- Finding the printer a job was queued for (/job:jobId/printer) -> :<|> Delete '[] () -- Aborting a job (which we expect to make it unknown to the server) (/job:jobId) +> Get '[JSON] Printout -- Get the contents of a job currently known to the server (/job:jobId) +> :<|> "status" :> Get '[JSON] JobStatus -- Get the status of a job (/job:jobId/status) +> :<|> "printer" :> Get '[JSON] PrinterId -- Find the printer a job was queued for (/job:jobId/printer) +> :<|> Delete '[] () -- Abort a job (which we expect to make it unknown to the server) (/job:jobId) > ) > :<|> "drafts" :> ( -> Get '[JSON] (Set DraftId) -- Getting a list of the ids of all drafts known to the server (/drafts) -> :<|> ReqBody '[JSON] Printout :> Post '[JSON] DraftId -- Making a draft known to the server by submitting its contents (/drafts) +> Get '[JSON] (Set DraftId) -- List the identifiers of all drafts known to the server (/drafts) +> :<|> ReqBody '[JSON] Printout :> Post '[JSON] DraftId -- Make a draft known to the server by submitting its contents (/drafts) > ) > :<|> "draft" :> Capture "draftId" DraftId :> ( -> ReqBody '[JSON] Printout :> Put '[] () -- Updating a draft by replacing its contents (/draft:draftId) -> :<|> Get '[JSON] Printout -- Getting the contents of a draft (/draft:draftId) -> :<|> Delete '[] () -- Deleting a draft (/draft:draftId) +> ReqBody '[JSON] Printout :> Put '[] () -- Update a draft by replacing its contents (/draft:draftId) +> :<|> Get '[JSON] Printout -- Get the contents of a draft (/draft:draftId) +> :<|> Delete '[] () -- Delete a draft (/draft:draftId) > ) > > thermoprintAPI :: Proxy ThermoprintAPI -- cgit v1.2.3