Bysell is a site of buying and selling of items inspired on the site of tutti.ch. Go check out the site here!
Simple API of Item of tutti.ch
Contact information:
mohamed.boutaleb@student.supsi.ch
License: Apache 2.0
get all items
Get all the available items in the site
| Code | Description |
|---|---|
| 200 | Returns all the items in json array |
| 400 | bad input parameter |
adds an item on tutti.ch
Adds an item to the system
| Code | Description |
|---|---|
| 200 | Returns the item created |
| 400 | invalid input, object invalid |
get a specific existing item
Get the item from the system if exists
| Name | Located in | Description | Required | Schema |
|---|---|---|---|---|
| id | path | Item ID | Yes | long |
| Code | Description |
|---|---|
| 200 | Returns the item if exists |
| 404 | Item with that Id do not exists |
deletes an item on tutti.ch
Deletes an existing item on the system
| Name | Located in | Description | Required | Schema |
|---|---|---|---|---|
| id | path | Yes | integer |
| Code | Description |
|---|---|
| 200 | item deleted |
| 404 | item id not found |
updates/creates an item on tutti.ch
Updates/creates an item to the system
| Name | Located in | Description | Required | Schema |
|---|---|---|---|---|
| id | path | Yes | integer |
| Code | Description |
|---|---|
| 200 | item updated |
| 201 | item created |
| 400 | invalid input, object invalid |
updates an item that already exists on tutti.ch
Updates a existing item to the system
| Name | Located in | Description | Required | Schema |
|---|---|---|---|---|
| id | path | Item to add to the site | Yes | object |
| Code | Description |
|---|---|
| 400 | invalid input, object invalid |
| 404 | item id, not found |
| Name | Type | Description | Required |
|---|---|---|---|
| author | string | Example: "Thomas Anderson" |
Yes |
| Name | Type | Description | Required |
|---|---|---|---|
| author | string | Example: "Richard Gere" |
Yes |
| title | string | Example: "Iphone 11 256 4 month warrancy" |
Yes |
| description | string | Example: "I sell a new iphone 11 with 256 gb of ssd with warrancy" |
Yes |