Get my tasks
curl --request GET \
--url https://tasksocial-production.up.railway.app/api/v1/tasks/my-tasks \
--cookie tokenName=import requests
url = "https://tasksocial-production.up.railway.app/api/v1/tasks/my-tasks"
headers = {"cookie": "tokenName="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'tokenName='}};
fetch('https://tasksocial-production.up.railway.app/api/v1/tasks/my-tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://tasksocial-production.up.railway.app/api/v1/tasks/my-tasks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "tokenName=",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://tasksocial-production.up.railway.app/api/v1/tasks/my-tasks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "tokenName=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://tasksocial-production.up.railway.app/api/v1/tasks/my-tasks")
.header("cookie", "tokenName=")
.asString();require 'uri'
require 'net/http'
url = URI("https://tasksocial-production.up.railway.app/api/v1/tasks/my-tasks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cookie"] = 'tokenName='
response = http.request(request)
puts response.read_body{
"Tasks": [
{
"title": "<string>",
"description": "<string>",
"author": "<string>",
"status": "pending",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
}{
"message": "<string>"
}{
"message": "<string>"
}Tasks
Get my tasks
Returns tasks belonging to the authenticated user.
GET
/
api
/
v1
/
tasks
/
my-tasks
Get my tasks
curl --request GET \
--url https://tasksocial-production.up.railway.app/api/v1/tasks/my-tasks \
--cookie tokenName=import requests
url = "https://tasksocial-production.up.railway.app/api/v1/tasks/my-tasks"
headers = {"cookie": "tokenName="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'tokenName='}};
fetch('https://tasksocial-production.up.railway.app/api/v1/tasks/my-tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://tasksocial-production.up.railway.app/api/v1/tasks/my-tasks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "tokenName=",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://tasksocial-production.up.railway.app/api/v1/tasks/my-tasks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "tokenName=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://tasksocial-production.up.railway.app/api/v1/tasks/my-tasks")
.header("cookie", "tokenName=")
.asString();require 'uri'
require 'net/http'
url = URI("https://tasksocial-production.up.railway.app/api/v1/tasks/my-tasks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cookie"] = 'tokenName='
response = http.request(request)
puts response.read_body{
"Tasks": [
{
"title": "<string>",
"description": "<string>",
"author": "<string>",
"status": "pending",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
}{
"message": "<string>"
}{
"message": "<string>"
}Authorizations
JWT authentication cookie. The server sets this cookie after a successful login. You do not need to generate or provide an API key manually. Use the login endpoint first, then the browser or HTTP client sends this cookie with protected requests.
Response
Tasks returned successfully.
Show child attributes
Show child attributes