T120B165 Saityno taikomųjų programų projektavimas modulio projektas
Projekto tikslas – sukurti platformą leidžiančią vartotojams laisvai bendrauti, kurti pokalbius pagal aktualias temas.
Veikimo principas – projekto programą sudaro dvi dalys: kliento pusė ir serverio pusė.
Vartotojas norėdamas dalyvauti pokalbiuose pasirenka atitinkamą kategoriją. Kategorijoje gali prisijungti prie pokalbio(angl. Thread) arba sukurti naują. Administratorius gali kurti naujas kategorijas, šalinti ir blokuoti vartotojus.
-
Peržiūrėti platformos reprezentacinį puslapį; -
Peržiūrėti prisijungimo puslapį; -
Peržiūrėti registracijos puslapį; -
Užsiregistruoti į sistemą; -
Prisijungti prie sistemos; -
Peržiūrėti kategorijas; -
Peržiūrėti pokalbius; -
Peržiūrėti pokalbių žinutes;'
-
Atsijungti interetinės aplikacijos; -
Peržiūrėti kategorijas; -
Kurti, ištrinti, redaguoti pokalbius; -
Kurti, ištrinti, redaguoti žinutes; -
Redaguoti savo profilį;
-
Kurti, ištrinti, redaguoti kategorijas; -
Blokuoti vartotojus; -
Šalinti vartotojus;
- Kliento pusė, vartotojo sąsaja (ang. Front-End) – naudojant React.js, Float UI;
- Serverio pusė, API, JWT (angl. Back-End) – naudojant ASP.NET, Dapper, MySQL duomenų bazę.
Returns a collection of channels
https://chathub.com/api/channels
| Response format | JSON |
| Requires authentication? | No |
None
[
{
"name": "New request",
"description": "This is a channel to test it out"
}
]
Returns a object of channel
https://chathub.com/api/channels/{channelId}
| Response format | JSON |
| Requires authentication? | No |
| Name | Required | Description | Default Value | Example |
|---|---|---|---|---|
| channelId | Yes | Specifies wanted channel | 13 |
{
"name": "New request",
"description": "This is a channel to test it out"
}
Creates a request for channel creation which required administrators approval
https://chathub.com/api/channels
| Response format | JSON |
| Requires authentication? | Yes |
| Name | Required | Description | Default Value | Example |
|---|---|---|---|---|
| name | Yes | Name of the channel | New channel | |
| description | Yes | Description of the channel | Channel description |
13
Deletes a channel
https://chathub.com/api/channels/{channelId}
| Response format | JSON |
| Requires authentication? | Yes |
| Requires administrator authorization? | Yes |
| Name | Required | Description | Default Value | Example |
|---|---|---|---|---|
| channelId | Yes | Specifies wanted channel | 13 |
HTTP
Returns a collection of requests for channel creation
https://chathub.com/api/channels/requests
| Response format | JSON |
| Requires authentication? | Yes |
| Requires administrator authorization? | Yes |
None
[
{
"id": 23,
"name": "New request",
"description": "This is a channel to test it out"
}
]
Approves the request, removes the request and creates the channel based on the request
https://chathub.com/api/channels/requests/{requestId}
| Response format | JSON |
| Requires authentication? | Yes |
| Requires administrator authorization? | Yes |
| Name | Required | Description | Default Value | Example |
|---|---|---|---|---|
| requestId | Yes | Specifies wanted request | 13 |
Returns a collection of conversations from the specified channel
https://chathub.com/api/channels/{channelId}/conversations
| Response format | JSON |
| Requires authentication? | No |
| Name | Required | Description | Default Value | Example |
|---|---|---|---|---|
| channelId | Yes | Specifies wanted channel | 13 |
[
{
"name": "Postman testing",
"description": "Running postman tests",
"author": null,
"channel": {
"name": "New request",
"description": "This is a channel to test it out"
}
}
]
Returns a object of conversation
https://chathub.com/api/channels/{channelId}/conversations/{conversationId}
| Response format | JSON |
| Requires authentication? | No |
| Name | Required | Description | Default Value | Example |
|---|---|---|---|---|
| channelId | Yes | Specifies wanted channel | 13 | |
| conversationId | Yes | Specifies wanted conversation | 10 |
{
"name": "Postman testing",
"description": "Running postman tests",
"author": null,
"channel": {
"name": "New request",
"description": "This is a channel to test it out"
}
}
Creates conversation in the specified channel
https://chathub.com/api/channels/{channelId}/conversations
| Response format | JSON |
| Requires authentication? | Yes |
| Name | Required | Description | Default Value | Example |
|---|---|---|---|---|
| channelId | Yes | Specifies wanted channel | 13 | |
| conversationId | Yes | Specifies wanted conversation | 10 | |
| name | Yes | Name of the conversation | New conversation | |
| description | Yes | Description of the conversation | Conversation Description |
Deletes the specified conversation
https://chathub.com/api/channels/{channelId}/conversations/{conversationId}
| Response format | JSON |
| Requires authentication? | Yes |
| Requires administrator authorization? | Yes |
| Name | Required | Description | Default Value | Example |
|---|---|---|---|---|
| channelId | Yes | Specifies wanted channel | 13 | |
| conversationId | Yes | Specifies wanted conversation | 10 |
Returns a collection of messages from the specified conversation
https://chathub.com/api/channels/{channelId}/conversations/{conversationId}/messages
| Response format | JSON |
| Requires authentication? | No |
| Name | Required | Description | Default Value | Example |
|---|---|---|---|---|
| channelId | Yes | Specifies wanted channel | 13 | |
| conversationId | Yes | Specifies wanted conversation | 10 |
[
{
"text": "Hi there",
"created": "2023-11-29T11:50:45",
"author": null,
"conversation": {
"name": "Postman testing",
"description": "Running postman tests",
"author": null,
"channel": null
}
}
]
Returns a object of message
https://chathub.com/api/channels/{channelId}/conversations/{conversationId}/messages/{messageId}
| Response format | JSON |
| Requires authentication? | No |
| Name | Required | Description | Default Value | Example |
|---|---|---|---|---|
| channelId | Yes | Specifies wanted channel | 13 | |
| conversationId | Yes | Specifies wanted conversation | 10 | |
| messageId | Yes | Specifies wanted message | 1 |
{
"text": "Hi there",
"created": "2023-11-29T11:50:45",
"author": null,
"conversation": {
"name": "Postman testing",
"description": "Running postman tests",
"author": null,
"channel": null
}
}
Creates conversation in the specified channel
https://chathub.com/api/channels/{channelId}/conversations/{conversationId}/messages
| Response format | JSON |
| Requires authentication? | Yes |
| Name | Required | Description | Default Value | Example |
|---|---|---|---|---|
| channelId | Yes | Specifies wanted channel | 13 | |
| conversationId | Yes | Specifies wanted conversation | 10 | |
| text | Yes | Text of the message | New message |
Deletes the specified message
https://chathub.com/api/channels/{channelId}/conversations/{conversationId}/messages/{messageId}
| Response format | JSON |
| Requires authentication? | Yes |
| Name | Required | Description | Default Value | Example |
|---|---|---|---|---|
| channelId | Yes | Specifies wanted channel | 13 | |
| conversationId | Yes | Specifies wanted conversation | 10 | |
| messageId | Yes | Specifies wanted message | 1 |