There used to be code examples earlier. But those are removed now. It's being integrated inside Designer tool now.
However, you can find example code in some of the Knowledge base articles -
And google "PSOC 1 project xxxxxxxxx" where xxxxx is some description of project
type, like SPI, UART, ADC..... You sometimes can find some info in strange places.
Also search www.psocdeveloper.com, many posted solutions and fixes there as well.