Skip to content

Commit

Permalink
Update replai.apib
Browse files Browse the repository at this point in the history
  • Loading branch information
sir-kokabi authored Jan 16, 2025
1 parent c6864b8 commit db0182f
Showing 1 changed file with 35 additions and 11 deletions.
46 changes: 35 additions & 11 deletions apib/replai.apib
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ HOST: https://chat.replai.ir/api

### لیست همه چت‌ها [GET]

+ Request (application/json)

+ Headers
Authorization: Token ***********************************

+ Response 200 (application/json)

[
Expand Down Expand Up @@ -116,10 +121,14 @@ HOST: https://chat.replai.ir/api
### ساخت یک چت جدید [POST]

+ Request (application/json)

{
"text":"کدام بانک ها ارز اربعین می‌دهند؟"
}

+ Headers
Authorization: Token ***********************************

+ ‌Body
{
"text":"کدام بانک ها ارز اربعین می‌دهند؟"
}

+ Response 200 (application/json)

Expand All @@ -145,6 +154,11 @@ HOST: https://chat.replai.ir/api

### لیست همه پیام‌ها [GET]

+ Request (application/json)

+ Headers
Authorization: Token ***********************************

+ Response 200 (application/json)

[
Expand All @@ -170,9 +184,14 @@ HOST: https://chat.replai.ir/api

+ Request (application/json)

{
text: "کدام بانک ها ارز اربعین می‌دهند؟"
}
+ Headers
Authorization: Token ***********************************

+ Body

{
text: "کدام بانک ها ارز اربعین می‌دهند؟"
}

+ Response 200 (application/json)

Expand All @@ -194,10 +213,15 @@ HOST: https://chat.replai.ir/api

### لایک یا دیسلایک کردن [PUT]

+ Request (application/json)
{
"like": true
}
+ Request (application/json)

+ Headers
Authorization: Token ***********************************

+ Body
{
"like": true
}

+ Response 200 (application/json)

Expand Down

0 comments on commit db0182f

Please sign in to comment.