Open fsheikh opened 1 month ago
flowchart TD
A[User fills in blog details and uploads multimedia content] --> B[User clicks 'Post Blog' button]
B --> C{Is the submission valid?}
C -->|Yes| D[Server processes the blog and multimedia content]
D --> E{Was the blog posted successfully?}
E -->|Yes| F[Blog is posted and visible on the 'View Blogs' page]
E -->|No| G[Failure: Pop-up message displayed to user informing about the issue]
C -->|No| H[Failure: Pop-up message displayed to user indicating invalid input]
flowchart TD
A[User selects a language filter on 'View Blogs' page] --> B[API request sent to retrieve blogs in the selected language]
B --> C{Are blogs available in the selected language?}
C -->|Yes| D[Display all blogs in the selected language]
C -->|No| E[Display message: 'No blogs available in this language']
flowchart TD
A[User selects a category from the category list] --> B[API request sent to retrieve blogs in the selected category]
B --> C{Are blogs available in the selected category?}
C -->|Yes| D[Display all blogs in the selected category]
C -->|No| E[Display message: 'No blogs available in this category']
flowchart TD
A[User clicks on the author's name or 'Contact Info' link] --> B[API request sent to retrieve author's contact information]
B --> C{Is the author’s contact information available?}
C -->|Yes| D[Display the author's contact information]
C -->|No| E[Display message: 'Contact information not available']
{ "language": "en", "blogs": [ { "id": 1, "title": "First Blog in English", "content": "This is the content of the first blog in English.", "author": "Author Name", "category": "Technology", "datePublished": "2024-08-20" }, { "id": 2, "title": "Second Blog in English", "content": "This is the content of the second blog in English.", "author": "Author Name", "category": "Science", "datePublished": "2024-08-19" } ] }
{ "language": "ur", "blogs": [ { "id": 1, "title": "پہلا بلاگ", "content": "یہ پہلا اردو بلاگ ہے", "author": "مصنف کا نام", "category": "ٹیکنالوجی", "datePublished": "2024-08-20" } // Add more blogs as needed ] }
{ "language": "de", "blogs": [ { "id": 1, "title": "Erster Blog auf Deutsch", "content": "Dies ist der erste Blog auf Deutsch.", "author": "Autor Name", "category": "Technologie", "datePublished": "2024-08-20" } // Add more blogs as needed ] }
{ "category": "Technology", "blogs": [ { "id": 1, "title": "Tech Blog 1", "content": "Content for tech blog 1.", "author": "Author Name", "language": "en", "datePublished": "2024-08-20" } // Add more blogs in the same category ] }
{ "category": "Technology", "user": "Author Name", "blogs": [ { "id": 1, "title": "Tech Blog by Author", "content": "Content for tech blog by Author Name.", "language": "en", "datePublished": "2024-08-20" } // Add more blogs by the user in the specified category ] }
Request: { "title": "New Blog Title", "content": "This is the content of the new blog.", "language": "en", "datePublished": "2024-08-20" } Response: { "message": "Blog posted successfully", "blogId": 3, "category": "Technology", "user": "Author Name" }
{ "about": { "title": "About Us", "content": "We are a blogging platform dedicated to providing the best content in multiple languages.", "founders": ["Founder 1", "Founder 2"], "established": "2023" } }
{ "contactForm": { "fields": [ { "name": "name", "type": "text", "placeholder": "Your Name" }, { "name": "email", "type": "email", "placeholder": "Your Email" }, { "name": "message", "type": "textarea", "placeholder": "Your Message" } ] } }
REST API with json request and response structure should be documented showing covering at least following use-cases
/en
/ur
/de
/categories/:category
category
/users/:category/:user
category
filtered byuser
/users/:category/:user/post
category
filtered byuser
/about
/contact