Generating from existing API

Hey there, just found API Dog and it looks like exactly what I was looking for. Great UI.

I have an existing API that I need to document. If I’m not mistaken, I should be able to use debug mode to generate the API through successive requests/responses. Is that accurate?

Assuming yes:

I’m configuring the response against my locally hosted API. The Auth API expects json body. I’ve configured the json body and selected the mocks for email/password.

The configuration allows for setting a mock which I thought was cool, basically allowing me to use fake data. But when I look at the value, it has empty strings.

Does the “mock” section of the request body do what I think it does?

Yes, you are right. For detailed information, please check here: Send requests in Apidog - Apidog Docs

Thanks for the feedback. It would be helpful if you could provide your steps and screenshots.

I configure the data schema and mocks like this:


Then I click “value”:


Then “Generate Automatically”


I’d expect the fields to get fake values. Though I did realize I could use the “Insert Dynamic Value” option to add faker values

The mock is written incorrectly. You can click on the text box to select/search for the mock you need from the drop-down menu.

I did select from the drop-down. I typed email and that’s the mock that was provided.

Thanks for your feedback. We have plans to optimize the GraphQL experience.

Here’s what I get when I type email:


If that’s not the correc syntax, what is?

Toppsdown , The faker syntax which you have provided is correct. You might have to check if the correct drop down is selected under “Generate Automatically”.


Yep I have that option selected

I know. We have plans to optimize the experience.

Sorry, I didn’t understand what you meant when you said “optimize the graphql experience”. Not sure how it’s related to the mocking/automatic sample data generation.

Sorry,what I mean is that we have plans to optimize the experience related to automatic generation.

got it, thanks will do it manually for now