Make sure you have postgres running and created a db called lsatfiles
, see the .env
file
go build
./lsatfiles
Endpoint | Request fields | JSON Response Fields | Description |
---|---|---|---|
GET https://insatgram.getalby.com/api/index |
page, sort_by(created_at, price, nr_of_downloads, sats_earned) | (array) "CreatedAt","Currency","LNAddress","Name","NrOfDownloads","Price","SatsEarned","TimeAgo","URL" | Get all uploaded files |
GET https://insatgram.getalby.com/api/accounts |
page, sort_by(count,earned) | (array) | Get all accounts |
GET https://insatgram.getalby.com/api/accounts/{account} |
Get an account | ||
GET https://insatgram.getalby.com/api/accounts/search |
ln_address, sort_by() | (array) | Search accounts |
GET https://insatgram.getalby.com/assets/{filename} |
file content | Retrieve a file. Blurred without LSAT header, real file with LSAT | |
POST form https://insatgram.getalby.com/api/upload |
file, ln_address, price | msg, url | Upload a file |
Has been migrated to https://github.com/kiwiidb/insatgram