You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+44-20Lines changed: 44 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,25 +2,28 @@
2
2
This project aims to safely expose information from the [SpigotMC](https://spigotmc.org) website in a machine-readable format for use in projects and other systems.
| listResources | get information about all resources in the system|
8
+
| getResource | get information about a resource by its ID |
9
+
| getResourcesByAuthor | get information about all resources created by a specific author by the user id |
10
+
| listResourceCategories | get information about available resource categories|
11
+
| getResourceUpdate | get information about a specific resource update by its id |
12
+
| getResourceUpdates | get information about all of the updates for a specific resource by the resource id |
13
+
| getAuthor | get information about an author by the user id |
14
+
| findAuthor | get information about an author by the username (**exact username match only**) |
15
15
16
16
### How To Use
17
-
All requests must currently be sent via **GET** to https://api.spigotmc.org/simple/0.2/index.php. To get started, attach a **GET** parameter `action` specifying which operation you'd like to perform (seen above). Then, attach the action's **GET** parameter(s) (seen above, currently only `id`).
17
+
All requests must currently be sent via **GET** to https://api.spigotmc.org/simple/0.2/index.php. To get started, attach a **GET** parameter `action` specifying which operation you'd like to perform (seen above). Then, attach the action's **GET** parameter(s). See below for information on the parameters that each action accepts.
18
18
19
-
### Example
20
-
Here are examples of current capabilities:
19
+
### Documentation
21
20
22
21
#### listResources
23
-
##### Parameters: `cat`, optional, ID from `listResourceCategories`; `page`, optional, defaults to `1`
22
+
##### Parameters:
23
+
| name | type | required | default | description |
0 commit comments