Rest API docs?
-
When looking at the routes in my new bagisto installation v1.4.3 I see things as
GET api/v1/admin/sales/orders Webkul\RestApi\Http\Controllers\V1\Admin\Sale\OrderController@allResources GET api/v1/admin/sales/orders/{id} Webkul\RestApi\Http\Controllers\V1\Admin\Sale\OrderController@getResource POST api/v1/admin/sales/orders/{id}/cancel Webkul\RestApi\Http\Controllers\V1\Admin\Sale\OrderController@cancel POST api/v1/admin/sales/orders/{id}/comments Webkul\RestApi\Http\Controllers\V1\Admin\Sale\OrderController@comment GET api/v1/admin/sales/shipments Webkul\RestApi\Http\Controllers\V1\Admin\Sale\ShipmentController@allResources
When trying to look in the project to the "Webkul\RestApi\Http\Controllers\V1\Admin\Sale\OrderController" I can't find this file? When I look at what I can find on the internet I come across this package https://github.com/bagisto/rest-api?
Where can I find the files? What is a correct way of setting it up etc?
Thanks in advance!
Greets,
Alex
-
Hi there,
you can find the file path for multiple Global functions below-//vendor-> Bagisto-> Rest-API -> src-> Traits
-
@Amitk-Webkul
it does not run (I found the rest api in the vendors )
but github docs does not explain how to run, the URL gives not found
SANCTUM_STATEFUL_DOMAINS=http://localhost:8014/shopwire/publichttp://localhost:8014/shopwire/public/api/shop/documentation
-
Hello there,
Greeting for the Day!
While using a virtual server there is no need to add folder name and public after the virtual server URL.
Just hit the virtual URL and add the API endpoint.
If still facing the same please let us know.
-
@Amitk-Webkul it worked thanks a lot
http://127.0.0.1:8000/api/shop/documentation
but how can I run it on shared hosting?
the URL would be like:
domain.com/api/shop/documentation
? -
Hi @ahdhilali,
Yes, the URL will be the same on hosting as the Domain name and API endpoint.