Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Host an API service #5

Open
captn3m0 opened this issue May 14, 2022 · 3 comments
Open

Host an API service #5

captn3m0 opened this issue May 14, 2022 · 3 comments

Comments

@captn3m0
Copy link
Owner

Maybe using something like CloudFlare workers or Netlify Functions. Keep it clean and simple, and support CORS.

@wolfram77
Copy link

Hello @captn3m0 is there a standard way of deploying a CSV as for example a PostgreSQL DB with an HTTP API? Maybe something like below.

wget http://csv-query.io/?csv=http://github.com/org/repo/file.csv&query=SELECT * FROM "table" ORDER BY "name" TOP 10

@captn3m0
Copy link
Owner Author

Easier to just expose Postgres publicly with read-only guest access, that's what crt.sh does.

There's a WIP SQLite based API in #8. I can look at providing a read-only SQLite Raw Query API.

Do you have a usecase for raw-query API?

@wolfram77
Copy link

No i have no idea of any usecase. I am just exploring ideas.

I was putting a IFCT2017 food composition query website online, there it was useful as there are many possible columns (nutrient names).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants