From ac6ae5d8107f65a24976150f44a9e9ab4420555a Mon Sep 17 00:00:00 2001 From: durgakiran Date: Mon, 26 Aug 2024 09:59:48 +0530 Subject: [PATCH 1/2] fix(docs): fix list schema curl --- docs/api-reference/apidocs.swagger.json | 2 +- docs/api-reference/openapi.json | 2 +- docs/api-reference/openapiv2/apidocs.swagger.json | 2 +- pkg/pb/base/v1/service.pb.go | 2 +- proto/base/v1/service.proto | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/api-reference/apidocs.swagger.json b/docs/api-reference/apidocs.swagger.json index 33124019b..2768df05b 100644 --- a/docs/api-reference/apidocs.swagger.json +++ b/docs/api-reference/apidocs.swagger.json @@ -1172,7 +1172,7 @@ { "label": "cURL", "lang": "curl", - "source": "curl --location --request POST 'localhost:3476/v1/tenants/{tenant_id}/schemas/read' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n \"page_size\": \"10\",\n \"continuous_token\": \"\"\n}'" + "source": "curl --location --request POST 'localhost:3476/v1/tenants/{tenant_id}/schemas/list' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n \"page_size\": \"10\",\n \"continuous_token\": \"\"\n}'" } ] } diff --git a/docs/api-reference/openapi.json b/docs/api-reference/openapi.json index f528db7b2..34cdfb22f 100644 --- a/docs/api-reference/openapi.json +++ b/docs/api-reference/openapi.json @@ -1373,7 +1373,7 @@ { "label": "cURL", "lang": "curl", - "source": "curl --location --request POST 'localhost:3476/v1/tenants/{tenant_id}/schemas/read' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n \"page_size\": \"10\",\n \"continuous_token\": \"\"\n}'" + "source": "curl --location --request POST 'localhost:3476/v1/tenants/{tenant_id}/schemas/list' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n \"page_size\": \"10\",\n \"continuous_token\": \"\"\n}'" } ], "x-codegen-request-body-name": "body" diff --git a/docs/api-reference/openapiv2/apidocs.swagger.json b/docs/api-reference/openapiv2/apidocs.swagger.json index b8caee544..c7a018023 100644 --- a/docs/api-reference/openapiv2/apidocs.swagger.json +++ b/docs/api-reference/openapiv2/apidocs.swagger.json @@ -1172,7 +1172,7 @@ { "label": "cURL", "lang": "curl", - "source": "curl --location --request POST 'localhost:3476/v1/tenants/{tenant_id}/schemas/read' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n \"page_size\": \"10\",\n \"continuous_token\": \"\"\n}'" + "source": "curl --location --request POST 'localhost:3476/v1/tenants/{tenant_id}/schemas/list' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n \"page_size\": \"10\",\n \"continuous_token\": \"\"\n}'" } ] } diff --git a/pkg/pb/base/v1/service.pb.go b/pkg/pb/base/v1/service.pb.go index 4902fcf24..2a9c0d251 100644 --- a/pkg/pb/base/v1/service.pb.go +++ b/pkg/pb/base/v1/service.pb.go @@ -5885,7 +5885,7 @@ var file_base_v1_service_proto_rawDesc = []byte{ 0x4f, 0x53, 0x54, 0x20, 0x27, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x68, 0x6f, 0x73, 0x74, 0x3a, 0x33, 0x34, 0x37, 0x36, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x73, 0x2f, 0x72, 0x65, 0x61, 0x64, 0x27, 0x20, 0x5c, 0x0a, 0x2d, 0x2d, 0x68, 0x65, 0x61, + 0x61, 0x73, 0x2f, 0x6c, 0x69, 0x73, 0x74, 0x27, 0x20, 0x5c, 0x0a, 0x2d, 0x2d, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x20, 0x27, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x54, 0x79, 0x70, 0x65, 0x3a, 0x20, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x27, 0x20, 0x5c, 0x0a, 0x2d, 0x2d, 0x64, 0x61, 0x74, 0x61, 0x2d, 0x72, 0x61, diff --git a/proto/base/v1/service.proto b/proto/base/v1/service.proto index a0a608bfe..505004c51 100644 --- a/proto/base/v1/service.proto +++ b/proto/base/v1/service.proto @@ -1252,7 +1252,7 @@ service Schema { } fields: { key: "source" - value : { string_value: "curl --location --request POST 'localhost:3476/v1/tenants/{tenant_id}/schemas/read' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n \"page_size\": \"10\",\n \"continuous_token\": \"\"\n}'"}, + value : { string_value: "curl --location --request POST 'localhost:3476/v1/tenants/{tenant_id}/schemas/list' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n \"page_size\": \"10\",\n \"continuous_token\": \"\"\n}'"}, } } } From 4894b2697356a31dae8d7a739ae3e42d0d50d904 Mon Sep 17 00:00:00 2001 From: Tolga Ozen Date: Mon, 26 Aug 2024 10:13:48 +0300 Subject: [PATCH 2/2] fix: schema list request --- docs/api-reference/openapi.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api-reference/openapi.json b/docs/api-reference/openapi.json index 9c274f3dc..60eabc944 100644 --- a/docs/api-reference/openapi.json +++ b/docs/api-reference/openapi.json @@ -12,7 +12,7 @@ "name": "Apache-2.0 license", "url": "https://github.com/Permify/permify/blob/master/LICENSE" }, - "version": "v1.0.2" + "version": "v1.0.3" }, "servers": [ { @@ -1424,7 +1424,7 @@ { "label": "cURL", "lang": "curl", - "source": "curl --location --request POST 'localhost:3476/v1/tenants/{tenant_id}/schemas/list' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n \"page_size\": \"10\",\n \"continuous_token\": \"\"\n}'" + "source": "curl --location --request POST 'localhost:3476/v1/tenants/{tenant_id}/schemas/list' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n \"page_size\": 20,\n \"continuous_token\": \"\"\n}'" } ], "x-codegen-request-body-name": "body"