Hi @brocaar,
I did all of the steps as above but I did not see the modified changes being reflected in the localhost:8080/api.
A little digging led me towards chirpstack-application-server/Makefile
in which:
While building:
- It is first removing the /tmp/chirpstack-api
- Performing a fresh clone of the same from the github repository in
/tmp
- After that it copies the generated
swagger
definitions instatic/swagger
Since I wanted my modified swagger definitions
to show inside static/swagger
and not the freshly cloned ones, I commented lines : 53, 54, and 55
in the Makefile
.
- After that I updated the
.proto
definitions in the/tmp/chirpstack-api
repository. - Then, re-generated the
chirpstack-api
Go & Swagger code usingmake go
&make all
. - Built the
chirpstack-application-server
usingmake clean build
. - The modified changes reflected at
localhost:8080/api.
Previously, I only had to make modifications inside in the .proto definitions
inside /api
and see the reflected changes after using make api
and make clean build
, in chirpstack-application-server
.
Now, is it necessary to perform all of the above mentioned steps every time I make any change in the proto definitions
? or is there any other way round?