Inhalte aufrufen

Profilbild

[Problem] Insert a record into Product table


  • Bitte melden Sie sich an, um eine Antwort zu verfassen.
3 Antworten zu diesem Thema

#1 ltbaogt

ltbaogt

    Newbie

  • Members
  • Punkt
  • 3 Beiträge

Geschrieben: 23 April 2014 - 06:28

Hello !!

 

I try to insert a record into Product table through database directly , new record showed on homepage but I ubable to click view detail of product ulti I click SAVE button of this product .

Pleasea suggest me a way to insert record Prodcut into database directly.

Thanks for Regards ! ! !



#2 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3801 Beiträge

Geschrieben: 23 April 2014 - 12:38

You have to insert a UrlRecord for each product too.


Bearbeitet von Marcus Gesing, 20 May 2014 - 10:45,
Unclear information.

Marcus Gesing

Smartstore AG


#3 Ulrich Kirchhoff

Ulrich Kirchhoff

    Neuer Benutzer

  • Members
  • Punkt
  • 1 Beiträge

Geschrieben: 20 May 2014 - 08:04

Ich bin nicht in der Lage ein UrlRecord über die WebApi von SmartStore.net anzulegen. Ein Produkt lässt sich über die WebApi problemlos anlegen.

Der HttpWebResponse nach dem Aufruf (post) zum anlegen eines UrlRecords ist immer leer. Gibt es da eine Restriktion?

 

I am not able to insert an UrlRecord by WebApi from SmartStore.net. A product makes no problems.

The HttpWebResponse after the post call for creating (insert) a UrlRecord is always empty. Is this a restriction of the WebApi?



#4 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3801 Beiträge

Geschrieben: 20 May 2014 - 10:37

Insert, update and delete on UrlRecord entities are not allowed through the API for security purposes. The API returns a http status code 403 if you try to do so.
 
Actually the API should add an UrlRecord automatically if you try to insert a sluged resource like a product. I've created an issue.

Marcus Gesing

Smartstore AG