Apidoc: filename leak/include absolute path to file

Created on 22 May 2020  路  4Comments  路  Source: apidoc/apidoc

using version 0.22.1 to generate the apidoc:

my api_data.json contains the following data:

"version": "0.0.0",
"filename": "/xxx/xxx/xxxx/XxxxController.php",
"groupTitle": "Xxxx",

why does it include the full path of my file?

the information is not used in the interface and I think it's a leak of unnecessary information

feature request question

All 4 comments

I have relative paths in mine:

2020-06-05-055454_433x62_scrot

It turns out that if you use a full path for the -i param, you'll get full path in the api_data.json.

So the solution here is to use a relative path ;)

isn't that also leak of unnecessary information?
src/controllers/ApiController.php

what is the filename used for? I don't see it anywhere in the UI
Perhaps it could just be removed?

@gemal It is not used in the current public template. I used it in internal documentations to link to files and sourcecode.

But we can think about to add an option / filter to remove or add such data.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Znarkus picture Znarkus  路  7Comments

a-tonchev picture a-tonchev  路  4Comments

danielchirinos picture danielchirinos  路  7Comments

kingmayko picture kingmayko  路  3Comments

Jimbolino picture Jimbolino  路  6Comments