Skip to content

More idiomatic REST API#765

Merged
dineshyv merged 1 commit intomainfrom
rest-api-updates
Jan 15, 2025
Merged

More idiomatic REST API#765
dineshyv merged 1 commit intomainfrom
rest-api-updates

Conversation

@dineshyv
Copy link
Contributor

@dineshyv dineshyv commented Jan 14, 2025

What does this PR do?

This PR changes our API to follow more idiomatic REST API approaches of having paths being resources and methods indicating the action being performed.

Changes made to generator:

  1. removed the prefix check of "get" as its not required and is actually needed for other method types too
  2. removed _ check on path since variables can have "_"

Test Plan

LLAMA_STACK_BASE_URL=http://localhost:5000 pytest -v tests/client-sdk/agents/test_agents.py

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jan 14, 2025
@dineshyv dineshyv changed the title [WIP] more idiomatic REST API More idiomatic REST API Jan 14, 2025
@dineshyv dineshyv force-pushed the rest-api-updates branch 4 times, most recently from 312cd2d to 6148e64 Compare January 15, 2025 21:11
@dineshyv dineshyv merged commit 7fb2c1c into main Jan 15, 2025
2 checks passed
@dineshyv dineshyv deleted the rest-api-updates branch January 15, 2025 21:20
dineshyv added a commit to llamastack/llama-stack-client-python that referenced this pull request Jan 15, 2025
# What does this PR do?

This PR changes our API to follow more idiomatic REST API approaches of
having paths being resources and methods indicating the action being
performed.


Server side changes: llamastack/llama-stack#765
## Test Plan

LLAMA_STACK_BASE_URL=http://localhost:5000/ pytest -v
tests/client-sdk/agents/test_agents.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants