A bit nicer REST API definition.