mirror of
https://github.com/versia-pub/docs.git
synced 2026-03-13 02:49:16 +01:00
refactor: 🚚 Do full rename of Lysand to Versia
This commit is contained in:
parent
a106e7acef
commit
6414337a30
21 changed files with 88 additions and 88 deletions
|
|
@ -1,12 +1,12 @@
|
|||
export const metadata = {
|
||||
title: 'HTTP',
|
||||
description:
|
||||
'How Lysand uses the HTTP protocol for all communications between instances.',
|
||||
'How Versia uses the HTTP protocol for all communications between instances.',
|
||||
}
|
||||
|
||||
# HTTP
|
||||
|
||||
Lysand uses the HTTP protocol for all communications between instances. HTTP requests must conform to certain standards to ensure compatibility between different implementations, as well as to ensure the security and integrity of the data being exchanged.
|
||||
Versia uses the HTTP protocol for all communications between instances. HTTP requests must conform to certain standards to ensure compatibility between different implementations, as well as to ensure the security and integrity of the data being exchanged.
|
||||
|
||||
ALL kinds of HTTP requests/responses between instances **MUST** include a [Signature](/signatures), signed with either the relevant [User](/entities/user)'s private key or the [Server Actor](/entities/server-actor)'s private key.
|
||||
|
||||
|
|
|
|||
|
|
@ -3,16 +3,16 @@ import { Guides, Guide } from '@/components/Guides';
|
|||
export const metadata = {
|
||||
title: 'Federation',
|
||||
description:
|
||||
'Description of federation behavior in Lysand.',
|
||||
'Description of federation behavior in Versia.',
|
||||
}
|
||||
|
||||
# Federation
|
||||
|
||||
Being a federation protocol, Lysand defines a set of rules for exchanging data between instances. This document outlines the behavior of instances in a Lysand federated network. {{ className: 'lead' }}
|
||||
Being a federation protocol, Versia defines a set of rules for exchanging data between instances. This document outlines the behavior of instances in a Versia federated network. {{ className: 'lead' }}
|
||||
|
||||
Federation is built on the [HyperText Transfer Protocol (HTTP)](https://tools.ietf.org/html/rfc7230) and the [JavaScript Object Notation (JSON)](https://tools.ietf.org/html/rfc7159) data format. Instances communicate with each other by sending and receiving JSON payloads over HTTP.
|
||||
|
||||
<Guides>
|
||||
<Guide name="HTTP Guidelines" href="/federation/http" description="Guidelines for HTTP communication in Lysand." />
|
||||
<Guide name="Validation" href="/federation/validation" description="Validation rules for Lysand implementations." />
|
||||
<Guide name="HTTP Guidelines" href="/federation/http" description="Guidelines for HTTP communication in Versia." />
|
||||
<Guide name="Validation" href="/federation/validation" description="Validation rules for Versia implementations." />
|
||||
</Guides>
|
||||
|
|
@ -1,12 +1,12 @@
|
|||
export const metadata = {
|
||||
title: 'Validation',
|
||||
description:
|
||||
'Validation rules for Lysand implementations.',
|
||||
'Validation rules for Versia implementations.',
|
||||
}
|
||||
|
||||
# Validation
|
||||
|
||||
Implementations **MUST** strictly validate all incoming data to ensure that it is well-formed and adheres to the Lysand Protocol. If a request is invalid, the server **MUST** return a `400 Bad Request` HTTP status code.
|
||||
Implementations **MUST** strictly validate all incoming data to ensure that it is well-formed and adheres to the Versia Protocol. If a request is invalid, the server **MUST** return a `400 Bad Request` HTTP status code.
|
||||
|
||||
<Note>
|
||||
Remember that while *your* implementation may disallow or restrict some user input, other implementations may not. You **should not** apply those restrictions to data coming from other instances.
|
||||
|
|
@ -33,4 +33,4 @@ Things that should be validated include, but are not limited to:
|
|||
- The **validity** of all URLs and URIs (run them through your favorite URL parser, optionally fetch the linked URL).
|
||||
- The **time** of all dates and times (people should not be born in the future, or in the year 0).
|
||||
|
||||
It is your implementation's duty to reject data from other instances that does not adhere to the strict spec. **This is crucial to ensure the integrity of your instance and the network as a whole**. Allowing data that is technically valid but semantically incorrect can lead to the degradation of the entire Lysand ecosystem.
|
||||
It is your implementation's duty to reject data from other instances that does not adhere to the strict spec. **This is crucial to ensure the integrity of your instance and the network as a whole**. Allowing data that is technically valid but semantically incorrect can lead to the degradation of the entire Versia ecosystem.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue