Skip to content

agnostechvalley/private-feeds-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Private Feeds Server

Demo server for OAuth and reading feeds in JSON and XML.

Running Locally

> npm install
> npm start

Server will be started at http://localhost:3000.

Production

To be launched soon at http://private-feeds-server.herokuapp.com.

Basic Usage

HTTP Basic Auth

curl http://username:password@private-feed-server.herokuapp.com/feed-basic

Returns an RSS/XML feed

API Routes

POST /auth

Request Body

{
	"username": "agnostechvalley",
	"password": "d0$ntm@tt3r"
}

Username and password can be any strings.

Response Body

{
	"token": "57e10c03-61b9-4aaa-a6f8-af4d4f1e939b"
}

GET /feed-bearer

Using the token from above to set the Authorization header.

Request Headers

  • Authorization: Bearer 57e10c03-61b9-4aaa-a6f8-af4d4f1e939b

Response Body

See feeds/rss.json and feeds/rss.xml in this repo.

GET /feed-basic

http://agnostechvalley:polyglot@private-feeds-server.herokuapp.com/feed-basic

Response Body

See feeds/rss.xml in this repo.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published