Extract type and use real data.
Add http endpoint.