Skip to content

API Service Units

Gordan Krešić edited this page Nov 25, 2016 · 2 revisions

Units

URL: http://localhost:1800/api/unit/list

HTTP method: GET

Parameters:

Parameter Description
type Show only units of given type
title Show only units with given title (may be only part of title)
author Show only units from this author (given as ID)
lecture Show only units from this lecture (given as ID)
count How many units to return (if omitted, all units are returned)
offset Ordinal at which to start counting (if omitted first count units are returned)

Response: List of units.

Examples:

  • http://localhost:1800/api/unit/list

  • http://localhost:1800/api/unit/list?title=transmission

  • http://localhost:1800/api/unit/list?author=5da6bf98-a467-11e6-aedd-4485006d0fd8

Clone this wiki locally