This repository was archived by the owner on Oct 17, 2023. It is now read-only.
forked from botteonriccardo/API-projectwork-2019
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDatabusAPI.yaml
More file actions
60 lines (59 loc) · 1.33 KB
/
DatabusAPI.yaml
File metadata and controls
60 lines (59 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
openapi: "3.0.0"
info:
description: "Nel file viene documentata l'API necessaria a far funzionare l'applicazione Databus"
version: "1.0.0"
title: "DatabusAPI"
basePath: "/api"
tags:
- name: "data"
description: "Tutti i dati rilevanti al tracciamento del mezzo di trasporto"
schemes:
- "http"
paths:
/data:
post:
tags:
- "data"
summary: "Aggiunge una nuova entrata"
description: "Aggiunge una nuova posizione geografica al database"
operationId: "addGPS"
consumes:
- "application/json"
parameters:
- in: "body"
name: "body"
description: "L'oggetto contenente i dati da memorizzare"
required: true
schema:
$ref: "#/definitions/data"
responses:
200:
description: "OK"
405:
description: "Invalid input"
500:
description: "Server Error"
components:
schemas:
data:
type: "object"
properties:
linea:
type: "integer"
format: "int64"
nautobus:
type: "integer"
format: "int64"
distance:
type: "array"
items:
$ref: "#/components/schemas/dist"
people:
type: "integer"
format: "int64"
date:
type: "string"
format: "date-time"
dist:
type: "number"
format: "double"