Giter Site home page Giter Site logo

How to set GET method? about jina HOT 10 OPEN

xuhaoguang avatar xuhaoguang commented on May 24, 2024
How to set GET method?

from jina.

Comments (10)

JoanFM avatar JoanFM commented on May 24, 2024

Hey @xuhaoguang ,

You do not need to set it, Jina detects that there is a generator being returned and because of that exposes a GET endpoint when served via HTTP.

from jina.

xuhaoguang avatar xuhaoguang commented on May 24, 2024

ehh, But how can I use curl "localhost:12345/hc" to health_check method, but when I test, jina say I should send a json post data and Method Not Allowed

from jina.

xuhaoguang avatar xuhaoguang commented on May 24, 2024

image

from jina.

JoanFM avatar JoanFM commented on May 24, 2024

how are u defining this hc endpoint?

from jina.

xuhaoguang avatar xuhaoguang commented on May 24, 2024

image

from jina.

that-rahul-guy avatar that-rahul-guy commented on May 24, 2024

@xuhaoguang Did you find any workaround?
I'm struggling with same.

from jina.

JoanFM avatar JoanFM commented on May 24, 2024

@that-rahul-guy what are you trying to do?

from jina.

that-rahul-guy avatar that-rahul-guy commented on May 24, 2024

Hi @JoanFM
I am currently exploring jina as a framework to serve my LangChain Agent-tool architecture application.
As for the GET method I was trying a similar thing what @xuhaoguang shared.

from jina.

reshma045 avatar reshma045 commented on May 24, 2024

Hey @xuhaoguang, which folder is that file in?

from jina.

jina-bot avatar jina-bot commented on May 24, 2024

@jina-ai/product This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 14 days

from jina.

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.