use double quotes
This commit is contained in:
Родитель
2708bf2598
Коммит
ff2bc072cf
|
@ -43,8 +43,8 @@ source_suffix = '.rst'
|
|||
master_doc = 'index'
|
||||
|
||||
# General information about the project.
|
||||
project = u'olympia'
|
||||
copyright = u'2014, The Addons Crew'
|
||||
project = u'addons-server'
|
||||
copyright = u'2014, The Add-ons Crew'
|
||||
|
||||
# The version info for the project you're documenting, acts as replacement for
|
||||
# |version| and |release|, also used in various other places throughout the
|
||||
|
|
|
@ -20,8 +20,8 @@ Returns information about your profile.
|
|||
|
||||
.. sourcecode:: bash
|
||||
|
||||
curl https://addons.mozilla.org/api/v3/accounts/profile/
|
||||
-H 'Authorization: JWT <jwt-token>'
|
||||
curl "https://addons.mozilla.org/api/v3/accounts/profile/"
|
||||
-H "Authorization: JWT <jwt-token>"
|
||||
|
||||
**Response:**
|
||||
|
||||
|
@ -89,8 +89,8 @@ This allows you to generate a new user account and sign in as that user.
|
|||
|
||||
.. sourcecode:: bash
|
||||
|
||||
curl https://addons.mozilla.org/api/v3/accounts/super-create/ \
|
||||
-X POST -H 'Authorization: JWT <jwt-token>'
|
||||
curl "https://addons.mozilla.org/api/v3/accounts/super-create/" \
|
||||
-X POST -H "Authorization: JWT <jwt-token>"
|
||||
|
||||
**Response:**
|
||||
|
||||
|
@ -120,5 +120,5 @@ This allows you to generate a new user account and sign in as that user.
|
|||
.. sourcecode:: bash
|
||||
|
||||
curl --cookie sessionid=... -s -D - \
|
||||
http://addons-dev.allizom.org/en-US/developers/addon/submit/1 \
|
||||
"https://addons.mozilla.org/en-US/developers/addon/submit/1" \
|
||||
-o /dev/null
|
||||
|
|
|
@ -108,8 +108,8 @@ Using the :ref:`profile <profile>` as an example endpoint,
|
|||
here's what a JWT authenticated HTTP request would look like in
|
||||
`curl <http://curl.haxx.se/>`_::
|
||||
|
||||
curl https://addons.mozilla.org/api/v3/accounts/profile/ \
|
||||
-H 'Authorization: JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE0NDcyNzMwOTZ9.MG9LJiEK5_Db8WpF5cWWRebXCtUB48EJzxKIBqQhSOo'
|
||||
curl "https://addons.mozilla.org/api/v3/accounts/profile/" \
|
||||
-H "Authorization: JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE0NDcyNzMwOTZ9.MG9LJiEK5_Db8WpF5cWWRebXCtUB48EJzxKIBqQhSOo"
|
||||
|
||||
|
||||
Find a JWT library
|
||||
|
|
|
@ -45,9 +45,9 @@ validation and you will be able to check its status.
|
|||
|
||||
.. sourcecode:: bash
|
||||
|
||||
curl https://addons.mozilla.org/api/v3/addons/@my-addon/versions/1.0/
|
||||
-g -XPUT --form 'upload=@build/my-addon.xpi'
|
||||
-H 'Authorization: JWT <jwt-token>'
|
||||
curl "https://addons.mozilla.org/api/v3/addons/@my-addon/versions/1.0/"
|
||||
-g -XPUT --form "upload=@build/my-addon.xpi"
|
||||
-H "Authorization: JWT <jwt-token>"
|
||||
|
||||
:param addon-id: The id for the add-on.
|
||||
:param version: The version of the add-on. A version ending with
|
||||
|
@ -83,9 +83,9 @@ Uploading without an ID
|
|||
|
||||
.. sourcecode:: bash
|
||||
|
||||
curl https://addons.mozilla.org/api/v3/addons/
|
||||
-g -XPOST -F 'upload=@build/my-addon.xpi' -F 'version=1.0'
|
||||
-H 'Authorization: JWT <jwt-token>'
|
||||
curl "https://addons.mozilla.org/api/v3/addons/"
|
||||
-g -XPOST -F "upload=@build/my-addon.xpi" -F "version=1.0"
|
||||
-H "Authorization: JWT <jwt-token>"
|
||||
|
||||
:form upload: The add-on file being uploaded.
|
||||
:form version: The version of the add-on. A version ending with
|
||||
|
@ -141,8 +141,8 @@ automatically or after a manual review. Once review is complete then the
|
|||
|
||||
.. sourcecode:: bash
|
||||
|
||||
curl https://addons.mozilla.org/api/v3/addons/@my-addon/versions/1.0/
|
||||
-g -H 'Authorization: JWT <jwt-token>'
|
||||
curl "https://addons.mozilla.org/api/v3/addons/@my-addon/versions/1.0/"
|
||||
-g -H "Authorization: JWT <jwt-token>"
|
||||
|
||||
:param addon-id: the id for the add-on.
|
||||
:param version: the version of the add-on.
|
||||
|
@ -218,8 +218,8 @@ This endpoint returns the actual file data for download.
|
|||
|
||||
.. sourcecode:: bash
|
||||
|
||||
curl 'https://addons.mozilla.org/api/v3/file/123/some-addon.xpi?src=api'
|
||||
-g -H 'Authorization: JWT <jwt-token>'
|
||||
curl "https://addons.mozilla.org/api/v3/file/123/some-addon.xpi?src=api"
|
||||
-g -H "Authorization: JWT <jwt-token>"
|
||||
|
||||
:param file_id: the primary key of the add-on file.
|
||||
:param base_filename:
|
||||
|
|
|
@ -45,8 +45,8 @@ for a specific month use the following api:
|
|||
|
||||
.. sourcecode:: bash
|
||||
|
||||
curl https://addons.mozilla.org/api/v3/statistics/archive/my-addon/2016/01/
|
||||
-H 'Authorization: JWT <jwt-token>'
|
||||
curl "https://addons.mozilla.org/api/v3/statistics/archive/my-addon/2016/01/"
|
||||
-H "Authorization: JWT <jwt-token>"
|
||||
|
||||
:param addon-slug: The slug for the add-on.
|
||||
:param year: The year you want to fetch.
|
||||
|
@ -87,8 +87,8 @@ access the actual data points for a specific model and date.
|
|||
|
||||
.. sourcecode:: bash
|
||||
|
||||
curl https://addons.mozilla.org/api/v3/statistics/archive/my-addon/2016/01/18/themeupdatecount/
|
||||
-H 'Authorization: JWT <jwt-token>'
|
||||
curl "https://addons.mozilla.org/api/v3/statistics/archive/my-addon/2016/01/18/themeupdatecount/"
|
||||
-H "Authorization: JWT <jwt-token>"
|
||||
|
||||
:param addon-slug: The slug for the add-on.
|
||||
:param year: The year you want to fetch.
|
||||
|
|
Загрузка…
Ссылка в новой задаче