Skip to content

Commit

Permalink
Merge branch 'master' of github.com:FooComments/foo-comments-widget
Browse files Browse the repository at this point in the history
  • Loading branch information
tigransimonyan committed Nov 7, 2020
2 parents 9ee7a15 + 2c91d0a commit 71586b3
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,29 +33,31 @@ Options can be passed via data attributes.
2. Clone the repository and install dependencies:

```
npm install
$ git clone https://github.com/FooComments/foo-comments-widget.git
$ cd foo-comments-widget
$ npm install
```

3. Run it for development:

```
npm start
$ npm start
```

Open http://localhost:1234 to view it in the browser.

4. Build it for production:

```
npm run build
$ npm run build
```

## API Reference

### Add Comment

```
POST {{YOUR_API_URL}}/comments
POST {{YOUR_API_URL}}/api/comments
```

Request Body:
Expand Down Expand Up @@ -86,7 +88,7 @@ Response Body:
### Get Comments

```
GET {{YOUR_API_URL}}/comments?pageId={{PAGE_ID}}
GET {{YOUR_API_URL}}/api/comments?pageId={{PAGE_ID}}
```

Response Body:
Expand All @@ -108,7 +110,7 @@ Response Body:
### Delete Comment

```
DELETE {{YOUR_API_URL}}/comments/{{COMMENT_ID}}?secret={{COMMENT_SECRET}}
DELETE {{YOUR_API_URL}}/api/comments/{{COMMENT_ID}}?secret={{COMMENT_SECRET}}
```

Response Body:
Expand Down

0 comments on commit 71586b3

Please sign in to comment.