diff --git a/README.rst b/README.rst index 1a32e49..aa28cfd 100644 --- a/README.rst +++ b/README.rst @@ -1,105 +1,105 @@ -.. |.`~.ACCESS_TOKEN`| replace:: ``ACCESS_TOKEN`` -.. _.`~.ACCESS_TOKEN`: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client.ACCESS_TOKEN -.. |.`~.APIResponse`| replace:: ``APIResponse`` -.. _.`~.APIResponse`: https://my-magento.readthedocs.io/en/latest/model.html#magento.models.model.APIResponse -.. |.`~.CategorySearch`| replace:: ``CategorySearch`` -.. _.`~.CategorySearch`: https://my-magento.readthedocs.io/en/latest/search_module.html#magento.search.CategorySearch -.. |.`~.Category`| replace:: ``Category`` -.. _.`~.Category`: https://my-magento.readthedocs.io/en/latest/category.html#magento.models.category.Category -.. |.`.Client.categories`| replace:: ``Client.categories`` -.. _.`.Client.categories`: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client.categories -.. |.`.Client.invoices`| replace:: ``Client.invoices`` -.. _.`.Client.invoices`: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client.invoices -.. |.`.Client.order_items`| replace:: ``Client.order_items`` -.. _.`.Client.order_items`: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client.order_items -.. |.`.Client.orders`| replace:: ``Client.orders`` -.. _.`.Client.orders`: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client.orders -.. |.`.Client.product_attributes`| replace:: ``Client.product_attributes`` -.. _.`.Client.product_attributes`: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client.product_attributes -.. |.`.Client.products`| replace:: ``Client.products`` -.. _.`.Client.products`: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client.products -.. |.`.Client.scope`| replace:: ``Client.scope`` -.. _.`.Client.scope`: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client.scope -.. |.`.Client.search`| replace:: ``Client.search()`` -.. _.`.Client.search`: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client.search -.. |.`.Client.url_for`| replace:: ``Client.url_for()`` -.. _.`.Client.url_for`: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client.url_for -.. |.`~.Client`| replace:: ``Client`` -.. _.`~.Client`: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client -.. |.`~.InvoiceSearch`| replace:: ``InvoiceSearch`` -.. _.`~.InvoiceSearch`: https://my-magento.readthedocs.io/en/latest/search_module.html#magento.search.InvoiceSearch -.. |.`~.Invoice`| replace:: ``Invoice`` -.. _.`~.Invoice`: https://my-magento.readthedocs.io/en/latest/invoice.html#magento.models.invoice.Invoice -.. |.`~.MediaEntry`| replace:: ``MediaEntry`` -.. _.`~.MediaEntry`: https://my-magento.readthedocs.io/en/latest/product.html#magento.models.product.MediaEntry -.. |.`.Model.refresh`| replace:: ``Model.refresh()`` -.. _.`.Model.refresh`: https://my-magento.readthedocs.io/en/latest/model.html#magento.models.model.Model.refresh -.. |.`~.Model`| replace:: ``Model`` -.. _.`~.Model`: https://my-magento.readthedocs.io/en/latest/model.html#magento.models.model.Model -.. |.`~.OrderItemSearch`| replace:: ``OrderItemSearch`` -.. _.`~.OrderItemSearch`: https://my-magento.readthedocs.io/en/latest/search_module.html#magento.search.OrderItemSearch -.. |.`~.OrderItem`| replace:: ``OrderItem`` -.. _.`~.OrderItem`: https://my-magento.readthedocs.io/en/latest/order.html#magento.models.order.OrderItem -.. |.`~.OrderSearch`| replace:: ``OrderSearch`` -.. _.`~.OrderSearch`: https://my-magento.readthedocs.io/en/latest/search_module.html#magento.search.OrderSearch -.. |.`~.Order`| replace:: ``Order`` -.. _.`~.Order`: https://my-magento.readthedocs.io/en/latest/order.html#magento.models.order.Order -.. |.`~.ProductAttributeSearch`| replace:: ``ProductAttributeSearch`` -.. _.`~.ProductAttributeSearch`: https://my-magento.readthedocs.io/en/latest/search_module.html#magento.search.ProductAttributeSearch -.. |.`~.ProductAttribute`| replace:: ``ProductAttribute`` -.. _.`~.ProductAttribute`: https://my-magento.readthedocs.io/en/latest/product.html#magento.models.product.ProductAttribute -.. |.`~.ProductSearch.by_sku`| replace:: ``by_sku()`` -.. _.`~.ProductSearch.by_sku`: https://my-magento.readthedocs.io/en/latest/search_module.html#magento.search.ProductSearch.by_sku -.. |.`~.ProductSearch`| replace:: ``ProductSearch`` -.. _.`~.ProductSearch`: https://my-magento.readthedocs.io/en/latest/search_module.html#magento.search.ProductSearch -.. |.`~.Product`| replace:: ``Product`` -.. _.`~.Product`: https://my-magento.readthedocs.io/en/latest/product.html#magento.models.product.Product -.. |.`~.SearchQuery.by_id`| replace:: ``by_id()`` -.. _.`~.SearchQuery.by_id`: https://my-magento.readthedocs.io/en/latest/search_module.html#magento.search.SearchQuery.by_id -.. |.`~.SearchQuery.by_list`| replace:: ``by_list()`` -.. _.`~.SearchQuery.by_list`: https://my-magento.readthedocs.io/en/latest/search_module.html#magento.search.SearchQuery.by_list -.. |.`~.SearchQuery.result`| replace:: ``result`` -.. _.`~.SearchQuery.result`: https://my-magento.readthedocs.io/en/latest/search_module.html#magento.search.SearchQuery.result -.. |.`~.SearchQuery`| replace:: ``SearchQuery`` -.. _.`~.SearchQuery`: https://my-magento.readthedocs.io/en/latest/search_module.html#magento.search.SearchQuery -.. |.`~.USER_CREDENTIALS`| replace:: ``USER_CREDENTIALS`` -.. _.`~.USER_CREDENTIALS`: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client.USER_CREDENTIALS -.. |.`~.add_criteria`| replace:: ``add_criteria()`` -.. _.`~.add_criteria`: https://my-magento.readthedocs.io/en/latest/search_module.html#magento.search.SearchQuery.add_criteria -.. |.`~.authenticate`| replace:: ``authenticate()`` -.. _.`~.authenticate`: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client.authenticate -.. |.`~.by_id`| replace:: ``by_id()`` -.. _.`~.by_id`: https://my-magento.readthedocs.io/en/latest/search_module.html#magento.search.SearchQuery.by_id -.. |.`~.by_list`| replace:: ``by_list()`` -.. _.`~.by_list`: https://my-magento.readthedocs.io/en/latest/search_module.html#magento.search.SearchQuery.by_list -.. |.`~.delete`| replace:: ``delete()`` -.. _.`~.delete`: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client.delete -.. |.`~.execute`| replace:: ``execute()`` -.. _.`~.execute`: https://my-magento.readthedocs.io/en/latest/search_module.html#magento.search.SearchQuery.execute -.. |.`.get_api`| replace:: ``get_api()`` -.. _.`.get_api`: https://my-magento.readthedocs.io/en/latest/modules.html#magento.get_api -.. |.`~.get_api`| replace:: ``get_api()`` -.. _.`~.get_api`: https://my-magento.readthedocs.io/en/latest/modules.html#magento.get_api -.. |.`~.get`| replace:: ``get()`` -.. _.`~.get`: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client.get -.. |.`~.post`| replace:: ``post()`` -.. _.`~.post`: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client.post -.. |.`~.put`| replace:: ``put()`` -.. _.`~.put`: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client.put -.. |.`~.restrict_fields`| replace:: ``restrict_fields()`` -.. _.`~.restrict_fields`: https://my-magento.readthedocs.io/en/latest/search_module.html#magento.search.SearchQuery.restrict_fields -.. |.`~.scope`| replace:: ``scope`` -.. _.`~.scope`: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client.scope -.. |.`~.search`| replace:: ``search()`` -.. _.`~.search`: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client.search -.. |.`~.since`| replace:: ``since()`` -.. _.`~.since`: https://my-magento.readthedocs.io/en/latest/search_module.html#magento.search.SearchQuery.since -.. |.`~.until`| replace:: ``until()`` -.. _.`~.until`: https://my-magento.readthedocs.io/en/latest/search_module.html#magento.search.SearchQuery.until -.. |.`~.url_for`| replace:: ``url_for()`` -.. _.`~.url_for`: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client.url_for -.. |.`~.views`| replace:: ``views`` -.. _.`~.views`: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Store.views +.. |.~.ACCESS_TOKEN| replace:: ``ACCESS_TOKEN`` +.. _.~.ACCESS_TOKEN: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client.ACCESS_TOKEN +.. |.~.APIResponse| replace:: ``APIResponse`` +.. _.~.APIResponse: https://my-magento.readthedocs.io/en/latest/model.html#magento.models.model.APIResponse +.. |.~.Category| replace:: ``Category`` +.. _.~.Category: https://my-magento.readthedocs.io/en/latest/category.html#magento.models.category.Category +.. |.~.CategorySearch| replace:: ``CategorySearch`` +.. _.~.CategorySearch: https://my-magento.readthedocs.io/en/latest/search_module.html#magento.search.CategorySearch +.. |.~.Client| replace:: ``Client`` +.. _.~.Client: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client +.. |..Client.categories| replace:: ``Client.categories`` +.. _..Client.categories: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client.categories +.. |..Client.invoices| replace:: ``Client.invoices`` +.. _..Client.invoices: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client.invoices +.. |..Client.order_items| replace:: ``Client.order_items`` +.. _..Client.order_items: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client.order_items +.. |..Client.orders| replace:: ``Client.orders`` +.. _..Client.orders: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client.orders +.. |..Client.product_attributes| replace:: ``Client.product_attributes`` +.. _..Client.product_attributes: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client.product_attributes +.. |..Client.products| replace:: ``Client.products`` +.. _..Client.products: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client.products +.. |..Client.scope| replace:: ``Client.scope`` +.. _..Client.scope: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client.scope +.. |..Client.search| replace:: ``Client.search()`` +.. _..Client.search: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client.search +.. |..Client.url_for| replace:: ``Client.url_for()`` +.. _..Client.url_for: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client.url_for +.. |.~.Invoice| replace:: ``Invoice`` +.. _.~.Invoice: https://my-magento.readthedocs.io/en/latest/invoice.html#magento.models.invoice.Invoice +.. |.~.InvoiceSearch| replace:: ``InvoiceSearch`` +.. _.~.InvoiceSearch: https://my-magento.readthedocs.io/en/latest/search_module.html#magento.search.InvoiceSearch +.. |.~.MediaEntry| replace:: ``MediaEntry`` +.. _.~.MediaEntry: https://my-magento.readthedocs.io/en/latest/product.html#magento.models.product.MediaEntry +.. |.~.Model| replace:: ``Model`` +.. _.~.Model: https://my-magento.readthedocs.io/en/latest/model.html#magento.models.model.Model +.. |..Model.refresh| replace:: ``Model.refresh()`` +.. _..Model.refresh: https://my-magento.readthedocs.io/en/latest/model.html#magento.models.model.Model.refresh +.. |.~.Order| replace:: ``Order`` +.. _.~.Order: https://my-magento.readthedocs.io/en/latest/order.html#magento.models.order.Order +.. |.~.OrderItem| replace:: ``OrderItem`` +.. _.~.OrderItem: https://my-magento.readthedocs.io/en/latest/order.html#magento.models.order.OrderItem +.. |.~.OrderItemSearch| replace:: ``OrderItemSearch`` +.. _.~.OrderItemSearch: https://my-magento.readthedocs.io/en/latest/search_module.html#magento.search.OrderItemSearch +.. |.~.OrderSearch| replace:: ``OrderSearch`` +.. _.~.OrderSearch: https://my-magento.readthedocs.io/en/latest/search_module.html#magento.search.OrderSearch +.. |.~.Product| replace:: ``Product`` +.. _.~.Product: https://my-magento.readthedocs.io/en/latest/product.html#magento.models.product.Product +.. |.~.ProductAttribute| replace:: ``ProductAttribute`` +.. _.~.ProductAttribute: https://my-magento.readthedocs.io/en/latest/product.html#magento.models.product.ProductAttribute +.. |.~.ProductAttributeSearch| replace:: ``ProductAttributeSearch`` +.. _.~.ProductAttributeSearch: https://my-magento.readthedocs.io/en/latest/search_module.html#magento.search.ProductAttributeSearch +.. |.~.ProductSearch| replace:: ``ProductSearch`` +.. _.~.ProductSearch: https://my-magento.readthedocs.io/en/latest/search_module.html#magento.search.ProductSearch +.. |.~.ProductSearch.by_sku| replace:: ``by_sku()`` +.. _.~.ProductSearch.by_sku: https://my-magento.readthedocs.io/en/latest/search_module.html#magento.search.ProductSearch.by_sku +.. |.~.SearchQuery| replace:: ``SearchQuery`` +.. _.~.SearchQuery: https://my-magento.readthedocs.io/en/latest/search_module.html#magento.search.SearchQuery +.. |.~.SearchQuery.by_id| replace:: ``by_id()`` +.. _.~.SearchQuery.by_id: https://my-magento.readthedocs.io/en/latest/search_module.html#magento.search.SearchQuery.by_id +.. |.~.SearchQuery.by_list| replace:: ``by_list()`` +.. _.~.SearchQuery.by_list: https://my-magento.readthedocs.io/en/latest/search_module.html#magento.search.SearchQuery.by_list +.. |.~.SearchQuery.result| replace:: ``result`` +.. _.~.SearchQuery.result: https://my-magento.readthedocs.io/en/latest/search_module.html#magento.search.SearchQuery.result +.. |.~.USER_CREDENTIALS| replace:: ``USER_CREDENTIALS`` +.. _.~.USER_CREDENTIALS: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client.USER_CREDENTIALS +.. |.~.add_criteria| replace:: ``add_criteria()`` +.. _.~.add_criteria: https://my-magento.readthedocs.io/en/latest/search_module.html#magento.search.SearchQuery.add_criteria +.. |.~.authenticate| replace:: ``authenticate()`` +.. _.~.authenticate: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client.authenticate +.. |.~.by_id| replace:: ``by_id()`` +.. _.~.by_id: https://my-magento.readthedocs.io/en/latest/search_module.html#magento.search.SearchQuery.by_id +.. |.~.by_list| replace:: ``by_list()`` +.. _.~.by_list: https://my-magento.readthedocs.io/en/latest/search_module.html#magento.search.SearchQuery.by_list +.. |.~.delete| replace:: ``delete()`` +.. _.~.delete: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client.delete +.. |.~.execute| replace:: ``execute()`` +.. _.~.execute: https://my-magento.readthedocs.io/en/latest/search_module.html#magento.search.SearchQuery.execute +.. |.~.get| replace:: ``get()`` +.. _.~.get: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client.get +.. |..get_api| replace:: ``get_api()`` +.. _..get_api: https://my-magento.readthedocs.io/en/latest/modules.html#magento.get_api +.. |.~.get_api| replace:: ``get_api()`` +.. _.~.get_api: https://my-magento.readthedocs.io/en/latest/modules.html#magento.get_api +.. |.~.post| replace:: ``post()`` +.. _.~.post: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client.post +.. |.~.put| replace:: ``put()`` +.. _.~.put: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client.put +.. |.~.restrict_fields| replace:: ``restrict_fields()`` +.. _.~.restrict_fields: https://my-magento.readthedocs.io/en/latest/search_module.html#magento.search.SearchQuery.restrict_fields +.. |.~.scope| replace:: ``scope`` +.. _.~.scope: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client.scope +.. |.~.search| replace:: ``search()`` +.. _.~.search: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client.search +.. |.~.since| replace:: ``since()`` +.. _.~.since: https://my-magento.readthedocs.io/en/latest/search_module.html#magento.search.SearchQuery.since +.. |.~.until| replace:: ``until()`` +.. _.~.until: https://my-magento.readthedocs.io/en/latest/search_module.html#magento.search.SearchQuery.until +.. |.~.url_for| replace:: ``url_for()`` +.. _.~.url_for: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Client.url_for +.. |.~.views| replace:: ``views`` +.. _.~.views: https://my-magento.readthedocs.io/en/latest/clients.html#magento.clients.Store.views .. Title: MyMagento .. Description: A Python package that wraps and extends the Magento 2 REST API @@ -207,7 +207,7 @@ Main Components
-A |.`~.search`|_ is simpler than making |.`~.get`|_ requests, as the result will
-be wrapped by |.`~.APIResponse`|_ or other |.`~.Model`|_
+A |.~.search|_ is simpler than making |.~.get|_ requests, as the result will
+be wrapped by |.~.APIResponse|_ or other |.~.Model|_
.. code-block:: python
@@ -673,4 +675,3 @@ be wrapped by |.`~.APIResponse`|_ or other |.`~.Model`|_
-
diff --git a/docs/requirements.txt b/docs/requirements.txt
index 60b1e51..c2ba70f 100644
--- a/docs/requirements.txt
+++ b/docs/requirements.txt
@@ -4,5 +4,5 @@ docutils<0.17
myst-nb>=0.17.1
sphinx-sitemap>=2.5.0
sphinx-github-style>=1.0.2
-sphinx-readme>=0.2.1
+sphinx-readme>=1.1.0
sphinx-inlinecode
diff --git a/docs/source/interact-with-api.rst b/docs/source/interact-with-api.rst
index a898711..206d976 100644
--- a/docs/source/interact-with-api.rst
+++ b/docs/source/interact-with-api.rst
@@ -154,20 +154,19 @@ In addition to the predefined methods, you can also build your own queries
* The :meth:`~.since` and :meth:`~.until` methods allow you to further filter your query by date
-.. only:: readme or html
- .. admonition:: Example: Retrieve Orders Over $50 Placed Since the Start of 2023
- :class: example
+.. admonition:: Example: Retrieve Orders Over $50 Placed Since the Start of 2023
+ :class: example
- .. code-block:: python
+ .. code-block:: python
- >>> api.orders.add_criteria(
- ... field="grand_total",
- ... value="50",
- ... condition="gt"
- ... ).since("2023-01-01").execute()
+ >>> api.orders.add_criteria(
+ ... field="grand_total",
+ ... value="50",
+ ... condition="gt"
+ ... ).since("2023-01-01").execute()
- [ |