-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from FoxMalder-coder/master
- Loading branch information
Showing
15 changed files
with
168 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
HOST=localhost | ||
PORT=4000 | ||
SALT=Something | ||
DB_USER=admin | ||
DB_PASSWORD=test | ||
SALT=secret | ||
DB_HOST=127.0.0.1 | ||
DB_USER=admin | ||
DB_PASSWORD=password | ||
DB_PORT=27017 | ||
DB_NAME=six-cities | ||
UPLOAD_DIRECTORY=upload | ||
JWT_SECRET=jwt-key | ||
HOST=localhost | ||
STATIC_DIRECTORY=static | ||
JWT_SECRET=secret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,19 @@ | ||
# Комментарии | ||
## Создать комментарий | ||
|
||
POST http://localhost:4000/comments/672a369e42ff61e8805c6be5 HTTP/1.1 | ||
Content-Type: application/json | ||
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6Im5pY2tAeWFoY2hvby5uZXQiLCJpZCI6IjY3MmE3NTc4ODljMGUyMDA1ZjYzNzcwNyIsImlhdCI6MTczMDgzNzgzMCwiZXhwIjoxNzMxMDEwNjMwfQ.Sh2RicuyfaxMkXycYEl8AVkBAijvCh-sIERsOxtQ-_8 | ||
Authorization: Bearer --- | ||
|
||
{ | ||
"text": "Фиг знает что", | ||
"text": "Не понравилось", | ||
"offerId": "672a369e42ff61e8805c6be5", | ||
"rating": 1 | ||
} | ||
|
||
### | ||
|
||
|
||
## Список комментариев к объявлению | ||
## Получить список комментариев к объявлению | ||
GET http://localhost:4000/comments/672a369e42ff61e8805c6be5 HTTP/1.1 | ||
|
||
### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.