|
18 | 18 | "description": "Production Server"
|
19 | 19 | },
|
20 | 20 | {
|
21 |
| - "url": "https://traewelling.de/api/v1", |
| 21 | + "url": "http://localhost:8000/api/v1", |
22 | 22 | "description": "This instance"
|
23 | 23 | }
|
24 | 24 | ],
|
|
164 | 164 | "schema": {
|
165 | 165 | "properties": {
|
166 | 166 | "data": {
|
167 |
| - "$ref": "#/components/schemas/Event" |
| 167 | + "$ref": "#/components/schemas/EventResource" |
168 | 168 | }
|
169 | 169 | },
|
170 | 170 | "type": "object"
|
|
346 | 346 | "data": {
|
347 | 347 | "type": "array",
|
348 | 348 | "items": {
|
349 |
| - "$ref": "#/components/schemas/Event" |
| 349 | + "$ref": "#/components/schemas/EventResource" |
350 | 350 | }
|
351 | 351 | }
|
352 | 352 | },
|
|
442 | 442 | "data": {
|
443 | 443 | "type": "array",
|
444 | 444 | "items": {
|
445 |
| - "$ref": "#/components/schemas/Event" |
| 445 | + "$ref": "#/components/schemas/EventResource" |
446 | 446 | }
|
447 | 447 | }
|
448 | 448 | },
|
|
4369 | 4369 | "name": "Station"
|
4370 | 4370 | }
|
4371 | 4371 | },
|
| 4372 | + "EventResource": { |
| 4373 | + "title": "Event", |
| 4374 | + "properties": { |
| 4375 | + "id": { |
| 4376 | + "type": "integer", |
| 4377 | + "example": 39 |
| 4378 | + }, |
| 4379 | + "name": { |
| 4380 | + "type": "string", |
| 4381 | + "example": "9-Euro-Ticket" |
| 4382 | + }, |
| 4383 | + "slug": { |
| 4384 | + "type": "string", |
| 4385 | + "example": "9_euro_ticket" |
| 4386 | + }, |
| 4387 | + "hashtag": { |
| 4388 | + "type": "string", |
| 4389 | + "example": "NeunEuroTicket" |
| 4390 | + }, |
| 4391 | + "host": { |
| 4392 | + "type": "string", |
| 4393 | + "example": "9-Euro-Ticket GmbH" |
| 4394 | + }, |
| 4395 | + "url": { |
| 4396 | + "type": "string", |
| 4397 | + "example": "https://9-euro-ticket.de" |
| 4398 | + }, |
| 4399 | + "begin": { |
| 4400 | + "type": "string", |
| 4401 | + "format": "date-time", |
| 4402 | + "example": "2022-01-01T00:00:00+00:00" |
| 4403 | + }, |
| 4404 | + "end": { |
| 4405 | + "type": "string", |
| 4406 | + "format": "date-time", |
| 4407 | + "example": "2022-01-02T00:00:00+00:00" |
| 4408 | + }, |
| 4409 | + "station": { |
| 4410 | + "$ref": "#/components/schemas/Station" |
| 4411 | + } |
| 4412 | + }, |
| 4413 | + "type": "object" |
| 4414 | + }, |
4372 | 4415 | "AutocompleteStation": {
|
4373 | 4416 | "title": "AutocompleteStation",
|
4374 | 4417 | "description": "shortened train station model",
|
|
4571 | 4614 | "name": "Client"
|
4572 | 4615 | }
|
4573 | 4616 | },
|
4574 |
| - "Event": { |
4575 |
| - "title": "Event", |
4576 |
| - "description": "Event model", |
4577 |
| - "properties": { |
4578 |
| - "id": { |
4579 |
| - "title": "ID", |
4580 |
| - "description": "ID", |
4581 |
| - "type": "integer", |
4582 |
| - "format": "int64", |
4583 |
| - "example": 39 |
4584 |
| - }, |
4585 |
| - "name": { |
4586 |
| - "title": "name", |
4587 |
| - "description": "Name of event", |
4588 |
| - "type": "string", |
4589 |
| - "example": "9-Euro-Ticket" |
4590 |
| - }, |
4591 |
| - "slug": { |
4592 |
| - "title": "slug", |
4593 |
| - "description": "URL-Slug for event", |
4594 |
| - "type": "string", |
4595 |
| - "example": "9_euro_ticket" |
4596 |
| - }, |
4597 |
| - "hashtag": { |
4598 |
| - "title": "hashtag", |
4599 |
| - "description": "social media hashtag for event", |
4600 |
| - "type": "string", |
4601 |
| - "example": "NeunEuroTicket" |
4602 |
| - }, |
4603 |
| - "host": { |
4604 |
| - "title": "host", |
4605 |
| - "description": "host of the event", |
4606 |
| - "example": "Die Bundesregierung" |
4607 |
| - }, |
4608 |
| - "url": { |
4609 |
| - "title": "url", |
4610 |
| - "description": "external URL for this event", |
4611 |
| - "type": "string", |
4612 |
| - "example": "https://www.bundesregierung.de/breg-de/aktuelles/faq-9-euro-ticket-2028756" |
4613 |
| - }, |
4614 |
| - "begin": { |
4615 |
| - "title": "begin", |
4616 |
| - "description": "Timestamp for the start of the event", |
4617 |
| - "example": "2022-06-01T00:00:00+02:00" |
4618 |
| - }, |
4619 |
| - "end": { |
4620 |
| - "title": "end", |
4621 |
| - "description": "Timestamp for the end of the event", |
4622 |
| - "example": "2022-08-31T23:59:00+02:00" |
4623 |
| - }, |
4624 |
| - "station": { |
4625 |
| - "title": "station", |
4626 |
| - "description": "nearest station for this event (nullable)", |
4627 |
| - "type": "object", |
4628 |
| - "nullable": "true", |
4629 |
| - "anyOf": [ |
4630 |
| - { |
4631 |
| - "$ref": "#/components/schemas/Station" |
4632 |
| - }, |
4633 |
| - { |
4634 |
| - "type": "'null'" |
4635 |
| - } |
4636 |
| - ] |
4637 |
| - } |
4638 |
| - }, |
4639 |
| - "type": "object", |
4640 |
| - "xml": { |
4641 |
| - "name": "Event" |
4642 |
| - } |
4643 |
| - }, |
4644 | 4617 | "EventDetails": {
|
4645 | 4618 | "title": "EventDetails",
|
4646 | 4619 | "description": "Statistics/Details for Event",
|
|
5175 | 5148 | "$ref": "#/components/schemas/Trip"
|
5176 | 5149 | },
|
5177 | 5150 | "event": {
|
5178 |
| - "oneOf": [ |
5179 |
| - { |
5180 |
| - "$ref": "#/components/schemas/Event" |
5181 |
| - } |
5182 |
| - ], |
5183 |
| - "nullable": true, |
5184 | 5151 | "title": "event",
|
5185 |
| - "description": "Event model (nullable)" |
| 5152 | + "description": "Event model (nullable)", |
| 5153 | + "nullable": true |
5186 | 5154 | }
|
5187 | 5155 | },
|
5188 | 5156 | "type": "object",
|
|
5956 | 5924 | "scheme": "https",
|
5957 | 5925 | "flows": {
|
5958 | 5926 | "authorizationCode": {
|
5959 |
| - "authorizationUrl": "https://traewelling.de/oauth/authorize", |
5960 |
| - "tokenUrl": "https://traewelling.de/oauth/token", |
5961 |
| - "refreshUrl": "https://traewelling.de/auth/refresh", |
| 5927 | + "authorizationUrl": "http://localhost:8000/oauth/authorize", |
| 5928 | + "tokenUrl": "http://localhost:8000/oauth/token", |
| 5929 | + "refreshUrl": "http://localhost:8000/auth/refresh", |
5962 | 5930 | "scopes": {
|
5963 | 5931 | "read-statuses": "see all statuses",
|
5964 | 5932 | "read-notifications": "see your notifications",
|
|
0 commit comments