API using primary key instead of urls