Skip to content
This repository was archived by the owner on Jan 20, 2020. It is now read-only.

Commit 3adc254

Browse files
author
Luciano Nooijen
committed
Added Swagger
1 parent 113fd04 commit 3adc254

File tree

4 files changed

+590
-3
lines changed

4 files changed

+590
-3
lines changed

.editorconfig

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ indent_style = space
99
indent_size = 4
1010
max_line_length = 80
1111

12+
[*.yml]
13+
indent_size = 2
14+
1215
[makefile]
1316
indent_style = tab
1417

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ POST routes are protected
1010

1111
# Todo
1212

13-
* For testing add SQLite support
1413
* Fix Travis testing script, Postgres integration
1514
* Add authentication, password hashing -> also improve seed scripts
15+
* Add auth routes to get JWT
16+
* Using https://thejackalofjavascript.com/architecting-a-restful-node-js-app/
1617
* Set all Knex stuff to ./db folder
1718
* Create documentation, API documentation using Swagger
1819
* Add performance testing script, maybe using https://k6.io/

routes/routes.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ router.post('/authors', Authors.create);
1515
router.put('/authors:id', Authors.update);
1616
router.delete('/authors:id', Authors.remove);
1717

18-
// Authors
18+
// Users
1919
router.get('/users', Users.list);
2020
router.get('/users/:id', Users.show);
2121
router.post('/users', Users.create);
2222
router.put('/users:id', Users.update);
2323
router.delete('/users:id', Users.remove);
2424

25-
// Posts
25+
// Categories
2626
router.get('/categories', Categories.list);
2727
router.get('/categories/:id', Categories.show);
2828
router.post('/categories', Categories.create);

0 commit comments

Comments
 (0)