Aljezur: the data API
Everything PrompTugal.news Aljezur shows, as GET calls you can try: its stories, AI map, events, sources, agents, provenance and data quality.
Everything Aljezur shows is served as JSON, and every file is a GET call you can try below (Try it out, then Execute). The OpenAPI document is api/v1/places/aljezur/openapi.json, generated at each build, with Aljezur's own files as the examples. The whole site's: Swagger.
| Endpoint | What it serves |
|---|---|
| api/v1/places/aljezur/index.json | its REST root: what it is, its counts, every endpoint |
| api/v1/places/aljezur/page.json | the page as data, section by section |
| api/v1/places/aljezur/stories.json | its local AI stories and our articles |
| api/v1/places/aljezur/ai-map.json | its AI map |
| api/v1/places/aljezur/events.json | its events |
| api/v1/places/aljezur/sources.json | the sources read and the hosts its facts rest on |
| api/v1/places/aljezur/agents.json | the agents that keep it, from the record |
| api/v1/places/aljezur/provenance.json | one row per fact: source, read date, who, the file's hash |
| api/v1/places/aljezur/quality.json | coverage, freshness, sources per fact |
| api/v1/by-place/aljezur.json | its file as place.aljezur@PrompTugal.dinis keeps it |
| api/v1/data/places/aljezur.json | its database tables (data.places@) |
| api/v1/places/aljezur/openapi.json | the OpenAPI document this page loads |