17 lines
540 B
Markdown
17 lines
540 B
Markdown
# 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 |