Skip to content

Commit

Permalink
Use same API insert pattern everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
lmazz1-dbt committed Dec 2, 2024
1 parent 04697d2 commit b0b51de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/matchbox/server/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ async def get_model(name: str):
raise HTTPException(status_code=501, detail="Not implemented")


@app.post("/models")
async def add_model():
@app.post("/models/{name}")
async def add_model(name: str):
raise HTTPException(status_code=501, detail="Not implemented")


Expand Down
2 changes: 1 addition & 1 deletion test/server/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def test_count_backend_item(self, get_backend):
# response = client.get("/sources/test_source")
# assert response.status_code == 200

# def test_insert_source():
# def test_add_source():
# response = client.post("/sources")
# assert response.status_code == 200

Expand Down

0 comments on commit b0b51de

Please sign in to comment.