I’m backend developer and i just know about api

Hi i’m backend developer and i just want to represent my work results as api

And give that apis to frontend developer

Is my habit so bad?

I use .net core and i don’t want to bother myself with razor pages

Is this right to me just knowing how to return json instead of rendering ui