restapi: overgrown switch removal

two overgrown switches replaced by enum field.

Change-Id: I1b877d7123210374470b8c97a937c387921e4521
Signed-off-by: Martin Mucha <mmucha@redhat.com>