Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mariovyord committed Dec 13, 2023
1 parent 10e8ef5 commit 008b89f
Showing 1 changed file with 39 additions and 2 deletions.
41 changes: 39 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,40 @@
# Express API
# Express API w/ Typescript

Work in progress..
Express API repo, made for experimenting with patterns and technologies.

## **Response**

```js
{
code: number,
message: string,
data: any | undefined,
}
```

## **Authorized Requests**

Marked with \* are the endpoints that require auth cookie with jwt token.

## **User service endpoints**

- `POST /api/v1/users/signup`
- `POST /api/v1/users/signin`
- `DELETE /api/v1/users/signout`\*

## **Articles service endpoints**

- `GET /api/v1/articles`
- `GET /api/v1/articles/:id`
- `POST /api/v1/articles` \*
- `PATCH /api/v1/articles/:id` \*
- `DELETE /api/v1/articles/:id` \*

### Query params

- `sortBy={property asc/desc}`
- `where={property=value}`
- `page={pageNumber}&pageSize={entries}`
- `populate={property}`
- `count=true`
- `select={property}`

0 comments on commit 008b89f

Please sign in to comment.