Skip to content

Commit

Permalink
docs: updated REST path in specs to match proto files version one
Browse files Browse the repository at this point in the history
jira: DCD-XXX
  • Loading branch information
leobragaz committed Jul 27, 2022
1 parent b292363 commit da714ce
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions x/posts/spec/08-client.md
Original file line number Diff line number Diff line change
Expand Up @@ -463,43 +463,43 @@ A user can query the `posts` module using REST endpoints.
The `Post` endpoint allows users to query a post with the given id inside a subspace with the given id.

```
/desmos/posts/v1/subspaces/{subspace_id}/posts/{post_id}
/desmos/posts/v2/subspaces/{subspace_id}/posts/{post_id}
```
### SubspacePosts
The `SubspacePosts` endpoint allows users to query all the posts of the subspace with the given id.
```
/desmos/posts/v1/subspaces/{subspace_id}/posts
/desmos/posts/v2/subspaces/{subspace_id}/posts
```
### SectionPosts
The `SectionPosts` endpoint allows users to return all the posts associated with the section with the given id associated
to the subspace with the given id.
```
/desmos/posts/v1/subspaces/{subspace_id}/sections/{section_id}/posts
/desmos/posts/v2/subspaces/{subspace_id}/sections/{section_id}/posts
```
### PostAttachments
The `PostAttachments` endpoint allows users to query all the attachment associated with the post id given living inside
the subspace with the given id.
```
/desmos/posts/v1/subspaces/{subspace_id}/posts/{post_id}/attachments
/desmos/posts/v2/subspaces/{subspace_id}/posts/{post_id}/attachments
```
### PollAnswers
The `PollAnswers` endpoint allows users to query al the poll answer associated with the given poll id attached to the post
with the given post id inside the subspace with the given id.
```
/desmos/posts/v1/subspaces/{subspace_id}/posts/{post_id}/polls/{poll_id}/answers
/desmos/posts/v2/subspaces/{subspace_id}/posts/{post_id}/polls/{poll_id}/answers
```
### Params
The `Params` endpoint allows users to query the module's parameters.
```
/desmos/posts/v1/params
/desmos/posts/v2/params
```

0 comments on commit da714ce

Please sign in to comment.