Skip to content

Commit

Permalink
Fastify swagger implementation (#25)
Browse files Browse the repository at this point in the history
* Fastify Swagger implementaion has been done with Matterhorn.

Swagger interface will be available on the same port as that of Main Application with a path /documentation E.g. http://localhost:3000/documentation
A sample path /user/{id} has been created where a user can post a Object (user creation object as per the schema )and corresponding result will be returned.

* Adding the LINTING RULES.

* Added changes to make sure the tests are passing.

* Adding a new test case for #22 Issue.

* Adding back the properties required for Swagger documentation.
Removing extra fields from test.ts

* Changed Version of fastify-swagger to 2.3.2 to reduce the warnings of using unrelated properties in the schema.

* Adding the changes as suggested by ETHAN.

/* eslint-disable-next-line no-unused-vars */

* Added some more changes as suggested by Ethan. POST block is moved to configureSwaggerPlugin.

* update package-lock

* Closer to fixing the coverage ci issue

* solved issue

* fix spelling mistake
  • Loading branch information
panbhatt authored and Ethan-Arrowood committed Mar 12, 2019
1 parent c4f2c11 commit c0adac1
Show file tree
Hide file tree
Showing 7 changed files with 1,515 additions and 2,736 deletions.
7 changes: 3 additions & 4 deletions jest.config.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
{
"moduleFileExtensions": [ "ts", "js" ],
"transform": {
"^.+\\.(ts)$": "ts-jest"
},
"preset": "ts-jest",
"globals": {
"ts-jest": {
"tsConfig": "tsconfig.json"
}
},
"testMatch": [
"**/tests/**/*.ts"
]
],
"collectCoverageFrom": [ "src" ]
}
Loading

0 comments on commit c0adac1

Please sign in to comment.