Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions .github/workflows/update-snowflake-feature-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,20 @@ jobs:
path: snowflake
token: ${{ secrets.GH_TOKEN }}

- name: Run the script
- name: Run the script
working-directory: snowflake
env:
PYTHONPATH: ${{ github.workspace }}/snowflake
run: |
cd localstack-docs
pip install localstack lxml requests
python ../snowflake/etc/coverage.py
python ./etc/coverage.py

- name: Move the generated files
run: |
cd localstack-docs
mv coverage-features.md src/content/docs/snowflake/features/index.md
mv coverage-functions.md src/content/docs/snowflake/sql-functions.md
mv coverage-restapi.md src/content/docs/snowflake/rest-api-endpoints.md
mv ../snowflake/coverage-features.md src/content/docs/snowflake/features/index.md
mv ../snowflake/coverage-functions.md src/content/docs/snowflake/sql-functions.md
mv ../snowflake/coverage-restapi.md src/content/docs/snowflake/features/rest-api-endpoints.md

- name: Check for changes
id: check-for-changes
Expand Down
19 changes: 11 additions & 8 deletions src/content/docs/snowflake/features/rest-api-endpoints.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

---
title: REST API
description: Get started with REST API Endpoints in LocalStack for Snowflake
Expand All @@ -6,17 +7,19 @@ tags: ["Base"]

## Introduction

The [Snowflake REST API](https://docs.snowflake.com/en/developer-guide/snowflake-rest-api/snowflake-rest-api) provides REST API endpoints that allow you to manage schemas and tables in Snowflake. Snowflake REST APIs let you use the programming language of your choice to build your integrations.
The [Snowflake REST API](https://docs.snowflake.com/en/developer-guide/snowflake-rest-api/snowflake-rest-api) provides REST API endpoints that allow you to manage schemas and tables in Snowflake. Snowflake REST APIs let you use the programming language of your choice to build your integrations.

LocalStack for Snowflake supports REST API endpoints that let you manage your Snowflake data locally.
LocalStack for Snowflake supports REST API endpoints that let you manage your Snowflake data locally.

## Supported Snowflake REST API endpoints
## Supported Snowflake REST API endpoints

LocalStack for Snowflake supports the following REST API endpoints to manage your Snowflake data locally:


| Supported Endpoint | Description |
|---------------------------------------------------|---------------------------------------------|
| `POST /api/v2/databases` | Creates a database. |
| `GET /api/v2/databases` | Lists accessible databases. |
| `GET /api/v2/databases/<name>` | Fetch a specific database. |
| Supported Endpoint | Description |
|--------------------|-------------|
| `GET /api/v2/databases` | Lists databases. |
| `POST /api/v2/databases` | Creates a database. |
| `GET /api/v2/databases/<name>` | Fetches a database. |
| `PUT /api/v2/databases/<name>` | Creates a new, or alters an existing, database. |