llama-stack-mirror/llama_stack/apis
Dinesh Yeduguru 7fb2c1c48d
More idiomatic REST API (#765)
# 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
2025-01-15 13:20:09 -08:00
..
agents More idiomatic REST API (#765) 2025-01-15 13:20:09 -08:00
batch_inference More idiomatic REST API (#765) 2025-01-15 13:20:09 -08:00
common llama-stack version alpha -> v1 2025-01-15 05:58:09 -08:00
datasetio More idiomatic REST API (#765) 2025-01-15 13:20:09 -08:00
datasets More idiomatic REST API (#765) 2025-01-15 13:20:09 -08:00
eval More idiomatic REST API (#765) 2025-01-15 13:20:09 -08:00
eval_tasks More idiomatic REST API (#765) 2025-01-15 13:20:09 -08:00
inference More idiomatic REST API (#765) 2025-01-15 13:20:09 -08:00
inspect More idiomatic REST API (#765) 2025-01-15 13:20:09 -08:00
memory More idiomatic REST API (#765) 2025-01-15 13:20:09 -08:00
memory_banks More idiomatic REST API (#765) 2025-01-15 13:20:09 -08:00
models More idiomatic REST API (#765) 2025-01-15 13:20:09 -08:00
post_training More idiomatic REST API (#765) 2025-01-15 13:20:09 -08:00
safety More idiomatic REST API (#765) 2025-01-15 13:20:09 -08:00
scoring More idiomatic REST API (#765) 2025-01-15 13:20:09 -08:00
scoring_functions More idiomatic REST API (#765) 2025-01-15 13:20:09 -08:00
shields More idiomatic REST API (#765) 2025-01-15 13:20:09 -08:00
synthetic_data_generation [remove import *] clean up import *'s (#689) 2024-12-27 15:45:44 -08:00
telemetry More idiomatic REST API (#765) 2025-01-15 13:20:09 -08:00
tools More idiomatic REST API (#765) 2025-01-15 13:20:09 -08:00
__init__.py API Updates (#73) 2024-09-17 19:51:35 -07:00
resource.py Tools API with brave and MCP providers (#639) 2024-12-19 21:25:17 -08:00
version.py llama-stack version alpha -> v1 2025-01-15 05:58:09 -08:00