---
# System prepended metadata

title: APIs

---

# APIs



# 1. Login

Signup

`/user/signup`

```
req:
	email: 1234@gmail.com
	password: asdfasdf

res:
	{
		val: 1/0
	}
```

res example 
```
{
    "val": 1,
    "comment": "signup success"
}

```


Login

`/user/login`
```
req:
	email: 1234@gmail.com
	password: asdfasdf
	
	res:
		{
			val: 1/0
		}
```



# 2. Item

**create item**

`/item/create`

```
req {
	title: 
	type: 0/1/2/3
	// comment
	user: 1234@gmail.com
}

res: {

}
```



**retrive items**

`/item/get`

```
req {
	email
}

res {
    items: [
        {
            item-id: 1
            title: todo 1 
            type: 0/1/2/3
            user: 1234@gmail.com
            creationTime: (TBD)
            // last edit time
            // comment
            complete: false
        }
    ]
    
}
```

**mark done or not**

`/item/update`

```
req {
	item id: 
	done: 0/1
}

res {
}
```


