Giter Site home page Giter Site logo

Comments (4)

kazegusuri avatar kazegusuri commented on May 2, 2024

This issue is variable cannot be captured from multiple path components when using {uuid=**}, right?
I tried and it worked correctly with changing examples to {uuid=**} and small server change about uuid generation. something misunderstanding?

$ curl -d @body.json -H 'Content-Type: application/json' localhost:8080/v1/example/a_bit_of_everything
{"uuid":"foo/1fb1b956a11ac231deb7270b9f792db201f4c4a1797ff2b1","nested":[{"name":"bar","amount":10},{"name":"baz","amount":20}],"float_value":1.5,"double_value":2.5,"int64_value":4294967296,"uint64_value":9223372036854775807,"int32_value":-2147483648,"fixed64_value":9223372036854775807,"fixed32_value":4294967295,"bool_value":true,"string_value":"strprefix/foo","uint32_value":4294967295,"sfixed32_value":2147483647,"sfixed64_value":-4611686018427387904,"sint32_value":2147483647,"sint64_value":4611686018427387903}
$ curl localhost:8080/v1/example/a_bit_of_everything/foo/1fb1b956a11ac231deb7270b9f792db201f4c4a1797ff2b1
{"uuid":"foo/1fb1b956a11ac231deb7270b9f792db201f4c4a1797ff2b1","nested":[{"name":"bar","amount":10},{"name":"baz","amount":20}],"float_value":1.5,"double_value":2.5,"int64_value":4294967296,"uint64_value":9223372036854775807,"int32_value":-2147483648,"fixed64_value":9223372036854775807,"fixed32_value":4294967295,"bool_value":true,"string_value":"strprefix/foo","uint32_value":4294967295,"sfixed32_value":2147483647,"sfixed64_value":-4611686018427387904,"sint32_value":2147483647,"sint64_value":4611686018427387903}
$ curl localhost:8080/v1/example/a_bit_of_everything/foo
{"error":"not found","code":5}

from grpc-gateway.

bluecmd avatar bluecmd commented on May 2, 2024

Odd. That looks exactly what I tried and couldn't get to work. I'll see if I can reproduce it from current master.

from grpc-gateway.

achew22 avatar achew22 commented on May 2, 2024

@bluecmd, did you ever have any luck reproducing it from master? I'm doing a little bit of tidying so I'm going to close this but feel free to reopen this issue if you have more information.

from grpc-gateway.

bluecmd avatar bluecmd commented on May 2, 2024

I don't remember TBH, I'll reopen if I run into this again in the future!

from grpc-gateway.

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.