I rate Contentful.com as the Content Engine for Angular SPA.
The problem I'm facing is related to retrieving posts by content type (for example, getting all blog posts). As described in the sample documentation , this is done as follows:
/ space / spaceid / records? access_token = token & content_type = cat
So in my case, not "cat", content_type = "blog" or content_type = "news" would be what I would expect to interact with.
The reality I'm encountering is that getting data using content_type does not allow me to use the name of my content type - it expects an identifier that is an ugly GUID, so my queries look like this:
/ space / spaceid / records? access_token = token & content_type = 2wKn6yEnZewu2SCCkus4as
Problems with this:
- not friendly to developers
- cannot be transported between environments (i.e. test space and production space)
The only solution that I see at the moment is to pre-extract the content type mapping to display the identifier when the page loads and use it, but it will not be so big for performance.
, , (, cat), .
, , :
- , ?
- , ?