app code for post_spec