mirror of
https://github.com/likelovewant/ollama-for-amd.git
synced 2025-12-21 14:26:30 +00:00
docs/openapi: document that delete and copy responses are empty (#13055)
Some route endpoints return an empty response with a 200 OK. These should be documented in the OpenAPI doc. Note that the previous deletion response was not correct.
This commit is contained in:
@@ -1275,6 +1275,9 @@ paths:
|
|||||||
example:
|
example:
|
||||||
source: gemma3
|
source: gemma3
|
||||||
destination: gemma3-backup
|
destination: gemma3-backup
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
description: Model successfully copied
|
||||||
/api/pull:
|
/api/pull:
|
||||||
post:
|
post:
|
||||||
summary: Pull a model
|
summary: Pull a model
|
||||||
@@ -1382,16 +1385,7 @@ paths:
|
|||||||
model: gemma3
|
model: gemma3
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: Deletion status updates.
|
description: Model successfully deleted
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: "#/components/schemas/StatusResponse"
|
|
||||||
example:
|
|
||||||
status: "success"
|
|
||||||
application/x-ndjson:
|
|
||||||
schema:
|
|
||||||
$ref: "#/components/schemas/StatusEvent"
|
|
||||||
/api/version:
|
/api/version:
|
||||||
get:
|
get:
|
||||||
summary: Get version
|
summary: Get version
|
||||||
|
|||||||
Reference in New Issue
Block a user