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

New API endpoint to return existing data from feed URL #1

Closed
piraces opened this issue Jan 21, 2023 · 1 comment
Closed

New API endpoint to return existing data from feed URL #1

piraces opened this issue Jan 21, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@piraces
Copy link
Owner

piraces commented Jan 21, 2023

From Andrew @ nostr with npub1k979np6dcpwh7mkfwk7wq3msezml48fh7wksp9hakakf8pwk3y5qhdz7te (link):

Any thoughts on an API endpoint so that if I send a GET request to https://rsslay.nostr.moe/api/create?url=https://nitter.moomoo.me/paulg/rss for example, it could return json like:
{
"Public Key (Hex)": "09ecfafa65d246a218dea31b941a0a7ff06d4d82e10ca7487176f61a035084fe",
"Public Key": "npub1p8k047n96fr2yxx75vdegxs20lcx6nvzuyx2wjr3wmmp5q6ssnlq76g4xn",
"URL": "https://nitter.moomoo.me/paulg/rss"
}
This would make things easier for the Twitter follows import project I mentioned earlier.

The main idea is to provide an endpoint to retrieve public keys (in hex and npub format) querying by feed URL. The endpoint suggested is the same for creating but it could be other.

@piraces piraces added the enhancement New feature or request label Jan 21, 2023
@piraces piraces self-assigned this Jan 21, 2023
@piraces piraces moved this to Todo in rsslay project Jan 21, 2023
@piraces piraces added this to the 0.2.0 milestone Jan 21, 2023
@piraces piraces moved this from Todo to In Progress in rsslay project Jan 21, 2023
@piraces
Copy link
Owner Author

piraces commented Jan 21, 2023

Implemented in path /api/feed and documented in README https://github.com/piraces/rsslay#api

Related commit: 4bb07d0

@piraces piraces closed this as completed Jan 21, 2023
@github-project-automation github-project-automation bot moved this from In Progress to Done in rsslay project Jan 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
Status: Done
Development

No branches or pull requests

1 participant