diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 553be12..a8123aa 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -32,6 +32,18 @@ jobs: - name: Generate OpenAPI docs run: bun run generate:openapi + - name: Generate Postman collection + run: bun run generate:postman + + - name: Push collection to Postman + run: | + curl --silent --show-error --fail \ + --request PUT \ + --url "https://api.getpostman.com/collections/${{ vars.POSTMAN_COLLECTION_UID }}" \ + --header "X-Api-Key: ${{ secrets.POSTMAN_API_KEY }}" \ + --header "Content-Type: application/json" \ + --data "{\"collection\": $(cat ./public/postman/collection.json)}" + - name: Build with OpenNext run: bunx opennextjs-cloudflare build diff --git a/README.md b/README.md index ca284d0..8575ca9 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,10 @@ View Documentation
+ + --- ## Development diff --git a/content/docs/documentation/getting-started.mdx b/content/docs/documentation/getting-started.mdx index 0d9bca5..bc8fe0b 100644 --- a/content/docs/documentation/getting-started.mdx +++ b/content/docs/documentation/getting-started.mdx @@ -17,6 +17,12 @@ To access the API, you'll need an API key. Sign up for a **free trial** at [whit for a replacement. ++ Enter your API key below to make a test request and see real results. +
+ ++ {response.details} +
+ )} +
+ {JSON.stringify(response.data, null, 2)}
+
+ + Download our pre-configured Postman collection with example requests + for Person Search and Property Search endpoints. Just import it into + Postman and add your API key. +
+