refactor: 🚚 Rename ServerMetadata to InstanceMetadata

This commit is contained in:
Jesse Wierzbinski 2024-08-17 14:51:49 +02:00
parent c074e6e38e
commit f62c2b3a19
No known key found for this signature in database
4 changed files with 7 additions and 7 deletions

View file

@ -30,5 +30,5 @@ This page lists changes since Working Draft 03. {{ className: 'lead' }}
- Removed the use of `Undo` entities for anything except than deleting entities. - Removed the use of `Undo` entities for anything except than deleting entities.
- Renamed `Undo` to [Delete](/entities/delete). - Renamed `Undo` to [Delete](/entities/delete).
- Added [Unfollow](/entities/unfollow) entity. - Added [Unfollow](/entities/unfollow) entity.
- Completely rework [ServerMetadata](/entities/server-metadata). - Completely rework `ServerMetadata`, and rename to [InstanceMetadata](/entities/instance-metadata).
- Remove Server Actors, and move instance public keys to [ServerMetadata](/entities/server-metadata). - Remove Server Actors, and move instance public keys to [InstanceMetadata](/entities/instance-metadata).

View file

@ -101,9 +101,9 @@ On all entities that have an `author` field, the `author` can be `null` to repre
<Col sticky> <Col sticky>
```jsonc {{ 'title': 'ServerMetadata' }} ```jsonc {{ 'title': 'InstanceMetadata' }}
{ {
"type": "ServerMetadata", "type": "InstanceMetadata",
"name": "Jim's Jolly Jimjams", "name": "Jim's Jolly Jimjams",
"software": { "software": {
"name": "Versia Server", "name": "Versia Server",

View file

@ -55,7 +55,7 @@ Server metadata can be accessed by making a `GET` request to the server's Versia
To discover the metadata of the server `versia.social`, an instance would make a `GET` request to `https://versia.social/.well-known/versia`. To discover the metadata of the server `versia.social`, an instance would make a `GET` request to `https://versia.social/.well-known/versia`.
This endpoint will return a [ServerMetadata](/entities/server-metadata) entity. This endpoint will return an [InstanceMetadata](/entities/instance-metadata) entity.
```http {{ 'title': 'Example Request' }} ```http {{ 'title': 'Example Request' }}
GET /.well-known/versia HTTP/1.1 GET /.well-known/versia HTTP/1.1
@ -64,7 +64,7 @@ Accept: application/json
```jsonc {{ 'title': 'Example Response' }} ```jsonc {{ 'title': 'Example Response' }}
{ {
"type": "ServerMetadata", "type": "InstanceMetadata",
"name": "Versia Social", "name": "Versia Social",
"software": { "software": {
"name": "Versia Server", "name": "Versia Server",

View file

@ -277,7 +277,7 @@ export const navigation: NavGroup[] = [
{ title: "FollowAccept", href: "/entities/follow-accept" }, { title: "FollowAccept", href: "/entities/follow-accept" },
{ title: "FollowReject", href: "/entities/follow-reject" }, { title: "FollowReject", href: "/entities/follow-reject" },
{ title: "Notes", href: "/entities/note" }, { title: "Notes", href: "/entities/note" },
{ title: "ServerMetadata", href: "/entities/server-metadata" }, { title: "InstanceMetadata", href: "/entities/server-metadata" },
{ title: "Unfollow", href: "/entities/unfollow" }, { title: "Unfollow", href: "/entities/unfollow" },
{ title: "Users", href: "/entities/user" }, { title: "Users", href: "/entities/user" },
], ],