Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 1.43 KB

NetworkAPI.md

File metadata and controls

44 lines (33 loc) · 1.43 KB

ASPDM Network API (WIP)

API is currently hosted @ aspdm.ahkscript.org/api-php
See https://trello.com/c/V27ITnHO/16-web-server-api

API Status

Check and validate if API is available.

Usage: status.php?_c=CHECKSTRING

It returns a JSON string in the following structure :

{
	"api": {
		"name": "aspdm",
		"check": "CHECKSTRING"
	}
}
  • If CHECKSTRING is uppercase/lowercase, the return is case-sensitive.

Package Details

Get JSON info from a listed package.

Usage: info.php?f=FILENAME&c=JSONITEM

  • If JSONITEM is specified, it returns a normal string.
    Otherwise, a JSON string is returned.

Package Listing

List available packages.

Usage: list.php?full&sort&lim=TOTAL&origin=START, or no arguments

  • If ?full is used, a JSON string is returned containing all Metadata of all available packages.
  • If ?lim is used, a JSON string is returned with all Metadata of TOTAL packages, starting from START.
  • Otherwise, it returns a simple list of all packages seperated by \n (line feed).
  • In any case, ?sort can be used for Natural sorting.
  • By default, packages are sorted by modification date.

Note

  • Packages are currently hosted @ aspdm.ahkscript.org/packs
  • Packages that are waiting to be "validated" are stored @ aspdm.ahkscript.org/packs/tmp