[Spec] Add specs to api_spec
[Api] Tiny refactor