Skip to content

Commit

Permalink
Merge pull request #1642 from Permify/ufuk/reverthealth
Browse files Browse the repository at this point in the history
revert: health api
  • Loading branch information
tolgaOzen authored Sep 30, 2024
2 parents 2aaeb20 + c5ca558 commit 099182f
Show file tree
Hide file tree
Showing 9 changed files with 88 additions and 1,609 deletions.
146 changes: 38 additions & 108 deletions docs/api-reference/apidocs.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
}
},
"tags": [
{
"name": "Health"
},
{
"name": "Permission"
},
Expand Down Expand Up @@ -47,54 +44,6 @@
"application/json"
],
"paths": {
"/healthz": {
"get": {
"summary": "health api",
"operationId": "health.check",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/HealthCheckResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/Status"
}
}
},
"parameters": [
{
"name": "service",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"Health"
],
"x-codeSamples": [
{
"label": "",
"lang": "",
"source": ""
},
{
"label": "",
"lang": "",
"source": ""
},
{
"label": "",
"lang": "",
"source": ""
}
]
}
},
"/v1/tenants/create": {
"post": {
"summary": "create tenant",
Expand Down Expand Up @@ -733,7 +682,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/Permission.CheckBody"
"$ref": "#/definitions/CheckBody"
}
}
],
Expand Down Expand Up @@ -1379,7 +1328,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/Watch.WatchBody"
"$ref": "#/definitions/WatchBody"
}
}
],
Expand Down Expand Up @@ -1601,6 +1550,41 @@
},
"description": "BundleWriteResponse is the response for a BundleWriteRequest.\nIt includes a name which could be used as an identifier or acknowledgment."
},
"CheckBody": {
"type": "object",
"properties": {
"metadata": {
"$ref": "#/definitions/PermissionCheckRequestMetadata",
"description": "Metadata associated with this request, required."
},
"entity": {
"$ref": "#/definitions/Entity",
"example": "repository:1",
"description": "Entity on which the permission needs to be checked, required."
},
"permission": {
"type": "string",
"description": "The action the user wants to perform on the resource"
},
"subject": {
"$ref": "#/definitions/Subject",
"description": "Subject for which the permission needs to be checked, required."
},
"context": {
"$ref": "#/definitions/Context",
"description": "Contextual data that can be dynamically added to permission check requests. See details on [Contextual Data](../../operations/contextual-tuples)"
},
"arguments": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/Argument"
},
"description": "Additional arguments associated with this request."
}
},
"description": "PermissionCheckRequest is the request message for the Check method in the Permission service."
},
"CheckResult": {
"type": "string",
"enum": [
Expand Down Expand Up @@ -2205,14 +2189,6 @@
},
"description": "Function type with result and arg types."
},
"HealthCheckResponse": {
"type": "object",
"properties": {
"status": {
"$ref": "#/definitions/ServingStatus"
}
}
},
"Ident": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -2437,41 +2413,6 @@
},
"title": "Partials contains the write, update and delete definitions"
},
"Permission.CheckBody": {
"type": "object",
"properties": {
"metadata": {
"$ref": "#/definitions/PermissionCheckRequestMetadata",
"description": "Metadata associated with this request, required."
},
"entity": {
"$ref": "#/definitions/Entity",
"example": "repository:1",
"description": "Entity on which the permission needs to be checked, required."
},
"permission": {
"type": "string",
"description": "The action the user wants to perform on the resource"
},
"subject": {
"$ref": "#/definitions/Subject",
"description": "Subject for which the permission needs to be checked, required."
},
"context": {
"$ref": "#/definitions/Context",
"description": "Contextual data that can be dynamically added to permission check requests. See details on [Contextual Data](../../operations/contextual-tuples)"
},
"arguments": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/Argument"
},
"description": "Additional arguments associated with this request."
}
},
"description": "PermissionCheckRequest is the request message for the Check method in the Permission service."
},
"Permission.ExpandBody": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -3096,17 +3037,6 @@
},
"description": "A field selection expression. e.g. `request.auth`."
},
"ServingStatus": {
"type": "string",
"enum": [
"UNKNOWN",
"SERVING",
"NOT_SERVING",
"SERVICE_UNKNOWN"
],
"default": "UNKNOWN",
"description": " - SERVICE_UNKNOWN: Used only by the Watch method."
},
"SourceInfo": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -3398,7 +3328,7 @@
}
}
},
"Watch.WatchBody": {
"WatchBody": {
"type": "object",
"properties": {
"snap_token": {
Expand Down
Loading

0 comments on commit 099182f

Please sign in to comment.