• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

  • Register
  • Login
  • Search
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups

Rest API docs?

Knowledge Base
3
6
1.1k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    alex3005 last edited by 17 Mar 2023, 14:50

    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

    1 Reply Last reply Reply Quote 0
    • 2 months later
    • A
      Amitk-Webkul last edited by 2 May 2023, 14:04

      Hi there,
      you can find the file path for multiple Global functions below-

      //vendor-> Bagisto-> Rest-API -> src-> Traits

      ahdhilali 1 Reply Last reply 6 Aug 2023, 18:55 Reply Quote 0
      • 3 months later
      • ahdhilali
        ahdhilali @Amitk-Webkul last edited by 6 Aug 2023, 18:55

        @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/public

        http://localhost:8014/shopwire/public/api/shop/documentation

        1 Reply Last reply Reply Quote 0
        • A
          Amitk-Webkul last edited by 7 Aug 2023, 05:42

          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.

          ahdhilali 1 Reply Last reply 7 Aug 2023, 08:04 Reply Quote 0
          • ahdhilali
            ahdhilali @Amitk-Webkul last edited by 7 Aug 2023, 08:04

            @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
            ?

            A 1 Reply Last reply 7 Aug 2023, 09:39 Reply Quote 0
            • A
              Amitk-Webkul @ahdhilali last edited by 7 Aug 2023, 09:39

              Hi @ahdhilali,

              Yes, the URL will be the same on hosting as the Domain name and API endpoint.

              1 Reply Last reply Reply Quote 0
              3 out of 6
              • First post
                3/6
                Last post