Skip to content

Commit 4f68f52

Browse files
dkastlsanak
authored andcommitted
Updates API usage
Signed-off-by: Daniel Kastl <[email protected]>
1 parent 68a8d08 commit 4f68f52

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

README.md

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,22 @@ More information on installing (and uninstalling) Redmine plugins can be found h
4141
- Make sure REST web services is enabled: http://localhost:3000/settings?tab=api
4242
- Enable the plugin in project settings
4343

44-
The Geo-Task-Tracker (GTT) S.M.A.S.H plugin is connects the S.M.A.S.H mobile app with Redmine GTT. It provides a new API endpoint to provide the tracker type configuration as custom notes.
44+
The Geo-Task-Tracker (GTT) S.M.A.S.H plugin is connects the S.M.A.S.H mobile app with Redmine GTT.
45+
It adds new API endpoints to provide the tracker type configuration as custom notes.
46+
47+
**Project--level API endpoint**
48+
49+
```
50+
http://localhost:3000/projects/(project_id)/smash/tags.json
51+
```
52+
53+
**Global level API endpoint**
4554

4655
```
47-
http://localhost:3000/projects/<project-id>/smash_tags.json
56+
http://localhost:3000/smash/tags.json
4857
```
4958

50-
Example output for tracker type `Support`:
59+
Example output for tracker type `Support` (project-level):
5160

5261
```
5362
{
@@ -82,21 +91,11 @@ Example output for tracker type `Support`:
8291
"label": "Priority",
8392
"values": {
8493
"items": [
85-
{
86-
"item": "Low"
87-
},
88-
{
89-
"item": "Normal"
90-
},
91-
{
92-
"item": "High"
93-
},
94-
{
95-
"item": "Urgent"
96-
},
97-
{
98-
"item": "Immediate"
99-
}
94+
{"item": "Low"},
95+
{"item": "Normal"},
96+
{"item": "High"},
97+
{"item": "Urgent"},
98+
{"item": "Immediate"}
10099
]
101100
},
102101
"value": "Normal",

0 commit comments

Comments
 (0)