dreamish/api
Cocoa f04e4bff33 Don't allow public accesslist creation via API 2023-08-19 22:01:02 -04:00
..
dist Don't allow public accesslist creation via API 2023-08-19 22:01:02 -04:00
src Don't allow public accesslist creation via API 2023-08-19 22:01:02 -04:00
README.md API tooling (#3033) 2023-01-03 22:42:09 -08:00
build.js Fix some build steps 2023-01-04 07:12:58 +00:00
package-lock.json Bump yaml from 2.1.3 to 2.2.2 in /api 2023-06-10 08:05:27 -05:00
package.json Bump yaml from 2.1.3 to 2.2.2 in /api 2023-06-10 08:05:27 -05:00

README.md

This folder contains the YAML files used to generate and validate OpenAPI routes for Dreamwidth, and to build the spec file supplied to end users. src contains the files you should edit - reusable components should go into src\components\ and can then be referenced using JS Schema reference notation (eg, $ref: components/schemas/username.yaml). This cuts down on items that need to be retyped, and keeps descriptions of items consistent across different endpoints. dist contains the compiled YAML files that are used by the Perl endpoint controllers. Because YAML has no mechanism for file includes, there is unfortunately still a manual step required to rebuild the dist files when the src files are changed. First install node and then the necessary packages (npm install from inside this folder), and then run the build.js file (node build.js). This will compile the YAML files, and print any errors encountered along the way to the terminal.