Move resource type to api/types.go