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

Bagisto

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

Best way to create a new API with bagisto/rest-api package

General Discussion
2
2
100
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.
  • F
    Filex last edited by 27 Nov 2024, 18:03

    Hi there,
    I'm fresher in your package, so now I'm reusing your package both of UI and rest-api packages.
    But in my case, I'd like to create a new API that allow admin to register a new account. Currently, there is not register API for admin role in your package, so I'm planning to implement a new one.

    I'm hesitating with 2 options that should I create a new module then add this register API into that (as image below) or write it into Webkul/Admin.

    66e3c4b8-e299-4d87-9586-fa80a4f32f17-image.png

    Note that in the future, maybe I'll also need to implement more API
    Please tell me what is the best way to implement that.

    1 Reply Last reply Reply Quote 0
    • Rishabh-Webkul
      Rishabh-Webkul last edited by 3 Dec 2024, 07:03

      Hello @Filex

      That depends on you either you can create it from the admin end or you can also create it after creating a package.

      If you create by package creation then it will be easy to use in case in the future if you have done a new setup it will run by adding the package.

      Thanks & Regards

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