EndlessVanguard / bitcoin-remunerate-api

A scheme for trustless, decentralized, anonymous, remuneration for content creators.
1 stars 0 forks source link

Feature: api endpoint for content registration #22

Closed mattgstevens closed 8 years ago

mattgstevens commented 8 years ago

What we have now

fromheten commented 8 years ago

I need some REST! 😪💤

return type

POST api.getmomona.com/0/content/?return=[javascript|url|contentId]

When javascript you get a JS snippet, ready to paste into your web site.

When url, you get a GET-able url to our api, looks like https://api.getmomona.com/0/content/${contentId}. I think this should be the default.

When contentId you only get contentId back.

Lemme know if you have any other idea bud :)

content registration params

Let's list what data are required to add a content. I assume these should be URL params to the POST eh?

Anything more?

fromheten commented 8 years ago

This is what I loved about Rails - everything starts with a route, and it's all very RESTy

mattgstevens commented 8 years ago

for the js-snippet part: lets publish to npm and import it

fromheten commented 8 years ago

Closing this as done - even if we havent implemented the JS snippet thing. That can be a nice feature we add later.