From 13125956ea3b406e5d756fdae84e7bf50237aac0 Mon Sep 17 00:00:00 2001 From: Flippie Scholtz Date: Fri, 13 Dec 2024 10:30:43 +0200 Subject: [PATCH] TECH-926 Fix the default 'limit' parameter for pass lookup. For the first page it should be 0, otherwise no records are returned if there are less than a page's worth of records total. Add list of supported testnets for the demopass sandbox network. --- swagger.yaml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/swagger.yaml b/swagger.yaml index 9aff32d..4407cbd 100644 --- a/swagger.yaml +++ b/swagger.yaml @@ -45,10 +45,23 @@ info: # Try it out! You can try out the Civic Pass Customer API by using the following demo credentials to generate an auth token: - - `client_id: j5kwZ68j4bM8fdPAYKu7DlGQGr37eNPs`, - - `client_secret: S1qSiacDUDPRVfxiSvwsRASxE0fH47U60eYeNYIt4JKSVSsgo2yy0n6V-Uz1IYBK` + - `client_id: dtVTGsKUlkPQ8UXKqSskS1HqNI3hERHT`, + - `client_secret: 7DT722BjNlXUp8HVaV_ZjHzopq2Tr12doGB8sBYC-vhPo3Eh0HoidLVATFbxmwZ1` + Please keep in mind that these are shared credentials, i.e. others have access to the same Civic Passes and can for example freeze them. - The demo credentials only work for the development networks:`solana/devnet` & `ethereum/goerli`. Also, please keep in mind that since these are shared credentials, i.e. others have access to the same Civic Passes and can for example freeze them. + The `gatekeeperNetwork` : `tgnuXXNMDLK8dy7Xm1TdeGyc95MDym4bvAQCwcW21Bf` should be used with these credentials. That is Civic's sandbox pass. + + The demo pass is only supported on testnets. The current list is: + - `solana:devnet` + - `ethereum:polygonAmoy` + - `ethereum:sepolia` + - `ethereum:baseSepolia` + - `ethereum:arbitrumSepolia` + - `ethereum:optimismSepolia` + - `ethereum:bscTestnet` + - `ethereum:xdcApothem` + - `ethereum:xlayerTestnet` + - `ethereum:avalancheCChainFuji` termsOfService: https://www.civic.com/legal/terms-of-service-civic-pass-v1/ contact: @@ -73,9 +86,11 @@ paths: limit: type: number default: 20 + description: "Number of records to return per page (used together with 'skip' for pagination)" skip: type: number - default: 10 + default: 0 + description: "Number of records to skip (used together with 'limit' for pagination)" filter: type: object properties: