|
105 | 105 | "Auth"
|
106 | 106 | ],
|
107 | 107 | "summary": "Refresh Bearer Token",
|
108 |
| - "description": "This request issues a new Bearer-Token with a new expiration date while also revoking the old\r\n * token.", |
| 108 | + "description": "This request issues a new Bearer-Token with a new expiration date while also revoking the old\n * token.", |
109 | 109 | "operationId": "refreshToken",
|
110 | 110 | "responses": {
|
111 | 111 | "200": {
|
|
828 | 828 | "Likes"
|
829 | 829 | ],
|
830 | 830 | "summary": "[Auth optional] Get likes for status",
|
831 |
| - "description": "Returns array of users that liked the status. Can return an empty dataset when the status\r\n * author or the requesting user has deactivated likes", |
| 831 | + "description": "Returns array of users that liked the status. Can return an empty dataset when the status\n * author or the requesting user has deactivated likes", |
832 | 832 | "operationId": "getLikesForStatus",
|
833 | 833 | "parameters": [
|
834 | 834 | {
|
|
1572 | 1572 | "Checkin"
|
1573 | 1573 | ],
|
1574 | 1574 | "summary": "Search for stations",
|
1575 |
| - "description": "UNSTABLE: This request returns an array of max. 20 station objects matching the query. **CAUTION:** All\r\n * slashes (as well as encoded to %2F) in {query} need to be replaced, preferrably by a space (%20)", |
| 1575 | + "description": "UNSTABLE: This request returns an array of max. 20 station objects matching the query. **CAUTION:** All\n * slashes (as well as encoded to %2F) in {query} need to be replaced, preferrably by a space (%20)", |
1576 | 1576 | "operationId": "indexStation",
|
1577 | 1577 | "parameters": [
|
1578 | 1578 | {
|
|
1854 | 1854 | "example": 11
|
1855 | 1855 | },
|
1856 | 1856 | "duration": {
|
1857 |
| - "description": "Duration in\r\n * minutes", |
| 1857 | + "description": "Duration in\n * minutes", |
1858 | 1858 | "type": "integer",
|
1859 | 1859 | "example": 425
|
1860 | 1860 | }
|
|
1985 | 1985 | {
|
1986 | 1986 | "name": "withPolylines",
|
1987 | 1987 | "in": "query",
|
1988 |
| - "description": "If this parameter is set, the polylines will be returned as well. Otherwise attribute is\r\n * null.", |
| 1988 | + "description": "If this parameter is set, the polylines will be returned as well. Otherwise attribute is\n * null.", |
1989 | 1989 | "schema": {
|
1990 | 1990 | "type": "boolean"
|
1991 | 1991 | }
|
|
2251 | 2251 | "Dashboard"
|
2252 | 2252 | ],
|
2253 | 2253 | "summary": "Get paginated future statuses of current user",
|
2254 |
| - "description": "Returns paginated statuses of the authenticated user, that are more than 20 minutes in the\r\n * future", |
| 2254 | + "description": "Returns paginated statuses of the authenticated user, that are more than 20 minutes in the\n * future", |
2255 | 2255 | "operationId": "getFutureDashboard",
|
2256 | 2256 | "parameters": [
|
2257 | 2257 | {
|
|
2862 | 2862 | "Status"
|
2863 | 2863 | ],
|
2864 | 2864 | "summary": "Create a StatusTag",
|
2865 |
| - "description": "Creates a single StatusTag Object, if user is authorized to. <br><br>The key of a tag is free\r\n * text. You can choose it as you need it. However, <b>please use a namespace for tags</b>\r\n * (<i>namespace:xxx</i>) that only affect your own application.<br><br>For tags related to standard actions\r\n * we recommend the following tags in the trwl namespace:<br>\r\n * <ul>\r\n * <li>trwl:seat (i.e. 61)</li>\r\n * <li>trwl:wagon (i.e. 25)</li>\r\n * <li>trwl:ticket (i.e. BahnCard 100 first))</li>\r\n * <li>trwl:travel_class (i.e. 1, 2, business, economy, ...)</li>\r\n * <li>trwl:locomotive_class (BR424, BR450)</li>\r\n * <li>trwl:wagon_class (i.e. Bpmz)</li>\r\n * <li>trwl:role (i.e. Tf, Zf, Gf, Lokführer, conducteur de train, ...)</li>\r\n * <li>trwl:vehicle_number (i.e. 425 001, Tz9001, 123, ...)</li>\r\n * <li>trwl:passenger_rights (i.e. yes / no / ID of claim)</li>\r\n * </ul>", |
| 2865 | + "description": "Creates a single StatusTag Object, if user is authorized to. <br><br>The key of a tag is free\n * text. You can choose it as you need it. However, <b>please use a namespace for tags</b>\n * (<i>namespace:xxx</i>) that only affect your own application.<br><br>For tags related to standard actions\n * we recommend the following tags in the trwl namespace:<br>\n * <ul>\n * <li>trwl:seat (i.e. 61)</li>\n * <li>trwl:wagon (i.e. 25)</li>\n * <li>trwl:ticket (i.e. BahnCard 100 first))</li>\n * <li>trwl:travel_class (i.e. 1, 2, business, economy, ...)</li>\n * <li>trwl:locomotive_class (BR424, BR450)</li>\n * <li>trwl:wagon_class (i.e. Bpmz)</li>\n * <li>trwl:role (i.e. Tf, Zf, Gf, Lokführer, conducteur de train, ...)</li>\n * <li>trwl:vehicle_number (i.e. 425 001, Tz9001, 123, ...)</li>\n * <li>trwl:passenger_rights (i.e. yes / no / ID of claim)</li>\n * </ul>", |
2866 | 2866 | "operationId": "createSingleStatusTag",
|
2867 | 2867 | "parameters": [
|
2868 | 2868 | {
|
|
3626 | 3626 | "Checkin"
|
3627 | 3627 | ],
|
3628 | 3628 | "summary": "Autocomplete for stations",
|
3629 |
| - "description": "This request returns an array of max. 10 station objects matching the query. **CAUTION:** All\r\n * slashes (as well as encoded to %2F) in {query} need to be replaced, preferrably by a space (%20)", |
| 3629 | + "description": "This request returns an array of max. 10 station objects matching the query. **CAUTION:** All\n * slashes (as well as encoded to %2F) in {query} need to be replaced, preferrably by a space (%20)", |
3630 | 3630 | "operationId": "trainStationAutocomplete",
|
3631 | 3631 | "parameters": [
|
3632 | 3632 | {
|
|
3680 | 3680 | "Checkin"
|
3681 | 3681 | ],
|
3682 | 3682 | "summary": "History for stations",
|
3683 |
| - "description": "This request returns an array of max. 10 most recent station objects that the user has arrived\r\n * at.", |
| 3683 | + "description": "This request returns an array of max. 10 most recent station objects that the user has arrived\n * at.", |
3684 | 3684 | "operationId": "trainStationHistory",
|
3685 | 3685 | "responses": {
|
3686 | 3686 | "200": {
|
|
3932 | 3932 | "properties": {
|
3933 | 3933 | "confirmation": {
|
3934 | 3934 | "title": "confirmation",
|
3935 |
| - "description": "Username of the to be deleted account (needs to match the currently logged in\r\n * user)", |
| 3935 | + "description": "Username of the to be deleted account (needs to match the currently logged in\n * user)", |
3936 | 3936 | "example": "Gertrud123"
|
3937 | 3937 | }
|
3938 | 3938 | },
|
|
4109 | 4109 | "User/Hide and Block"
|
4110 | 4110 | ],
|
4111 | 4111 | "summary": "Block a user",
|
4112 |
| - "description": "Block a specific user. That user will not be able to see your statuses or profile information,\r\n * and cannot send you follow requests. Public statuses are still visible through the incognito mode.", |
| 4112 | + "description": "Block a specific user. That user will not be able to see your statuses or profile information,\n * and cannot send you follow requests. Public statuses are still visible through the incognito mode.", |
4113 | 4113 | "operationId": "createBlock",
|
4114 | 4114 | "requestBody": {
|
4115 | 4115 | "required": true,
|
|
4177 | 4177 | "User/Hide and Block"
|
4178 | 4178 | ],
|
4179 | 4179 | "summary": "Unmute a user",
|
4180 |
| - "description": "Unblock a specific user. They are now able to see your statuses and profile information again,\r\n * and send you follow requests.", |
| 4180 | + "description": "Unblock a specific user. They are now able to see your statuses and profile information again,\n * and send you follow requests.", |
4181 | 4181 | "operationId": "destroyBlock",
|
4182 | 4182 | "requestBody": {
|
4183 | 4183 | "required": true,
|
|
4247 | 4247 | "User/Hide and Block"
|
4248 | 4248 | ],
|
4249 | 4249 | "summary": "Mute a user",
|
4250 |
| - "description": "Mute a specific user. That way they will not be shown on your dashboard and in the active\r\n * journeys tab", |
| 4250 | + "description": "Mute a specific user. That way they will not be shown on your dashboard and in the active\n * journeys tab", |
4251 | 4251 | "operationId": "createMute",
|
4252 | 4252 | "parameters": [
|
4253 | 4253 | {
|
|
4305 | 4305 | "User/Hide and Block"
|
4306 | 4306 | ],
|
4307 | 4307 | "summary": "Unmute a user",
|
4308 |
| - "description": "Unmute a specific user. That way they will be shown on your dashboard and in the active\r\n * journeys tab again", |
| 4308 | + "description": "Unmute a specific user. That way they will be shown on your dashboard and in the active\n * journeys tab again", |
4309 | 4309 | "operationId": "destroyMute",
|
4310 | 4310 | "parameters": [
|
4311 | 4311 | {
|
|
4565 | 4565 | }
|
4566 | 4566 | ]
|
4567 | 4567 | }
|
| 4568 | + }, |
| 4569 | + "/year-in-review": { |
| 4570 | + "get": { |
| 4571 | + "tags": [ |
| 4572 | + "Statistics" |
| 4573 | + ], |
| 4574 | + "summary": "Returns the year in review for the given year and authenticated user", |
| 4575 | + "description": "Please note: This endpoint is only available when the year in review feature is enabled in the backend configuration. There is no full documentation - this endpoint may change every year.", |
| 4576 | + "operationId": "getYearInReview", |
| 4577 | + "responses": { |
| 4578 | + "200": { |
| 4579 | + "description": "JSON object with the year in review data. The structure of the object may change every year. There is no full documentation at this point." |
| 4580 | + }, |
| 4581 | + "400": { |
| 4582 | + "description": "Bad request" |
| 4583 | + }, |
| 4584 | + "401": { |
| 4585 | + "description": "Unauthorized" |
| 4586 | + }, |
| 4587 | + "403": { |
| 4588 | + "description": "Year in review is not active" |
| 4589 | + } |
| 4590 | + }, |
| 4591 | + "security": [ |
| 4592 | + { |
| 4593 | + "passport": [ |
| 4594 | + "create-statuses" |
| 4595 | + ] |
| 4596 | + }, |
| 4597 | + { |
| 4598 | + "token": [] |
| 4599 | + } |
| 4600 | + ] |
| 4601 | + } |
4568 | 4602 | }
|
4569 | 4603 | },
|
4570 | 4604 | "components": {
|
|
4785 | 4819 | },
|
4786 | 4820 | "MastodonVisibility": {
|
4787 | 4821 | "title": "visibility",
|
4788 |
| - "description": "What type of visibility (0=public, 1=unlisted, 2=followers, 3=private) did the user specify for\r\n * future posts to Mastodon? Some instances such as chaos.social discourage bot posts on public timelines.", |
| 4822 | + "description": "What type of visibility (0=public, 1=unlisted, 2=followers, 3=private) did the user specify for\n * future posts to Mastodon? Some instances such as chaos.social discourage bot posts on public timelines.", |
4789 | 4823 | "type": "integer",
|
4790 | 4824 | "enum": [
|
4791 | 4825 | 0,
|
|
4811 | 4845 | },
|
4812 | 4846 | "StatusVisibility": {
|
4813 | 4847 | "title": "visibility",
|
4814 |
| - "description": "What type of visibility (0=public, 1=unlisted, 2=followers, 3=private, 4=authenticated) did the\r\n * user specify?", |
| 4848 | + "description": "What type of visibility (0=public, 1=unlisted, 2=followers, 3=private, 4=authenticated) did the\n * user specify?", |
4815 | 4849 | "type": "integer",
|
4816 | 4850 | "enum": [
|
4817 | 4851 | 0,
|
|
0 commit comments