Skip to content
This repository has been archived by the owner on May 14, 2023. It is now read-only.

REST API bridge #381

Open
IngwiePhoenix opened this issue Oct 16, 2022 · 0 comments
Open

REST API bridge #381

IngwiePhoenix opened this issue Oct 16, 2022 · 0 comments

Comments

@IngwiePhoenix
Copy link

Network to be bridged:
Some APIs are just basic RESTful APIs that don't need a lot more - in fact, they might only have a single endpoint.

In this case, I would like to send SQL to a SurrealDB database, which uses a very simple HTTP API to do that:

curl -X POST \
	 -u "root:root" \
	 -H "NS: myapplication" \
	 -H "DB: myapplication" \
	 -H "Accept: application/json" \
	 -d "SELECT * FROM person WHERE age > 18" \
	 http://localhost:8000/sql

(from their docs)

But since there might be other usecases for a simple REST client, I didn't title this speciffically for SurrealDB. ^^

Reference material (API docs, etc):

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

No branches or pull requests

1 participant