PGPChat/API.md

108 lines
1.7 KiB
Markdown
Raw Permalink Normal View History

2023-04-15 16:35:46 +00:00
# General
2023-04-15 17:45:47 +00:00
- `https://` vorgeschrieben
- Signatur-Verifikation vorgeschriben
2023-04-15 16:35:46 +00:00
# API-Endpunkte
2023-04-15 17:45:47 +00:00
## Server
GET `/pubkey`
- 404: Not Found
- 200: OK
- 30?: Changed
- ???: Too Many Requests
- ???: No Key
GET `/login`
- 404: Not Found
- 200: OK
- ???: Too Many Requests
POST `/login`
- 404: Not Found
- 200: OK
- 40?: Authorisation Failed
- ???: Too Many Requests
POST `/inbox`
- 404: Not Found
- 200: OK
- ???: Too Many Requests
- ???: No Message
## Account
GET `/@<account>/pubkey`
- 404: Not Found
- 200: OK
- 30?: Changed
- ???: Too Many Requests
- ???: No Key
POST `/@<account>/pubkey`
- 404: Not Found
- 200: OK
- 40?: Authorisation Failed
- ???: Too Many Requests
- ???: No Key
PUT `/@<account>/pubkey`
- 404: Not Found
- 200: OK
- 40?: Authorisation Failed
- ???: Too Many Requests
- ???: No Key
GET `/@<account>/inbox`
- 404: Not Found
- 200: OK
- 40?: Authorisation Failed
- ???: Too Many Requests
- ???: No Message
PUT `/@<account>/outbox`
- 404: Not Found
- 200: OK
- 40?: Authorisation Failed
- ???: Too Many Requests
- ???: No Message
GET `/@<account>/privkey`
- 404: Not Found
- 200: OK
- ???: Too Many Requests
- ???: No Key
POST `/@<account>/privkey`
- 404: Not Found
- 200: OK
- ???: Too Many Requests
- ???: No Key
PUT `/@<account>/privkey`
- 404: Not Found
- 200: OK
- ???: Too Many Requests
- ???: No Key
GET `/@<account>/messages`
- 404: Not Found
- 200: OK
- ???: Too Many Requests
GET `/@<account>/groups`
- 404: Not Found
- 200: OK
- ???: Too Many Requests
POST `/@<account>/groups`
- 404: Not Found
- 200: OK
- ???: Too Many Requests
GET `/@<account>/trusted`
- 404: Not Found
- 200: OK
- ???: Too Many Requests
POST `/@<account>/trusted`
- 404: Not Found
- 200: OK
- ???: Too Many Requests