Comments (9)
apiato version : 12.0.0
Documentation container : 3.0.0
apidoc: 1.0.0
from apiato.
Windows 10
Configs
folder exists in this path
But it still doesn't work
from apiato.
ENOENT: no such file or directory, stat 'C:\laragon\www\reemod-api\app\Containers/Vendor/Documentation/ApiDocJs/Config
s/apidoc.public.json'
This does look like a directory separator problem. When running PHP in a Unix-like OS (bare, container or the WSL), slashes will be expected as directory separators. But when running PHP directly on Windows with Laragon or XAMPP, backslashes are expected as directory separators. In this case it looks like both are mixed and Windows probably does not find the files this way. I think a refactor using PHPs DIRECTORY_SEPARATOR
constant will fix this problem.
from apiato.
@pedram-shariat Could you please tell your Apiato, Documentation container & ApiDocJs versions?
from apiato.
@pedram-shariat What is your OS?
Try to create the Config
folder at app/Containers/Vendor/Documentation/ApiDocJs/
and rerun the command.
Please tell me if this fixes your problem so I can develop a fix later. 🙏
from apiato.
I'm facing same issue here
from apiato.
I just released a possible fix based on @yalsicor findings but I cannot test it because I am using WSL.
@Anas-Nabulsi could you please do a composer update
and see if it is fixed?
Thanks.
from apiato.
@Mohammad-Alavi
Now I'm receiving the following error:
`
file_put_contents(/C:\Users\APP_PATH\app\Containers\Vendor\Documentation\ApiDocJs\Configs\apidoc.public.json): Failed to open stream: No such file or directory
at app\Containers\Vendor\Documentation\Tasks\RenderApidocJsonTask.php:85
81▕ if (!is_dir($dir) && !mkdir($dir)) {
82▕ throw new \RuntimeException(sprintf('Directory "%s" was not created', $dir));
83▕ }
84▕ }
➜ 85▕ file_put_contents("{$dir}/{$file}", $contents);
86▕ }
87▕ }
88▕
1 app\Containers\Vendor\Documentation\Tasks\RenderApidocJsonTask.php:85
2 app\Containers\Vendor\Documentation\Tasks\RenderApidocJsonTask.php:62
App\Containers\Vendor\Documentation\Tasks\RenderApidocJsonTask::fileForceContents("", "{"name":"apiato","description":"apiato (Public API) Documentation","title":"Welcome to apiato","version":"1.0.0","url":"http://api.apiato.test","sampleUrl":"http://api.apiato.test","template":{"withCompare":true,"withGenerator":true},"header":{"title":"API Overview","filename":"Containers/Vendor/Documentation/UI/WEB/Views/documentation/header.md"},"order":[]}")
`
note APP_PATH is just a placeholder for the actual app path.
There seem to be a missing file called apidoc.public.json and a missing folder called Configs.
I tried to create the folder Configs under ApiDocJs and an empty apidoc.public.json.
But when I run php artisan apiato:apidoc again the file gets deleted and I receive the same error.
from apiato.
Thanks to @Anas-Nabulsi
This is fixed in v3.0.5.
Please do a composer update
to get the fix.
from apiato.
Related Issues (20)
- Composer require problem with requirements
- Installing on cPanel HOT 1
- Search is not working in RequestCriteria HOT 2
- Laravel Passport PKCE HOT 2
- microservice projects HOT 2
- Add Laravel 10 support HOT 6
- Swagger Generator HOT 2
- Your requirements could not be resolved to an installable set of packages
- how to handle relationship HOT 3
- UUID , instead of Hashed Id
- Hash ids error when using "in" operator HOT 2
- Cli generator does not support `criteria` currently
- Why i am getting "Welcome to Apiato" message even after specifying route end point HOT 1
- API Test Error: "The requested Resource was not found." HOT 5
- Custom Model primaryKey not working! HOT 2
- Installation Error via Composer
- No hint path defined for [mail] HOT 1
- Invalid key supplied HOT 2
- Repository delete() ModelNotFoundException is never thrown
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apiato.