Prestashop webservice создать Заказчик - PullRequest
0 голосов
/ 14 июня 2019

Я пытаюсь создать клиента из почтальона, чтобы проверить веб-сервис Prestashop следующим образом в методе post,

**http://mysiteurl.com/api/customers?schema=blank&output_format=JSON&ws_key=my_site_ws_key**

{ "passwd"    : "vivek@lmx",
  "lastname"  : "S",
  "firstname" : "Vivek",
  "email"     : "vivek@logimaxindia.com"
}

Но он отвечает как

{
    "errors": [
        {
            "code": 27,
            "message": "Resource of type \"customers\ufeff\" does not exists. Did you mean: \"customers\"? The full list is: \"addresses\", \"carriers\", \"cart_rules\", \"carts\", \"categories\", \"combinations\", \"configurations\", \"contacts\", \"content_management_system\", \"countries\", \"currencies\", \"customer_messages\", \"customer_threads\", \"customers\", \"customizations\", \"deliveries\", \"employees\", \"groups\", \"guests\", \"image_types\", \"images\", \"languages\", \"manufacturers\", \"messages\", \"order_carriers\", \"order_details\", \"order_histories\", \"order_invoices\", \"order_payments\", \"order_slip\", \"order_states\", \"orders\", \"price_ranges\", \"product_customization_fields\", \"product_feature_values\", \"product_features\", \"product_option_values\", \"product_options\", \"product_suppliers\", \"products\", \"search\", \"shop_groups\", \"shop_urls\", \"shops\", \"specific_price_rules\", \"specific_prices\", \"states\", \"stock_availables\", \"stock_movement_reasons\", \"stock_movements\", \"stocks\", \"stores\", \"suppliers\", \"supply_order_details\", \"supply_order_histories\", \"supply_order_receipt_histories\", \"supply_order_states\", \"supply_orders\", \"tags\", \"tax_rule_groups\", \"tax_rules\", \"taxes\", \"translated_configurations\", \"warehouse_product_locations\", \"warehouses\", \"weight_ranges\", \"zones\""
        }
    ]
}

Нокогда я проверяю https://mysiteurl.com/api, показывая приведенный выше результат и имея все разрешения и права,

<customers xlink:href="https://bhimajewellery.com/new/api/customers" get="true" put="true" post="true" delete="true" head="true">
<description xlink:href="https://bhimajewellery.com/new/api/customers" get="true" put="true" post="true" delete="true" head="true"> The e-shop's customers</description>
<schema xlink:href="https://bhimajewellery.com/new/api/customers?schema=blank" type="blank"/>
<schema xlink:href="https://bhimajewellery.com/new/api/customers?schema=synopsis" type="synopsis"/>
</customers>

Я не знаю, как создать клиента из почтальона путем доступа к веб-службе prestashop.Если я знаю это, то только я могу передать значения в веб-сервис из моего приложения ionic 3 и создать клиента для моего приложения для Android.Пожалуйста, помогите кому-нибудь в этом.

...