agnostechvalley / private-feeds-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:JavaScript 75.9%Language:HTML 24.1%