@cryptotaxi247 / CoPilot / commits / 221a01f3

added new route to swagger (#32)

taylor_socfortress committed Jul 15, 2023 at 10:29 UTC 221a01f3406f6e858c9a587af008d61409123b23
1 file changed +50
backend/app/static/swagger.json
+50
@@ -1676,6 +1676,56 @@
1676 "tags": ["Velociraptor"]
1677 }
1678 },
1679 + "/velociraptor/artifacts/{hostname}": {
1680 + "get": {
1681 + "summary": "Get all artifacts for a hostname",
1682 + "description": "Endpoint to get all artifacts for a hostname.",
1683 + "parameters": [
1684 + {
1685 + "name": "hostname",
1686 + "in": "path",
1687 + "description": "The hostname",
1688 + "required": true,
1689 + "schema": {
1690 + "type": "string"
1691 + }
1692 + }
1693 + ],
1694 + "responses": {
1695 + "200": {
1696 + "description": "Successful operation",
1697 + "content": {
1698 + "application/json": {
1699 + "schema": {
1700 + "type": "object",
1701 + "properties": {
1702 + "artifacts": {
1703 + "type": "array",
1704 + "items": {
1705 + "type": "object",
1706 + "description": "Artifact details"
1707 + }
1708 + }
1709 + }
1710 + }
1711 + }
1712 + }
1713 + },
1714 + "default": {
1715 + "description": "Unexpected error",
1716 + "content": {
1717 + "application/json": {
1718 + "schema": {
1719 + "$ref": "#/components/schemas/Error"
1720 + }
1721 + }
1722 + }
1723 + }
1724 + },
1725 + "operationId": "getAllArtifactsForHostname",
1726 + "tags": ["Velociraptor"]
1727 + }
1728 + },
1729 "/velociraptor/artifacts/collection": {
1730 "post": {
1731 "summary": "Create a new artifact collection",