jgarber623 / indieweb-endpoints.cc Goto Github PK
View Code? Open in Web Editor NEWDiscover a URL's IndieAuth, Micropub, Microsub, and Webmention endpoints.
Home Page: https://indieweb-endpoints.cc
License: MIT License
Discover a URL's IndieAuth, Micropub, Microsub, and Webmention endpoints.
Home Page: https://indieweb-endpoints.cc
License: MIT License
Consider accepting HTTP POST requests to /search
when request is for application/json
:
curl -H 'Accept: application/json' -d 'url=https://sixtwothree.org' https://indieweb-endpoints.cc/search
When params[:url]
is a loopback (e.g. localhost
) or a private (e.g. 10.0.0.0/24
) URL, halt with a 400 error.
github:
source from gem 'roda'
in Gemfile
bundle install
git
from list of packages installed in Dockerfile
during "Production Build Stage"See e.g.: https://indieweb-endpoints.cc/search?url=https%3A%2F%2Fdoubleloop.net
micropub_media is missing, and micropub is reported as the media endpoint.
The actual values are:
<link rel="micropub_media" href="https://doubleloop.net/wp-json/micropub/1.0/media" />
<link rel="micropub" href="https://doubleloop.net/wp-json/micropub/1.0/endpoint" />
https://indieweb-endpoints.cc/search?url=http%3A%2Faaronpk.com
Suggestion: add the logic for following and resolving redirects according to IndieAuth and also include that url in the response
Specifically, thinking about returning 405 and 406 errors where it makes sense…
Simplecov is reporting the following missed lines:
+----------+-------------------------------+-------+--------+-------------------+
| coverage | file | lines | missed | missing |
+----------+-------------------------------+-------+--------+-------------------+
| 87.23% | lib/indieweb_endpoints/app.rb | 47 | 6 | 19-21, 56, 72, 74 |
+----------+-------------------------------+-------+--------+-------------------+
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.