Files
openfoodnetwork/script/rswag
Maikel Linke de51a7833d Add script to swaggerize DFC API in its engine
Rswag doesn't look for specs in engines by default. We haven't added any
Rswag specs in the dfc_provider engine yet but that will come.

The generated API schema has some superfluous whitespace removed due to
a fix in the rswag gems.
2023-06-28 13:50:54 +10:00

7 lines
246 B
Bash
Executable File

#!/usr/bin/env sh
# Generate the API documentation based on our specs.
#
# The PATTERN argument is adding engines to the search path.
exec ./bin/rake rswag PATTERN="spec/requests/api/**/*_spec.rb,engines/dfc_provider/spec/requests/**/*_spec.rb"