You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/routers/api/v1/swagger
techknowlogick babab0bf5e
Add nodeinfo endpoint for federation purposes (#16953)
Nodeinfo is a way to expose certain metadata about a server for use of discovery regarding functionality of its federation capabilities.

Two endpoints are required:
1. `/.well-known/nodeinfo` which informs client where it can find the location of the location of its metadata (including which version of the schema is used)
2. the endpoint which exposes the metadata in json format according to schema.

Notes:
* `openRegistrations` is a required field, but I propose to set to false as default in case someone writes a crawler to discover "open" gitea instances
* to limit data leakage I also propose to not include the `usage` field (note it is required so it should be included, but left as empty).

More info:
https://github.com/jhass/nodeinfo
https://github.com/jhass/nodeinfo/tree/main/schemas/2.1
http://nodeinfo.diaspora.software/protocol.html
3 years ago
..
app.go Swagger AccessToken fixes (#16574) 3 years ago
cron.go Add cron running API (#12421) 4 years ago
issue.go Issue templates directory (#11450) 4 years ago
key.go Move sdk structs to modules/structs (#6905) 5 years ago
misc.go API: Move AllowedReactions endpoint into GetGenneralUI endpoint + creat new swagger section settings (#11854) 4 years ago
nodeinfo.go Add nodeinfo endpoint for federation purposes (#16953) 3 years ago
notify.go [API] add endpoint to check notifications [Extend #9488] (#9595) 5 years ago
options.go Swagger AccessToken fixes (#16574) 3 years ago
org.go Move sdk structs to modules/structs (#6905) 5 years ago
repo.go Add an api endpoint to fetch git notes (#15373) (#16649) 3 years ago
settings.go Expose Attachemnt Settings by API (#12514) 4 years ago
user.go [API] GET / SET User Settings (#16169) 3 years ago