Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

In API can't call update service Item

Dhaval   ( User )

Commented 5 years ago

When i am calling api with parameter like below

URL:- http://localhost:8888/akaunting/api/items/1?company_id=1
Method:- PATCH
Body:- {
"name": "Jhon",
"sku": "JSHON23232",
"description": "Baby powder",
"sale_price": 12.56,
"purchase_price": 4.5,
"quantity": 1000,
"enabled": 1,
"company_id": 1,
"tax_id": null,
"category_id": null
}


Header:-

authorization: Basic
content-type:application/json


Result :-
Always return "No query results for model [App\Models\Common\Item]."

Dhaval   ( User )

Commented 5 years ago

Please help if any one can help because i check middleware not calling so it's give me these error has any one get these issue

Denis Dulici   ( Admin )

Commented 5 years ago

Hello Dhaval,

Does the GET method work?

Regards

Dhaval   ( User )

Commented 5 years ago

I check it and solve my problem and only PUT & Delete method not working.

Flo   ( User )

Commented 5 years ago

How did you solve your problem?

Please login or register to leave a response.

Showing 1 to 5 of 5 discussions