My team is a website. Most of my colleagues are responsible for writing front-end js and others. I am responsible for writing php api interfaces on the server. I saw this problem just now: segmentfault. comq100000004477444 so I was curious to know if there was any corresponding call for the back-end api... my team is a website. Most of my colleagues are responsible for writing front-end js and others. I am responsible for writing php api interfaces on the server.
I saw this problem just now: https://segmentfault.com/q/1010000004477444
So I was curious to find out if there were any debugging tools for backend APIs?
Because all interfaces I write now receive js json requests and return json. Although it is relatively simple, the test volume is relatively large.
I now write shell at the underlying layer to simulate front-end ajax requests. The number of interfaces is too large to maintain.
Is there any debugging tool for backend APIs?
Supplement: You should not mention postman any more. The links are full of postman, and we all know it.
Reply content:
My team is a website. Most of my colleagues are responsible for writing front-end js and others. I am responsible for writing php api interfaces on the server.
I saw this problem just now: https://segmentfault.com/q/1010000004477444
So I was curious to find out if there were any debugging tools for backend APIs?
Because all interfaces I write now receive js json requests and return json. Although it is relatively simple, the test volume is relatively large.
I now write shell at the underlying layer to simulate front-end ajax requests. The number of interfaces is too large to maintain.
Is there any debugging tool for backend APIs?
Supplement: You should not mention postman any more. The links are full of postman, and we all know it.
Mac can be usedPaw
This app
Postman
Advanced rest client
Push curl and bat in command line
Google plugin DHC
Postman is easy to use.
Chrom browser plug-in postman
Api content can be grouped.
This solves the problem that your interface quantity is too large to be maintained.
This link provides a detailed introduction
Http://chromecj.com/web-development/2014-09/60.html
2.Use the network function of the chrom F12 shortcut.
During debugging, I am basically reading http request and response
3.Add log in php code
View request parameters, returned data, and so on.
The bug encountered after the project was launched basically solved by analyzing logs.
If you have other questions, you can add comments. If there is something wrong with me, I 'd like to point it out.
Why not use postman?
Do you want to try this? I like it, but I have been using it for a long time. It is convenient and easy to use.
DHC (aka Dev HTTP Client), plug-in
I have been using postman.
Postman chrome plugin https://www.google.com.hk/url? Sa = t & CTS = j & q = & esrc = s & source = web & cd = 1 & ved = 0ahUKEwja49yXnNHLAhUiOJoKHRXuDdQQFggaMAA & url = https % 3a % 2f % 2 fchrome % 2 egoogle % 2 ecom % 2 fwebstore % 2 fdetail % 2 fpostman % 2 %%3fhl % 3den & usg = signature & sig2 = 5FGsqB336q6SzsSZTddNSA
Postman
Postman + Charles, which provides powerful interface debugging
Postman. I have been using it. It's basically enough. You can upload images and files.
This tool is easy to use !!!! Processing of images and other items is quite convenient !! Www.huazhu8.com