This website requires JavaScript.
Explore
Help
Sign In
honeymoose
/
OpenSearch
Watch
1
Star
0
Fork
0
You've already forked OpenSearch
mirror of
https://github.com/honeymoose/OpenSearch.git
synced
2025-03-09 14:34:43 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
OpenSearch
/
rest-api-spec
/
utils
/
Thorfile
3 lines
99 B
Plaintext
Raw
Normal View
History
Unescape
Escape
[UTIL] Moved the JSON spec generator into the `utils` folder
2013-06-16 17:03:12 +02:00
require File.expand_path('./thor/generate_api')
[UTIL] Added a source code generator using the JSON API specs The generator is based on [Thor](https://github.com/wycats/thor), a library/framework for command line applications. The generator will read the JSON API spec file(s), and generate the Ruby source code (one file per API endpoint) with correct module namespace, method names, and RDoc documentation. It will generate a test file for each API endpoint as well. Currently it only generates Ruby source, but can easily be extended and adapted to generate source code for other programming languages. Usage example: $ thor api:code:generate ../../api-spec/*.json --force --verbose
2013-06-16 23:25:08 +02:00
require File.expand_path('./thor/generate_source')
Reference in New Issue
Copy Permalink