I stumbled here a little late, but you can skip additional schema and context creation by appending --no-context
and --no-schema
to your phx.gen.json command. This will only generate api controllers and views in the api folder (as per namespace)
5 Likes