gotosocial/internal/api/model
tobi 5f00d4980b
[feature] Implement /api/v1/instance/peers endpoint (#660)
* add missing license headers

* start adding instance peers get

* rename domainblock.go

* embed domain in domainblock so it can be reused

* update swagger docs

* add test instances to db

* update tests

* add/update instancepeersget

* update domain model

* add getinstancepeers to db

* instance-expose-peers, instance-expose-suspended

* add auth checks for both current filters

* attach endpoint to router

* include public comment

* obfuscate domain if required

* go mod tidy

* update swagger docs

* remove unnecessary comment

* return 'flat' peerlist if no query params provided
2022-06-23 16:54:54 +02:00
..
account.go [feature] Federate local account deletion (#431) 2022-03-15 16:12:35 +01:00
admin.go [feature] Media cleanup endpoint (#560) 2022-05-15 14:52:46 +02:00
announcement.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
announcementreaction.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
application.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
attachment.go [chore] Mastodon api fixups (#617) 2022-05-28 18:59:55 +01:00
block.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
card.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
content.go [feature] Stream files via reader (#404) 2022-02-19 11:44:56 +01:00
context.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
conversation.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
domain.go [feature] Implement /api/v1/instance/peers endpoint (#660) 2022-06-23 16:54:54 +02:00
emoji.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
featuredtag.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
field.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
filter.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
history.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
instance.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
list.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
marker.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
mention.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
notification.go [feature] Add paging via Link header for notifications and account statuses (#629) 2022-06-08 20:22:49 +02:00
oauth.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
poll.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
preferences.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
pushsubscription.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
relationship.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
results.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
scheduledstatus.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
search.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
source.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
status.go [chore] Mastodon api fixups (#617) 2022-05-28 18:59:55 +01:00
tag.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
timeline.go [feature] Add paging via Link header for notifications and account statuses (#629) 2022-06-08 20:22:49 +02:00
token.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
user.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
well-known.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00