update example to use swagger-core's sample