build api spec