Giter Site home page Giter Site logo

Comments (14)

saminanirmala avatar saminanirmala commented on August 15, 2024 2

Is this issue solved ?? I am also getting same error

from blueprint.

seanmangar avatar seanmangar commented on August 15, 2024 1

This seems to have been merged: https://github.com/dingo/blueprint/pull/44/files/81acaf5159a0447509f71bc17a2ee5732f73de66

from blueprint.

itsnotvalid avatar itsnotvalid commented on August 15, 2024 1

@seanmangar merged but still on master. Is any releases planned yet?

from blueprint.

mmswiderski avatar mmswiderski commented on August 15, 2024

Hello.

it's look like Laravel changed default order of values in array_first function:

Key / Value Order Change

The first, last, and where methods on the Arr class now pass the "value" as the first parameter to the given callback Closure. For example:

Source: https://laravel.com/docs/5.3/upgrade#upgrade-5.3.0

I created a patch that addresses this issue: #44

from blueprint.

MelonSmasher avatar MelonSmasher commented on August 15, 2024

I'm getting this error too.

from blueprint.

jsdecena avatar jsdecena commented on August 15, 2024

So no one from the core is actually looking to fix this?

from blueprint.

stojankukrika avatar stojankukrika commented on August 15, 2024

Can you a release a new version with that code version because it didn't work now, need to be a new version?
But if you copy that code directly in package, it's works!

from blueprint.

eness avatar eness commented on August 15, 2024

waiting for the master to merge this...

from blueprint.

hskrasek avatar hskrasek commented on August 15, 2024

Tagged 0.2.1 which includes this fix, as well as other adjustments.

from blueprint.

silasrm avatar silasrm commented on August 15, 2024

Hi @hskrasek,

I'm using dingo/api and dingo/blueprint version is 0.2.2 and this error still exist:

➜  git:(master) ✗ php artisan api:docs                    
                                               
  [RuntimeException]                            
  No HTTP method given, invalid API blueprint. 

Any solution?

from blueprint.

purocean avatar purocean commented on August 15, 2024

@silasrm Try post => Post and get => Get and so on. May help you.

from blueprint.

silasrm avatar silasrm commented on August 15, 2024

Hi @purocean,

Same problem. I change method in annotations like this:

// before
/**
     * Return status of API
     *
     * Get a JSON with represetation of status of API
     *
     * @GET("/")
     * @Transaction({
     *      @Request(),
     *      @Response(200, body={"status": "OK"})
     * })
     */

// after
/**
     * Return status of API
     *
     * Get a JSON with represetation of status of API
     *
     * @get("/")
     * @Transaction({
     *      @Request(),
     *      @Response(200, body={"status": "OK"})
     * })
     */

I'm wrong?

from blueprint.

purocean avatar purocean commented on August 15, 2024

@silasrm use Get()

from blueprint.

silasrm avatar silasrm commented on August 15, 2024

@purocean sorry for delay!
With Get() is OK :D

Thks!

from blueprint.

Related Issues (20)

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.