Page 1 of 1
Problems with REST endpoints
Posted: Tue Apr 23, 2013 5:26 am
by ANITHA
Hi all There are problems with these endpoints
1./catalog/product/{id}/related-products/upsale
2./catalog/sku/{id}/sku-attributes
3./catalog/product/{id}/related-products/crosssale
4./catalog/category/{id}/media
5./cart ........till /cart/checkout/payment/response
not working . these endpoints either return null or leave an error mesage saying method not allowed. wat should be done?
pls help!!
Re: Problems with REST endpoints
Posted: Tue Apr 23, 2013 1:04 pm
by phillipuniverse
Are you positive that there are actually values in the database (you can verify in the admin) for the values that you are testing? If you are hitting /catalog/product/100/related-products/upsale, then are there actually items in the 'upsale' list for product ID 100?
Can you give more information on what you mean by 'method not allowed'?
Re: Problems with REST endpoints
Posted: Wed Apr 24, 2013 2:26 am
by ANITHA
tell me about technologies involved in UI !
Re: Problems with REST endpoints
Posted: Wed Apr 24, 2013 2:39 am
by ANITHA
when i try to hit those endpoints i get an error message like the one in attached file
- Doc2.zip
- (257.59 KiB) Downloaded 700 times
.
Suggest me wat to do .
Re: Problems with REST endpoints
Posted: Wed Apr 24, 2013 9:18 am
by phillipuniverse
That particular endpoint (/api/cart/offer) in CartEndpoint is annotated with the following:
Code: Select all
@POST
@Path("offer")
public OrderWrapper addOfferCode(@Context HttpServletRequest request,
@QueryParam("promoCode") String promoCode,
@QueryParam("priceOrder") @DefaultValue("true") boolean priceOrder) {
The @Post means that it will only respond to POST methods. You will also have to pass in, at the least, a promoCode parameter. It looks like you have sent a GET request (which is why you're getting the 'Method Not Allowed') and have also not specified a promoCode query parameter.
Re: Problems with REST endpoints
Posted: Thu Apr 25, 2013 4:10 am
by ANITHA
Hi
i didnt get u.Can u send me an instance? like example url or endpoints.!!
Re: Problems with REST endpoints
Posted: Fri Jul 17, 2015 6:27 am
by chintan.pandya
Hi.
Is it Possible to extend the cart endpoint to get Image of product in JSON response of get cart endpoint?