Skip to content

Commit

Permalink
Document api v1 paste show endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
wookie184 committed Jan 6, 2024
1 parent 5b07f9d commit 2a06026
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,14 @@ To remove a paste a ``GET`` request to the ``removal`` URL returned is
sufficient.


/api/v1/paste/([A-Z2-7]+)(?:#.+)?
--------------------------------
Used to retrieve the paste with the given ID.

>>> requests.get("http://localhost:8000/api/v1/paste/74").json()
{"files": [{"name": "spam", "lexer": "python", "content": "eggs"}]}


/api/v1/lexer
-------------
An endpoint to list all lexers available in the ``pinnwand`` instance whose
Expand Down

0 comments on commit 2a06026

Please sign in to comment.