You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add rspec-openapi gem and remove outdated rspec_api_documentation gem (#472)
* Revert "Merge pull request #269 from rootstrap/feature/rspec-api-documentation-integration"
This reverts commit 84f3dbd, reversing
changes made to f01515f.
* Move featue-flags spec to /requests/admin
* Add rspec-openapi
* Initial doc
* Using seed 1993
* Freeze test data for docs
* Set docs with freezed data
* Freeze devise auth token
* Rubocop fixes
* Create update docs script. Add it to CI to check for missing doc changes
* Latest doc version
* Do not change password reset token in specs
* Fix code smell
* Test changes
* Make script trim whitespaces
* Add docs workflow. Make bin/update-docs parallel
* Remove docs from main CI
* Set when action runs
* Update label name
* Setup autolabeler
* Set new job for labeler
* Set new worflow for labeler
* Set condition for PR open
* New update doc
* Use new ruby script to update doc files
* Set rspec-openapi path to handle parallel specs
* Use new script and force to run with 8 cores
* Use bundle exec to run script
* Workflow fixes
* Remove trailing whitespace
* Run update-docs on push
* Update workflow
* Set cpu count for load schema
* Handle ocassional errors. Clean files always
* Fix parallel specs
* Clear whitespaces from doc file
* Remove update-docs bash file
* Update update-docs action
* Update README with doc
* Fix endpoint in spec
* Move CI docs to ci file
* Change labeler config
* Update labeler
* Fix labeler
* Move labeler to update docs action
* Update docs labeler test
* Use target
* Use token
* Run on merge with main or PR
* Fix labeler path
* Fix condition
* Small fixes
* README fixes
* Remove unused api blueprint file
* Clean up setup
* Add comment to initializer
* Rename action to check-docs
* Sort endpoints alphabetically
* Small improvements
* Update docs
* Make the default be parallelized
* Stop freezing time in specs, set dates with regex in doc file
* Update api_doc readme
* Freeze timestamps via regex and not specs
* Make doc check action run on pull_request and push on main
* Update Docs and README
* Use api_docs label
* Remove unnecessary configs
* Remove unnecessary permissions
* Freeze timestamps in update-docs
* Update rspec-openapi to v0.9
* Improve date freezing in script
* Improve api_docs readme
* Improve readme
* Only run openapi initializer in test
* Fix code climate for pull_request events
* Make the CI commit doc changes
* Rename update-docs script
* Make CI update docs with parallelization on main push
* Remove unnecessary canges to freeze test data
* Update README
* Remove changes from password spec
* Skip feature flags for openapi
* Update CI and docs
* Add push key to bypass branch protections
* Remove duplicate endpoints when merging docs
* Copy changes to docs and ci
* Remove duplicate permissions
* Document ignoring specs
Copy file name to clipboardExpand all lines: README.md
+7-10
Original file line number
Diff line number
Diff line change
@@ -24,9 +24,9 @@ This template comes with:
24
24
- Feature flags support with a UI for management.
25
25
- RSpec tests
26
26
- Code quality tools
27
-
- API documentation following https://apiblueprint.org/
28
-
- Docker support
27
+
- API documentation following https://www.openapis.org/
29
28
- RSpec API Doc Generator
29
+
- Docker support
30
30
31
31
## How to use
32
32
@@ -48,6 +48,7 @@ This template comes with:
48
48
1. You can now try your REST services!
49
49
50
50
## Dev scripts
51
+
51
52
This template provides a handful of scripts to make your dev experience better!
52
53
53
54
- bin/bundle to run any `bundle` commands.
@@ -93,7 +94,7 @@ To illustrate, `bin/rails console` will run the console in the docker container
93
94
-[Rails Best Practices](https://github.com/flyerhzm/rails_best_practices) for rails linting
94
95
-[Reek](https://github.com/troessner/reek) for ruby linting
95
96
-[RSpec](https://github.com/rspec/rspec) for testing
96
-
-[RSpec API Doc Generator](https://github.com/zipmark/rspec_api_documentation) for API documentation
97
+
-[RSpec OpenAPI](https://github.com/exoego/rspec-openapi) for API documentation
97
98
-[Rubocop](https://github.com/bbatsov/rubocop/) for ruby linting
98
99
-[Sendgrid](https://github.com/stephenb/sendgrid) for sending mails
99
100
-[Shoulda Matchers](https://github.com/thoughtbot/shoulda-matchers) adds other testing matchers
@@ -112,14 +113,9 @@ To illustrate, `bin/rails console` will run the console in the docker container
112
113
113
114
https://railsapibasers.docs.apiary.io/
114
115
115
-
With [RSpec API Doc Generator](https://github.com/zipmark/rspec_api_documentation) you can generate the docs after writing the acceptance specs.
116
-
117
-
Just run:
118
-
119
-
`./bin/docs `
120
-
121
-
An `apiary.apib` file will be generated at the root directory of the project.
116
+
With [RSpec API Doc Generator](https://github.com/exoego/rspec-openapi) you can generate the docs after writing requests specs.
122
117
118
+
See [api_documentation](./docs/api_documentation.md) docs for more info.
123
119
124
120
## Code quality
125
121
@@ -136,6 +132,7 @@ In order to use [New Relic](https://newrelic.com) to monitor your application re
136
132
To obtain an API key you must create an account in the platform.
137
133
138
134
## Configuring Code Climate
135
+
139
136
1. After adding the project to CC, go to `Repo Settings`
140
137
1. On the `Test Coverage` tab, copy the `Test Reporter ID`
141
138
1. Set the current value of `CC_TEST_REPORTER_ID` in the [circle-ci project env variables](https://circleci.com/docs/2.0/env-vars/#setting-an-environment-variable-in-a-project)
0 commit comments