Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeysova committed Sep 29, 2020
1 parent 0156968 commit c6e5c59
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 36 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 15 additions & 15 deletions public-api.openapi.yaml
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/
Expand Down Expand Up @@ -36,7 +36,7 @@ paths:
$ref: "#/components/responses/OAuthAccessTokenFailure"
500:
description: Something goes wrong

"/access-recovery/send-email":
post:
operationId: accessRecoverySendEmail
Expand All @@ -52,7 +52,7 @@ paths:
500:
description: Something goes wrong


"/access-recovery/set-password":
post:
operationId: accessRecoverySetPassword
Expand All @@ -67,7 +67,7 @@ paths:
$ref: '#/components/responses/AccessRecoverySetPasswordFailure'
500:
description: Something goes wrong

"/viewer":
get:
operationId: viewerGet
Expand All @@ -82,7 +82,7 @@ paths:
$ref: "#/components/responses/ViewerGetFailure"
500:
description: Something goes wrong

"/register/request":
post:
operationId: registerRequest
Expand Down Expand Up @@ -300,7 +300,7 @@ components:
- "email_already_activated"
- "invalid_form"
- "invalid_payload"

AccessRecoverySetPasswordSuccess:
description: Confirmation code is sent to email

Expand All @@ -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:
Expand Down Expand Up @@ -495,7 +495,7 @@ components:
properties:
email:
type: string

AccessRecoverySendEmail:
required: true
content:
Expand All @@ -508,7 +508,7 @@ components:
type: string
format: email
example: "[email protected]"

AccessRecoverySetPassword:
required: true
content:
Expand All @@ -521,7 +521,7 @@ components:
password:
type: string
example: new_password
code:
code:
type: string
example: beside-kibitz-diverge-install

Expand Down
24 changes: 12 additions & 12 deletions public-api/Cargo.toml
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"
Expand All @@ -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"]}
12 changes: 6 additions & 6 deletions public-logic/Cargo.toml
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"
Expand Down

0 comments on commit c6e5c59

Please sign in to comment.