swagger - Backend REST Service test for Angular Frontend -


i've front-end angularjs app consumes set of rest apis implemented in java.

i don't have control on backend , team gives me new release each week or every day.

sometime change rest api response values (json content) , front-end app breaks!!

how can create tests against backend ?

i've idea (but not sure if it's idea):

  1. export backend detail swagger json
  2. using prism generate mock server based on
  3. call mocked backend endpoint in jasmine tests (in client side) see if right json content

. idea? or there better approaches?

. how can run tests in jenkins if use prism mocked server?


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -