Skip to content

arnaudjuracek/internet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5f05956 · Apr 5, 2023

History

92 Commits
Jan 29, 2022
Mar 3, 2022
Apr 5, 2023
Mar 3, 2022
Jan 30, 2022
Jan 29, 2022
Jan 29, 2022
Jan 29, 2022
Apr 5, 2023
Jan 29, 2022
Jan 29, 2022
Apr 5, 2023
Apr 5, 2023
Jan 30, 2022
Feb 9, 2022

Repository files navigation

internet

Get/set bookmarks and articles from anywhere


Usage

$ curl -X POST -H 'Authorization: Basic API_TOKEN' -H 'Content-Type: application/json' --data '{ "url": "https://example.com" }' …/api/bookmark

API

method endpoint body description
POST /api/article { url } Add a new article
PATCH /api/article { url, title } Rename an article
PATCH /api/article/archive { url } Archive an article
DELETE /api/article { url } Delete an article
POST /api/bookmark { url } Save a new bookmark
PATCH /api/bookmark { url } Rename a bookmark
DELETE /api/bookmark { url } Delete a bookmark

Development

Installation

$ git clone https://github.com/arnaudjuracek/internet && cd internet
$ cp server/.env.example server/.env
$ yarn install

Deployment

Deployment to the AlwaysData environment is done automatically via a Github action. Simply create a new release by running:

$ yarn version

License

MIT.