Ejercicio: The Space-x team.docx
documentation from Trello Api: https://developer.atlassian.com/cloud/trello/rest/
Http used for this app at localhost: "http://localhost:8080/api"
This application is a bridge between Trello and other Apps. We can create 3 diferent types of cards (An issue, A bug and A task).
- An issue: This represents a business feature that needs implementation, they will provide a short title and a description. All issues gets added to the “To Do” list as unassigned (it will accept 3 parameters: "type", "title" and "description")
- A bug: This represents a problem that needs fixing. They will only provide a description, the title needs to be randomized with the following pattern: bug-{word}-{number}. It doesn't matter that they repeat internally. The bugs should be assigned to a random member of the board and have the “Bug” label. (it will accept 2 parameters: "type" and "description")
- A task: This represents some manual work that needs to be done. It will count with just a title and a category (Maintenance, Research, or Test) each corresponding to a label in trello. (it will accept 3 parameters: "type", "title" and "category")
The ids of the board, card or labels can be obtained from the board url after you add ".json" at the end.. Example: https://trello.com/b/{BOARDID}/the-example-board.json
The urls are left because they are for general use, I leave it as an example.
--trello.key= --trello.token= --trello.bug.label.id= --trello.test.list.id= --trello.research.list.id= --trello.maintenance.list.id= --trello.toDo.list.id= --trello.board.id= --trello.board.url=https://api.trello.com/1/boards --trello.card.url=https://api.trello.com/1/cards --trello.maintenance.label.id= --trello.research.label.id= --trello.test.label.id=
Or you can fill the application.properties
POST BUG
curl --location --request POST 'http://localhost:8080/api?type=bug&description=Cockpit%20is%20not%20depressurizing%20correctly'
POST ISSUE
curl --location --request POST 'http://localhost:8080/api?title=Send%20message&type=issue&description=Let%20pilots%20send%20messages%20to%20Central'
POST TASK
curl --location --request POST 'http://localhost:8080/api?type=task&title=Clean%20the%20Rocket&category=Maintenance'
GET MEMBERS
curl --location --request GET 'http://localhost:8080/api'