-
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.
- Loading branch information
1 parent
0156968
commit c6e5c59
Showing
4 changed files
with
36 additions
and
36 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
openapi: 3.0.1 | ||
info: | ||
title: Accesso App Public API. | ||
version: 0.2.0 | ||
version: 0.3.0 | ||
description: Public API for frontend and OAuth applications [Review Github](https://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/) | ||
servers: | ||
- url: http://localhost:9005/ | ||
|
@@ -36,7 +36,7 @@ paths: | |
$ref: "#/components/responses/OAuthAccessTokenFailure" | ||
500: | ||
description: Something goes wrong | ||
|
||
"/access-recovery/send-email": | ||
post: | ||
operationId: accessRecoverySendEmail | ||
|
@@ -52,7 +52,7 @@ paths: | |
500: | ||
description: Something goes wrong | ||
|
||
|
||
"/access-recovery/set-password": | ||
post: | ||
operationId: accessRecoverySetPassword | ||
|
@@ -67,7 +67,7 @@ paths: | |
$ref: '#/components/responses/AccessRecoverySetPasswordFailure' | ||
500: | ||
description: Something goes wrong | ||
|
||
"/viewer": | ||
get: | ||
operationId: viewerGet | ||
|
@@ -82,7 +82,7 @@ paths: | |
$ref: "#/components/responses/ViewerGetFailure" | ||
500: | ||
description: Something goes wrong | ||
|
||
"/register/request": | ||
post: | ||
operationId: registerRequest | ||
|
@@ -300,7 +300,7 @@ components: | |
- "email_already_activated" | ||
- "invalid_form" | ||
- "invalid_payload" | ||
|
||
AccessRecoverySetPasswordSuccess: | ||
description: Confirmation code is sent to email | ||
|
||
|
@@ -311,23 +311,23 @@ components: | |
schema: | ||
required: | ||
- error | ||
properties: | ||
error: | ||
properties: | ||
error: | ||
type: string | ||
enum: | ||
enum: | ||
- "invalid_code" | ||
- "password_is_too_short" | ||
- "password_is_too_weak" | ||
|
||
AccessRecoverySendEmailSuccess: | ||
description: Password changed successfully | ||
|
||
AccessRecoverySendEmailFailure: | ||
description: Reset code or password is invalid | ||
content: | ||
content: | ||
application/json: | ||
schema: | ||
required: | ||
required: | ||
- error | ||
properties: | ||
error: | ||
|
@@ -495,7 +495,7 @@ components: | |
properties: | ||
email: | ||
type: string | ||
|
||
AccessRecoverySendEmail: | ||
required: true | ||
content: | ||
|
@@ -508,7 +508,7 @@ components: | |
type: string | ||
format: email | ||
example: "[email protected]" | ||
|
||
AccessRecoverySetPassword: | ||
required: true | ||
content: | ||
|
@@ -521,7 +521,7 @@ components: | |
password: | ||
type: string | ||
example: new_password | ||
code: | ||
code: | ||
type: string | ||
example: beside-kibitz-diverge-install | ||
|
||
|
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,27 +1,27 @@ | ||
[package] | ||
name = "accesso-public-api" | ||
version = "0.2.0" | ||
authors = ["Sergey Sova <[email protected]>"] | ||
edition = "2018" | ||
name = "accesso-public-api" | ||
version = "0.3.0" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
[dependencies] | ||
actix-http = { version = "1.0.1", features = ["failure"] } | ||
accesso-db = {"path" = "../db"} | ||
accesso-public-logic = {"path" = "../public-logic"} | ||
actix-http = {version = "1.0.1", features = ["failure"]} | ||
actix-router = "0.2.4" | ||
actix-rt = "1.1.1" | ||
actix-swagger = "0.2.0" | ||
actix-web = "2.0.0" | ||
accesso-db = { "path" = "../db" } | ||
accesso-public-logic = { "path" = "../public-logic" } | ||
awc = { version = "2.0.0-alpha.1", features = ["openssl", "compress"] } | ||
chrono = { version = "0.4.10", features = ["serde"] } | ||
diesel = { version = "1.4.3", features = [ | ||
awc = {version = "2.0.0-alpha.1", features = ["openssl", "compress"]} | ||
chrono = {version = "0.4.10", features = ["serde"]} | ||
diesel = {version = "1.4.3", features = [ | ||
"postgres", | ||
"uuidv07", | ||
"chrono", | ||
"r2d2", | ||
"serde_json" | ||
] } | ||
"serde_json", | ||
]} | ||
dotenv = "0.15.0" | ||
env_logger = "0.7.1" | ||
failure = "0.1.6" | ||
|
@@ -30,9 +30,9 @@ lazy_static = "1.4.0" | |
log = "0.4" | ||
r2d2 = "0.8.6" | ||
rand = "0.7.3" | ||
serde = { version = "1.0", features = ["derive"] } | ||
serde = {version = "1.0", features = ["derive"]} | ||
serde_json = "1.0" | ||
serde_plain = "0.3.0" | ||
sha2 = "0.8.1" | ||
# reqwest = { version = "0.10", features = ["blocking", "json"] } | ||
uuid = { version = "0.7.4", features = ["serde", "v4"] } | ||
uuid = {version = "0.7.4", features = ["serde", "v4"]} |
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,17 +1,17 @@ | ||
[package] | ||
name = "accesso-public-logic" | ||
version = "0.2.0" | ||
authors = ["Sergey Sova <[email protected]>"] | ||
edition = "2018" | ||
name = "accesso-public-logic" | ||
version = "0.3.0" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
[dependencies] | ||
chrono = { version = "0.4.10", features = [] } | ||
uuid = { version = "0.7.4", features = ["v4"] } | ||
time = { version = "0.1.39" } | ||
chrono = {version = "0.4.10", features = []} | ||
serde = {version = "1.0", features = ["derive"]} | ||
time = {version = "0.1.39"} | ||
uuid = {version = "0.7.4", features = ["v4"]} | ||
validator = "0.10.0" | ||
validator_derive = "0.10.0" | ||
serde = { version = "1.0", features = ["derive"] } | ||
|
||
[dev-dependencies] | ||
insta = "0.15.0" | ||
|