this is absolutely insane!!! I understand capturing the REST api network part, is it then examining the request body, headers being sent back and forth to figure out the API?
Show HN: Mitmproxy2swagger – Automagically reverse-engineer REST APIs
11–20 of 87 posts
Re: Show HN: Mitmproxy2swagger – Automagically reverse-engineer REST APIs
#12Re: Show HN: Mitmproxy2swagger – Automagically reverse-engineer REST APIs
#13Re: Show HN: Mitmproxy2swagger – Automagically reverse-engineer REST APIs
#14Can this be used to generate a REST documentation for your own frontend just by interacting with it? This should be augmented via a crawler, that click everyclickable element recursively.
Re: Show HN: Mitmproxy2swagger – Automagically reverse-engineer REST APIs
#15Can this be used to generate a REST documentation for your own frontend just by interacting with it? This should be augmented via a crawler, that click everyclickable element recursively.
Totally, but you would need to do some manual cleanup and naming afterwards to make it more useful than just reading the source code. You could also for example use your integration tests if you have some to capture as much routes as possible.
Re: Show HN: Mitmproxy2swagger – Automagically reverse-engineer REST APIs
#16This looks amazing. Will it also capture data types like enumerators by someway detecting patters?
Re: Show HN: Mitmproxy2swagger – Automagically reverse-engineer REST APIs
#17This looks amazing. Will it also capture data types like enumerators by someway detecting patters?
I thought about it, but it would be hard to distinguish between an enumerator and just static data. For example if you logged in with only one account it could classify the "username" field as an enumeration, because there is only one captured value.
Re: Show HN: Mitmproxy2swagger – Automagically reverse-engineer REST APIs
#18little bit off-topic, but do anybody know of something similar for soap/wsdl? I'm aware of soapui mock service.