stucco-software / octothorp.es

Hashtags for Websites
https://octothorp.es
6 stars 0 forks source link

Octothorpe servers should have endpoints for each term that return useful json blobs #5

Closed nimdaghlian closed 6 months ago

nimdaghlian commented 6 months ago

I should be able to request something like https://octothorp.es/~/digitalGardens.json and get an object in return that contains all the pertinent octothorp information that can be found at https://octothorp.es/~/digitalGardens

Question: Should we start out with this as always public or always private? ie do we want to think at all at this point about rules for restricting to registered domains or not?

nikolaswise commented 6 months ago

This exists! You fetch JSON from the URI like so:

fetch('https://octothorp.es/~/cozyWeb')
  .then(r => r.json())
  .then(json => console.log(json))

returns

{
  uri: 'https://octothorp.es/~/cozyWeb',
  octothorpedBy: [ 'https://nikolas.ws/is' ]
}