From 0a170f5c293bb3d4232b29700d45526c02615164 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Wed, 2 May 2018 16:00:20 +0200 Subject: [PATCH] Docs: Fix inconsistency --- doc/api/resources/invoices.rst | 56 +++++++++++++++++----------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/doc/api/resources/invoices.rst b/doc/api/resources/invoices.rst index 28b657dc44..3738cd4f47 100644 --- a/doc/api/resources/invoices.rst +++ b/doc/api/resources/invoices.rst @@ -230,34 +230,6 @@ Endpoints **Example request**: - .. sourcecode:: http - - GET /api/v1/organizers/bigevents/events/sampleconf/invoices/00001/regenerate/ HTTP/1.1 - Host: pretix.eu - Accept: application/json, text/javascript - - **Example response**: - - .. sourcecode:: http - - HTTP/1.1 204 No Content - Vary: Accept - Content-Type: application/pdf - - :param organizer: The ``slug`` field of the organizer to fetch - :param event: The ``slug`` field of the event to fetch - :param invoice_no: The ``invoice_no`` field of the invoice to regenerate - :statuscode 200: no error - :statuscode 400: The invoice has already been canceled - :statuscode 401: Authentication failure - :statuscode 403: The requested organizer/event does not exist **or** you have no permission to change this resource. - -.. http:post:: /api/v1/organizers/(organizer)/events/(event)/invoices/(invoice_no)/reissue/ - - Re-generates the invoice from order data. - - **Example request**: - .. sourcecode:: http GET /api/v1/organizers/bigevents/events/sampleconf/invoices/00001/reissue/ HTTP/1.1 @@ -279,3 +251,31 @@ Endpoints :statuscode 400: The invoice has already been canceled :statuscode 401: Authentication failure :statuscode 403: The requested organizer/event does not exist **or** you have no permission to change this resource. + +.. http:post:: /api/v1/organizers/(organizer)/events/(event)/invoices/(invoice_no)/regenerate/ + + Re-generates the invoice from order data. + + **Example request**: + + .. sourcecode:: http + + GET /api/v1/organizers/bigevents/events/sampleconf/invoices/00001/regenerate/ HTTP/1.1 + Host: pretix.eu + Accept: application/json, text/javascript + + **Example response**: + + .. sourcecode:: http + + HTTP/1.1 204 No Content + Vary: Accept + Content-Type: application/pdf + + :param organizer: The ``slug`` field of the organizer to fetch + :param event: The ``slug`` field of the event to fetch + :param invoice_no: The ``invoice_no`` field of the invoice to regenerate + :statuscode 200: no error + :statuscode 400: The invoice has already been canceled + :statuscode 401: Authentication failure + :statuscode 403: The requested organizer/event does not exist **or** you have no permission to change this resource.