Coder Social home page Coder Social logo

api-tester's People

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

Watchers

 avatar  avatar  avatar  avatar

api-tester's Issues

兼容

  • Can only install one of: encore/laravel-admin[1.5.x-dev, v1.7.9].
    • Can only install one of: encore/laravel-admin[v1.7.9, 1.5.x-dev].
    • Can only install one of: encore/laravel-admin[1.5.x-dev, v1.7.9].
    • Conclusion: install encore/laravel-admin 1.5.x-dev

搜索栏提交报错

<form action="#" method="post"><div class="input-group"><input type="text" name="message" placeholder="Type Url ..." class="form-control filter-routes"><span class="input-group-btn"><button type="button" class="btn btn-primary btn-flat"><i class="fa fa-search"></i></button></span></div></form>

搜索栏按按钮不能提交,回车键便会POST,报错
Symfony \ Component \ HttpKernel \ Exception \ MethodNotAllowedHttpException
No message
protected function methodNotAllowed(array $others)
{
throw new MethodNotAllowedHttpException($others);
}

Not Compatible with Laravel-admin 1.8.*

I got error while trying to install api-tester on Laravel-admin 1.8.*

Problem 1 - Installation request for laravel/framework (locked at v6.18.26, required as ^6.2) -> satisfiable by laravel/framework[v6.18.26]. - Installation request for laravel-admin-ext/api-tester ^1.0 -> satisfiable by laravel-admin-ext/api-tester[v1.0, v1.0.1, v1.0.2]. - Can only install one of: encore/laravel-admin[1.5.x-dev, v1.8.1]. - Can only install one of: encore/laravel-admin[v1.8.1, 1.5.x-dev]. - Can only install one of: encore/laravel-admin[1.5.x-dev, v1.8.1]. - Conclusion: install encore/laravel-admin 1.5.x-dev - Installation request for encore/laravel-admin 1.8.1 -> satisfiable by encore/laravel-admin[v1.8.1].

建议

希望 config 中增加上传文件开关、Login as 开关,使 api-tester 权限更可控扩展使用范围。十分感谢!

options 颜色列表不存在导致的 bug

我在路由中定义了一个 options 的路由 ,在打开 api-test 模块后报错 Undefined index: OPTIONS

vendor/laravel-admin-ext/api-tester/src/ApiTester.php

   public static $methodColors = [
        'GET'    => 'green',
        'HEAD'   => 'gray',
        'POST'   => 'blue',
        'PUT'    => 'yellow',
        'DELETE' => 'red',
        'PATCH'  => 'aqua',
    ];

vendor/laravel-admin-ext/api-tester/resources/views/index.blade.php

@foreach($routes as $route)
    @php ($color = Encore\Admin\ApiTester\ApiTester::$methodColors[$route['method']])
        <li class="route-item"
            data-uri="{{ $route['uri'] }}"
            data-method="{{ $route['method'] }}"
            data-method-color="{{$color}}"
            data-parameters='{!! $route['parameters'] !!}' >
            
            <a href="#"><b>{{ $route['uri'] }}</b>
            <div class="pull-right">
                <span class="label bg-{{ $color }}">{{ $route['method'] }}</span>
            </div>
            </a>
        </li>
@endforeach

Is this repo still under maintenance

this package has compatibility issues since Laravel 6.x, and now Laravel 7.x either. If this package is no longer maintained I would remove it forever from my project.

array_get is incompatible with laravel 6.0+

At lines 33, 34, 42 of src/ApiTesterCotroller.php and 268 of src/ApiTester.php function array_get is used. It breaks in any versions of Laravel newer than 6.0. It's fixed by replacing it with function Arr:get (and adding "use Illuminate\Support\Arr;").
I would make a new branch for newer versions of Laravel, but I'm too shit with git to make a proper pull request

api/user 报错

api/user

InvalidArgumentException
Route [login] not defined.

protected function methodNotAllowed(array $others)
{
    throw new MethodNotAllowedHttpException($others);
}

API auth driver 用的是passport

config里
'user_retriever' => function ($id) { return \App\User::find($id); }

php artisan config:cache 会报错,config里不能用closure。
然后API auth driver 用的是passport,没有retrieveById 函数

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.