How to run application server with local(forked) Chirpstack API?

It is not clear or its not showing what should exactly do but it helps:

After hours of searching(I am a newbie in go) there is a small piece of replace command as commented in the bottom of the Aplication Server’s go.mod file.
You can use your local api by uncommenting this line:

replace github.com/brocaar/chirpstack-api/go/v3 => …/chirpstack-api/go

Also I added this line to the GW and NS’s go.mod files to use the same api on these servers.