Code Monkey home page Code Monkey logo

apidocs's People

Contributors

artistan avatar eddturtle avatar f2m2rd avatar nickescobedo avatar stesvis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

apidocs's Issues

Object parameter

Hello, How I handle object parameter for example
@param object $user Required ?

Support for Laravel 5.2

Will this plugin supports Laravel 5.2 in the future?

Right now I tried to run php artisan apidocs:generate but it returns the following error:
Fatal error: Call to undefined method Illuminate\Routing\Route::beforeFilters().

It seems that Illuminate\Routing\Route::beforeFilters() is removed in 5.2. Any thoughts?

Generating no docs?

Hello,

thanks for this implementation for Laravel!

I#ve got a question about the usage of your plugin. Ill installed it like in your description, and when ill run php artisan it tells me "Api Docs have been generated!"

But there are no docs generated - my config the:
'view_target_path' => app_path('views'),
should be fine. But there are no docs. Do i need some more configuration?

Thanks in advance,
Dieter

Doesn't work with Route::controller

Hello,

is there any possibility to work with routing controller like:
Route::Controller('style', 'Api\ApiStyleController');

My structure is like
Api\ApiController -> this file handles requests and redirect to specific Controller , but when I do something like this:

    Route::group(['prefix' => 'api/'], function(){
         Route::Controller('style', 'Api\ApiStyleController');
         Route::Controller('account', 'Api\ApiAccountController');

    });

ApiDocs generate ApiStyle, ApiAccount but with methods from ApiController , don't know why :|

Edit 1:
As I see the problem is that my:
\Api\ApiStyleController extens \Api\ApiController, and APiDocs show only methods from ApiController, not from ApiStyleController, why ?

Edit 2:
As I see when I rename my methods to post/get etc like anyStyles in Api/ApiStyleController , I see methods from ApiController and this method form ApiStyleController, but I don't want to change methods names. Is this possible ?

How can I do that?
Best Regards,
Mateusz

APIDocs don't play nice with Dingo/API

API Docs aren't generated when using the Dingo/API, this probably has something to do with the Route::api being the route grouping override

Route::api(['version' => 'v1'], function () {

versus

Route::group(['prefix' => 'api/v1'], function(){

Documentation laravel 4.2 composer.json file requirements

Hello there,

I think you got the version wrong on the first step of the Laravel 4.2 installation. You said to add this to the composer.json file:
"f2m2/apidocs": "dev-master"

I checked on packagist just to make sure because it wasn't working, and tried puting this:
"f2m2/apidocs": "1.*"
It still didn't work, so I tried it with
"f2m2/apidocs": "1.0"
and it's still not working.
The error I'm getting is:

Problem 1
- Installation request for f2m2/apidocs 1.0 -> satisfiable by f2m2/apidocs[1.0].
- f2m2/apidocs 1.0 requires illuminate/support 4.2.* -> satisfiable by illuminate/support[4.2.x-dev, v4.2.0-BETA1, v4.2.1, v4.2.12, v4.2.16, v4.2.17, v4.2.2, v4.2.3, v4.2.4, v4.2.5, v4.2.6, v4.2.7, v4.2.8, v4.2.9] but these conflict with your requirements or minimum-stability.

I'm on laravel version 4.2.19, could I get some help ?

thanks you !

Specific Route

When i try this. F2m2 generate APIDocs for all my route. Can i define some specific route? by prefix maybe?

Can't update

Hi.
I have tried making documentation for my project, but it won't update.
The initial generation went fine and i got my documentation. But if i make changes, they dont show.
I have tried to shut down the server, then run php artisan apidocs:generate, and then restart the server. No luck. Do you have an idea what's wrong?
Another thing, is it possible to make other types of annotations? Like header parameters and queryparams?
Otherwise awesome library :)

Support for Laravel 5.1?

Does this support Laravel 5.1? I cannot install through composer due to the composer dependency restrictions

Generate example response throwing 404

Hi,

I generated the api docs successfully, I can see the list of all the APIs with the descriptions, but when I click on "Generate example response" i always get a 404 error

image

That happens on all the API endpoints I have, even if the end point works fine and returns a json object.
When I try it in my localhost, it works perfectly.

image

How can I solve this?

Thanks!

Which types of parameters are supported?

Hello,

when ill try to use:
* @return int test to return something
Ill dont see any changes in the result. Which properties are supported?

For me only comments and @param is working? Is that correct, or do i something wrong?
Thanks in advance.

Support group function in doc

screen shot 2017-03-29 at 1 47 25 pm

screen shot 2017-03-29 at 1 47 47 pm

I want group 2 group: API For App and API for POS
Do you help me ?

I research but i not found it.

Thanks you very much.

Unable to generate on laravel 5.5

I'm unable to generate API on laravel 5.5 (Fresh install)

[ReflectionException]
Method F2m2\Apidocs\Commands\ApiDocsGeneratorCommand::handle() does not exist

Please help

Outdated dependency.

Hi.

Is there a reason that you are using so old a version of reflection-docblock? You are depending on version 2.0 ish, and they are up to 4.3 atleast.

Laravel 5.1

¿This version is compatible with laravel 5.1?

Docs error

Hello,

I see mistake in readme.
Seem 'F2m2\Apidocs\ApidocsServiceProvider' niot correct namespace.
You should better use this one
Fontenele\Apidocs\ApidocsServiceProvider

Regards,
Dmitry

secure_asset

Hello,

The website is in https, and each time I run the commande: apidocs:generate is overriding my includes/docs/api/head.blade.php and putting the asset( instead of the secure_asset(.

Can you please add an option to not override the head? or and option to enable the secure_asset?

Thank you,

Documentaion for DocBlock?

Hello love your work but how do I documenbt JSON based api ? the parameters are in JSON not sure who to write that?

thanks

Laravel 4.2 couldn't integrate

For now, it just support for Laravel 5 only:

f2m2/apidocs dev-master requires illuminate/support 5.* -> satisfiable by illuminate/support[v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4, v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.6, v5.1.8].

Error occured while executing the generate command

My application runs with laravel5.1 and wants to have a try with this apidocs.
When i ran php artisan apidocs:generate, it gave me:
[Illuminate\Contracts\Filesystem\FileNotFoundException]
File does not exist at path vendor/f2m2/apidocs/src/templates/docs/index.blade.php

i manually created this file but the error still there.
Any help?

Can't resolve assets

Hello, super cool package, but i have an problem that i hope you can solve.
Everything works great when i deploy my APIs to nginx and the API sits in the root folder.

Since we version our APIs by url, I tried to install the api documentation in our /v1.2 subfolder, and it breaks all the CSS and JS paths.

You can see it here: https://spokes.veloguide.com/v1.2/docs

How can it be resolved? It looks like the generated view is using some hardcoded relative paths instead of using asset('my_path')

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.