-
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 #6 from al-bertes/module5-task1
- Loading branch information
Showing
26 changed files
with
527 additions
and
12 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"watch": [ | ||
"src" | ||
], | ||
"ext": "ts, json", | ||
"exec": "npm run ts ./src/main.rest.ts | pino-pretty --colorize --translateTime SYS:standard" | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
openapi: 3.1.0 | ||
info: | ||
title: API Server for Demo Project "Six Cities" | ||
description: |- | ||
* List of resources and routes for the "Six Cities" server. | ||
license: | ||
name: MIT | ||
url: https://opensource.org/licenses/MIT | ||
version: 2.0.0 | ||
tags: | ||
- name: offers | ||
description: Actions related to offers. | ||
- name: comments | ||
description: Actions related to comments. | ||
- name: users | ||
description: Actions related to the user. | ||
paths: | ||
/users/register: | ||
post: | ||
tags: | ||
- users | ||
summary: User registration | ||
description: Registers a new user. | ||
|
||
requestBody: | ||
description: Information for creating a new user. | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/createUser' | ||
required: true | ||
|
||
responses: | ||
"201": | ||
description: User registered. User object. | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/user' | ||
|
||
"409": | ||
description: A user with this email already exists. | ||
|
||
|
||
/users/login: | ||
post: | ||
tags: | ||
- users | ||
summary: User authentication | ||
description: Authenticates a user based on login and password. | ||
|
||
get: | ||
tags: | ||
- users | ||
summary: User status check | ||
description: Returns information about the authenticated user. | ||
|
||
/users/{userId}/avatar: | ||
post: | ||
tags: | ||
- users | ||
summary: Upload avatar image | ||
description: Uploads the user's avatar image. The avatar image must be in | ||
`png` or `jpg` format. |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
export const TSV_SEPARATOR = '|'; |
Oops, something went wrong.