Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add state and arrow requests #69

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

arfio
Copy link
Contributor

@arfio arfio commented Jul 4, 2024

This pull request add the implementation for the arrows and states routes.

This change follows the following TSP specification:

Copy link
Contributor

@MatthewKhouzam MatthewKhouzam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Arnaud, this looks great, but can we have a sanity test for it? thanks!

Copy link
Collaborator

@bhufmann bhufmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution. It looks good. I have a small comment (unused variable) though.

@arfio Do you plan to provide a follow-up PR on top of this PR to add a command-line interface for these added tsp_client methods?

response = requests.post(api_url, json=params, headers=headers)

if response.status_code == 200:
response_size = len(bytes(response.text, 'utf-8'))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

response_size can be removed because not used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants