Creating a custom api handle

Hi there,

i want to create a custom api handle in frappe like:

/api/items/args instead of

/api/method/my_app.foo.bar.get_item_info?=args

i found this thread: How to change app.py behavior sadly given file is missing, so i cant look it up.

how can i overwrite this in my init.py?
thank you in advance

jch4nni

1 Like

I want same, Have you found any solution?

Hello Friends

i try to create a api endpoint at the moment and i think that could be the solution.
Go to you app https://your_domain/app/server-script

and create new api script test_method

frappe.response[‘message’] = “hello”

make Request: /api/method/test_method

https://docs.erpnext.com/docs/v13/user/manual/en/customize-erpnext/server-script

i come from javascript and i don’t know yet how to use all the python methods, sorry.

Maybe can somebody recommend a good tutorial herefor