Official API documentation for TaskSocial, a social accountability application.
The documentation is built with OpenAPI, Redocly, and Mintlify and includes an interactive API reference connected to the deployed TaskSocial backend.
Live Documentation: https://task-social.mintlify.app
The documentation includes:
- Getting Started guide
- Authentication guide
- Creating Your First Task guide
- API Testing guide
- Interactive API Reference
- Request and response examples
- Authentication and task ownership details
TaskSocial provides a REST API for:
- User registration
- User authentication
- Task creation
- Viewing personal tasks
- Viewing the shared task feed
- Updating tasks
- Deleting tasks
- User logout
https://tasksocial-production.up.railway.app
API endpoints use the /api/v1 path.
For example:
POST /api/v1/auth/loginTaskSocial uses JWT-based authentication.
After a successful login, the backend creates a JWT and stores it in an HttpOnly tokenName cookie.
Protected requests use this cookie for authentication.
Login
↓
JWT created
↓
HttpOnly tokenName cookie
↓
Authenticated request
↓
JWT verification
↓
Controller
The API also checks task ownership when users update or delete tasks.
The API is described using an OpenAPI 3.1 specification.
The OpenAPI definition is organized into separate files for better maintainability:
openapi/
├── openapi.yaml
├── components/
│ └── schemas.yaml
└── paths/
├── auth.yaml
└── tasks.yaml
The specification is bundled into a single file before being consumed by Mintlify.
Redocly is used to:
- Validate the OpenAPI specification
- Bundle the multi-file specification
- Catch documentation and schema issues
Bundle the specification with:
npx @redocly/cli bundle openapi.yaml -o openapi-bundled.yamlValidate it with:
npx @redocly/cli lint openapi-bundled.yamlA successful validation should report that the API description is valid.
Mintlify is used to build and deploy the developer documentation.
The documentation project contains:
mintlify/
├── docs.json
├── index.mdx
├── openapi-bundled.yaml
└── guides/
├── getting-started.mdx
├── authentication.mdx
├── creating-your-first-task.mdx
└── api-testing.mdx
Clone the repository:
git clone https://github.com/Shahzebdev/tasksocial-docs.git
cd tasksocial-docsInstall the Mintlify CLI if you don't already have it:
npm install -g mintCheck the installed version:
mint --versionFrom the mintlify directory:
cd mintlify
mint validatemint devThe documentation will be available at:
http://localhost:3000
The API Reference includes an interactive playground.
The playground is configured to use the deployed TaskSocial API:
https://tasksocial-production.up.railway.app
It supports the TaskSocial authentication flow using the tokenName HttpOnly cookie.
The main workflow can be tested directly from the documentation:
Register
↓
Login
↓
Authentication cookie
↓
Create task
↓
Get tasks
↓
Update task
↓
Delete task
↓
Logout
Introduces the API, base URL, available capabilities, and the typical TaskSocial API flow.
Explains registration, login, JWT authentication, HttpOnly cookies, protected endpoints, and task ownership.
Walks through creating, retrieving, updating, and deleting tasks.
Shows how to test the TaskSocial API using Postman.
The documentation is connected to GitHub and deployed through Mintlify.
The deployment workflow is:
Local documentation changes
↓
mint validate
↓
Git commit
↓
git push
↓
GitHub
↓
Mintlify
↓
Live documentation
The live documentation is available at:
https://task-social.mintlify.app
tasksocial-docs/
│
├── mintlify/
│ ├── docs.json
│ ├── index.mdx
│ ├── openapi-bundled.yaml
│ └── guides/
│ ├── getting-started.mdx
│ ├── authentication.mdx
│ ├── creating-your-first-task.mdx
│ └── api-testing.mdx
│
└── openapi/
├── openapi.yaml
├── redocly.yaml
├── openapi-bundled.yaml
├── components/
└── paths/
When making changes to the API documentation:
Edit OpenAPI / MDX
↓
Validate OpenAPI with Redocly
↓
Bundle OpenAPI specification
↓
Copy updated bundle to Mintlify
↓
Run mint validate
↓
Preview with mint dev
↓
Test the API Playground
↓
Commit changes
↓
Push to GitHub
This documentation project demonstrates practical experience with:
- API documentation
- OpenAPI 3.1
- REST API documentation
- Redocly
- Mintlify
- MDX documentation
- Interactive API references
- JWT authentication documentation
- Cookie-based authentication
- API testing with Postman
- Git and GitHub workflows
- Documentation deployment
- Developer experience
This project is currently licensed under the terms defined in the repository.