Adding files, u\'know

This commit is contained in:
2023-07-30 20:42:52 +03:00
parent 07427b1150
commit be957c5824
23 changed files with 10484 additions and 2 deletions

17
api/API.md Normal file
View File

@@ -0,0 +1,17 @@
# API structure
## GET vs. POST
Some parts of API accepts both GET and POST type requests. We recommend you to prefer second option, when it's possible, just because it is more anonymous, when used with SSL or Tor. However, authentification can be performed **only** with POST.
## Naming conventions
Files starting from "_" ("_example.php") are intended for internal use only.
## Version 1
- stats.php (GET/POST): all general, public and private statistics about this instance
- post/create.php (POST): create new post with image