Bagisto Forum

    Bagisto

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

    Rest API docs?

    Knowledge Base
    3
    6
    478
    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

      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
      • A
        Amitk-Webkul last edited by

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

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

        ahdhilali 1 Reply Last reply Reply Quote 0
        • ahdhilali
          ahdhilali @Amitk-Webkul last edited by

          @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

            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 Reply Quote 0
            • ahdhilali
              ahdhilali @Amitk-Webkul last edited by

              @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 Reply Quote 0
              • A
                Amitk-Webkul @ahdhilali last edited by

                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
                • First post
                  Last post