Skip to content

Instantly share code, notes, and snippets.

View Purvanshsingh's full-sized avatar

Purvansh Singh Purvanshsingh

View GitHub Profile
@Purvanshsingh
Purvanshsingh / client.py
Created April 22, 2021 14:07
I am trying to query Movie API using hydra-python-agent.
from hydra_agent.agent import Agent
agent = Agent("http://localhost:8080/api")
resource = {
"@type": "Movie",
"movie_name": "Godfather",
"movie_director": "Francis Ford Coppola"
}
agent.post("http://localhost:8080/api/Movie",resource)