Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
mmvpm committed Apr 18, 2024
1 parent 5d1d26a commit 2e4f95b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,15 @@ create table users
create table user_offers
(
offer_id uuid primary key,
user_id uuid not null references users(id)
offer_id uuid primary key references offers (id),
user_id uuid not null references users (id)
);
```

### Authorization

Each user has login (telegram @login) and password, and, in order to use the service, he should get a session and then attach it to each request
Each user has login (telegram @login) and password, and, in order to use the service, he should get a session and then
attach it to each request

Creating a session:

Expand Down
4 changes: 2 additions & 2 deletions service/src/main/resources/db.migration/V1__init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ create table users

create table user_offers
(
offer_id uuid primary key,
user_id uuid not null references users(id)
offer_id uuid primary key references offers (id),
user_id uuid not null references users (id)
);
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class OfferHandler[F[_]: Applicative](offerService: OfferService[F], override va

private val getOffersByIds: ServerEndpoint[Any, F] =
endpoint.withApiErrors.post
.summary("Get all offers of the specified user")
.summary("Get all offers by ids")
.in("api" / "v1" / "offer" / "list")
.in(jsonBody[GetOffersRequest])
.out(jsonBody[OffersResponse])
Expand Down

0 comments on commit 2e4f95b

Please sign in to comment.