Created
April 22, 2021 14:07
-
-
Save Purvanshsingh/054e003f05dea1c2f46564eb5a7fb711 to your computer and use it in GitHub Desktop.
I am trying to query Movie API using hydra-python-agent.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
print("Movie added.") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment