Compare commits
26 Commits
developmen
...
6eda09efbe
| Author | SHA1 | Date | |
|---|---|---|---|
| 6eda09efbe | |||
| dc1751b852 | |||
| 760da37fe3 | |||
| adb589ef49 | |||
| fbcb1ff6bb | |||
| 68eca53428 | |||
| 694582091b | |||
| 254d3b09ae | |||
| 1c7255fa72 | |||
| 574b8caf49 | |||
| dacc6cade4 | |||
| 6d93e58c98 | |||
| 1edeb5178d | |||
| 1e6a843330 | |||
| b797105afc | |||
| 741f6c34dd | |||
| cb2e4d1d60 | |||
| 7449bb1a06 | |||
| 791d46ff6b | |||
| 5b9a836c65 | |||
| cec3fa68ad | |||
| 00243eb3b5 | |||
| 8cd8199417 | |||
| 738aaa0a6d | |||
| 094262e414 | |||
| 5bc944a908 |
@@ -19,6 +19,7 @@ https://www.astera.com/de/type/blog/api-design-best-practices
|
||||
https://www.citusdata.com/blog/2016/03/30/five-ways-to-paginate/
|
||||
https://stackoverflow.blog/2021/10/06/best-practices-for-authentication-and-authorization-for-rest-apis/
|
||||
https://www.akamai.com/blog/security/rest-api-security-best-practices
|
||||
https://jakarta.ee/specifications/data/1.0/
|
||||
|
||||
# Examples
|
||||
|
||||
@@ -26,3 +27,4 @@ https://docs.hetzner.cloud/
|
||||
https://opensource.zalando.com/restful-api-guidelines
|
||||
https://kubernetes.io/docs/reference/using-api/api-concepts
|
||||
https://docs.stripe.com/api/prices
|
||||
https://developer.clickup.com/docs/authentication
|
||||
|
||||
@@ -1287,6 +1287,62 @@ paths:
|
||||
$ref: "#/components/responses/GenericError"
|
||||
security:
|
||||
- SessionScheme: []
|
||||
/Documents/{Guid}/custommethods/AcceptOffer:
|
||||
post:
|
||||
tags:
|
||||
- "Documents"
|
||||
description: "Accepts an offer. Dependant on the implementation, it could be that the offer is after the operation an order."
|
||||
parameters:
|
||||
- $ref: "#/components/parameters/GuidPathParameter"
|
||||
- $ref: "#/components/parameters/_HashValueParameter"
|
||||
- name: "Comment"
|
||||
in: "query"
|
||||
required: false
|
||||
schema:
|
||||
type: "string"
|
||||
default: null
|
||||
example: "Thanks you!"
|
||||
responses:
|
||||
200:
|
||||
description: "successful operation"
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Document"
|
||||
401:
|
||||
$ref: "#/components/responses/SessionOfOnlineUserOrHigherRequired"
|
||||
default:
|
||||
$ref: "#/components/responses/GenericError"
|
||||
security:
|
||||
- SessionScheme: []
|
||||
/Documents/{Guid}/custommethods/RejectOffer:
|
||||
post:
|
||||
tags:
|
||||
- "Documents"
|
||||
description: "Rejects an offer. Dependant on the implementation, the offer keeps beeing open for further responses or gets historic."
|
||||
parameters:
|
||||
- $ref: "#/components/parameters/GuidPathParameter"
|
||||
- $ref: "#/components/parameters/_HashValueParameter"
|
||||
- name: "Comment"
|
||||
in: "query"
|
||||
required: false
|
||||
schema:
|
||||
type: "string"
|
||||
default: null
|
||||
example: "The price is higher than excepted. Can you make another offer?"
|
||||
responses:
|
||||
200:
|
||||
description: "successful operation"
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Document"
|
||||
401:
|
||||
$ref: "#/components/responses/SessionOfOnlineUserOrHigherRequired"
|
||||
default:
|
||||
$ref: "#/components/responses/GenericError"
|
||||
security:
|
||||
- SessionScheme: []
|
||||
/DocumentPositions:
|
||||
get:
|
||||
tags:
|
||||
@@ -4206,6 +4262,7 @@ components:
|
||||
- "UsersMayEnterANewLicenceTag"
|
||||
- "IsConnectedWithATyreStorage"
|
||||
- "DeadlineTimeInSecondsSinceMidnight"
|
||||
- "DeadlineTimeInSecondsSinceMidnight"
|
||||
properties:
|
||||
Guid:
|
||||
type: "string"
|
||||
@@ -4230,6 +4287,16 @@ components:
|
||||
type: "boolean"
|
||||
DeadlineTimeInSecondsSinceMidnight:
|
||||
type: "integer"
|
||||
RedirectUrlType:
|
||||
type: "string"
|
||||
enum:
|
||||
- "None"
|
||||
- "NewTab"
|
||||
- "SameTab"
|
||||
RedirectUrl:
|
||||
type: "string"
|
||||
RedirectUrlShallBeShownAsOptionalButton:
|
||||
type: "boolean"
|
||||
_HashValue:
|
||||
$ref: "#/components/schemas/_HashValue"
|
||||
example:
|
||||
|
||||
1084
src/v2/shop.yaml
1084
src/v2/shop.yaml
File diff suppressed because it is too large
Load Diff
131
src/v2/tpms.yaml
131
src/v2/tpms.yaml
@@ -1,7 +1,7 @@
|
||||
openapi: 3.0.0
|
||||
info:
|
||||
title: "TyrePro-API, TPMS"
|
||||
version: "Version 4"
|
||||
version: "Version 7"
|
||||
servers:
|
||||
- url: "https://musterreifen.com/api/tpms"
|
||||
description: "Development server"
|
||||
@@ -167,6 +167,57 @@ paths:
|
||||
$ref: "#/components/responses/GenericError"
|
||||
security:
|
||||
- SessionScheme: []
|
||||
/CustomerStorages/{Guid}/custommethods/Predecessor:
|
||||
get:
|
||||
tags:
|
||||
- "TPMS / customer storage"
|
||||
parameters:
|
||||
- $ref: "#/components/parameters/GuidPathParameter"
|
||||
responses:
|
||||
200:
|
||||
description: "successful operation"
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/CustomerStorage"
|
||||
default:
|
||||
$ref: "#/components/responses/GenericError"
|
||||
security:
|
||||
- SessionScheme: []
|
||||
/CustomerStorages/{Guid}/custommethods/Rearrange:
|
||||
post:
|
||||
tags:
|
||||
- "TPMS / customer storage"
|
||||
parameters:
|
||||
- $ref: "#/components/parameters/GuidPathParameter"
|
||||
responses:
|
||||
200:
|
||||
description: "successful operation"
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/CustomerStorage"
|
||||
default:
|
||||
$ref: "#/components/responses/GenericError"
|
||||
security:
|
||||
- SessionScheme: []
|
||||
/CustomerStorages/{Guid}/custommethods/Successor:
|
||||
get:
|
||||
tags:
|
||||
- "TPMS / customer storage"
|
||||
parameters:
|
||||
- $ref: "#/components/parameters/GuidPathParameter"
|
||||
responses:
|
||||
200:
|
||||
description: "successful operation"
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/CustomerStorage"
|
||||
default:
|
||||
$ref: "#/components/responses/GenericError"
|
||||
security:
|
||||
- SessionScheme: []
|
||||
/CustomerStoragePositions/{Guid}:
|
||||
get:
|
||||
tags:
|
||||
@@ -572,6 +623,7 @@ paths:
|
||||
$ref: "#/components/schemas/Customer"
|
||||
default:
|
||||
$ref: "#/components/responses/GenericError"
|
||||
deprecated: true
|
||||
security:
|
||||
- SessionScheme: []
|
||||
/CustomerStorages:
|
||||
@@ -599,6 +651,7 @@ paths:
|
||||
$ref: "#/components/schemas/CustomerStorage"
|
||||
default:
|
||||
$ref: "#/components/responses/GenericError"
|
||||
deprecated: true
|
||||
security:
|
||||
- SessionScheme: []
|
||||
/CustomerVehicles:
|
||||
@@ -625,6 +678,7 @@ paths:
|
||||
$ref: "#/components/schemas/CustomerVehicle"
|
||||
default:
|
||||
$ref: "#/components/responses/GenericError"
|
||||
deprecated: true
|
||||
security:
|
||||
- SessionScheme: []
|
||||
/CustomerVehicles/{Guid}/CustomerStorages:
|
||||
@@ -653,6 +707,7 @@ paths:
|
||||
$ref: "#/components/schemas/CustomerStorage"
|
||||
default:
|
||||
$ref: "#/components/responses/GenericError"
|
||||
deprecated: true
|
||||
security:
|
||||
- SessionScheme: []
|
||||
/CustomerVehicles/{Guid}/TpmsMeasurements:
|
||||
@@ -680,6 +735,7 @@ paths:
|
||||
$ref: "#/components/schemas/TpmsMeasurement"
|
||||
default:
|
||||
$ref: "#/components/responses/GenericError"
|
||||
deprecated: true
|
||||
security:
|
||||
- SessionScheme: []
|
||||
post:
|
||||
@@ -702,6 +758,7 @@ paths:
|
||||
$ref: "#/components/schemas/TpmsMeasurement"
|
||||
default:
|
||||
$ref: "#/components/responses/GenericError"
|
||||
deprecated: true
|
||||
security:
|
||||
- SessionScheme: []
|
||||
/DbBlobs/{Guid}:
|
||||
@@ -722,6 +779,7 @@ paths:
|
||||
$ref: "#/components/schemas/DbBlob"
|
||||
default:
|
||||
$ref: "#/components/responses/GenericError"
|
||||
deprecated: true
|
||||
security:
|
||||
- SessionScheme: []
|
||||
/DmsFiles:
|
||||
@@ -743,6 +801,7 @@ paths:
|
||||
$ref: "#/components/schemas/DmsFile"
|
||||
default:
|
||||
$ref: "#/components/responses/GenericError"
|
||||
deprecated: true
|
||||
security:
|
||||
- SessionScheme: []
|
||||
/Documents:
|
||||
@@ -782,6 +841,7 @@ paths:
|
||||
$ref: "#/components/schemas/Document"
|
||||
default:
|
||||
$ref: "#/components/responses/GenericError"
|
||||
deprecated: true
|
||||
security:
|
||||
- SessionScheme: []
|
||||
/Documents/{Guid}:
|
||||
@@ -799,6 +859,7 @@ paths:
|
||||
$ref: "#/components/schemas/Document"
|
||||
default:
|
||||
$ref: "#/components/responses/GenericError"
|
||||
deprecated: true
|
||||
security:
|
||||
- SessionScheme: []
|
||||
/Employees:
|
||||
@@ -826,6 +887,7 @@ paths:
|
||||
$ref: "#/components/schemas/Employee"
|
||||
default:
|
||||
$ref: "#/components/responses/GenericError"
|
||||
deprecated: true
|
||||
security:
|
||||
- SessionScheme: []
|
||||
/Employees/{Guid}:
|
||||
@@ -843,6 +905,7 @@ paths:
|
||||
$ref: "#/components/schemas/Employee"
|
||||
default:
|
||||
$ref: "#/components/responses/GenericError"
|
||||
deprecated: true
|
||||
security:
|
||||
- SessionScheme: []
|
||||
/TpmsMeasurements:
|
||||
@@ -864,6 +927,7 @@ paths:
|
||||
$ref: "#/components/schemas/TpmsMeasurement"
|
||||
default:
|
||||
$ref: "#/components/responses/GenericError"
|
||||
deprecated: true
|
||||
security:
|
||||
- SessionScheme: []
|
||||
/TpmsMeasurements/{Guid}:
|
||||
@@ -881,6 +945,7 @@ paths:
|
||||
$ref: "#/components/schemas/TpmsMeasurement"
|
||||
default:
|
||||
$ref: "#/components/responses/GenericError"
|
||||
deprecated: true
|
||||
security:
|
||||
- SessionScheme: []
|
||||
patch:
|
||||
@@ -904,6 +969,7 @@ paths:
|
||||
$ref: "#/components/schemas/TpmsMeasurement"
|
||||
default:
|
||||
$ref: "#/components/responses/GenericError"
|
||||
deprecated: true
|
||||
security:
|
||||
- SessionScheme: []
|
||||
/TpmsMeasurements/{Guid}/DmsFiles:
|
||||
@@ -931,6 +997,7 @@ paths:
|
||||
$ref: "#/components/schemas/DmsFile"
|
||||
default:
|
||||
$ref: "#/components/responses/GenericError"
|
||||
deprecated: true
|
||||
security:
|
||||
- SessionScheme: []
|
||||
post:
|
||||
@@ -953,6 +1020,7 @@ paths:
|
||||
$ref: "#/components/schemas/DmsFile"
|
||||
default:
|
||||
$ref: "#/components/responses/GenericError"
|
||||
deprecated: true
|
||||
security:
|
||||
- SessionScheme: []
|
||||
/TpmsMeasurements/{Guid}/TpmsMeasurementPositions:
|
||||
@@ -980,6 +1048,7 @@ paths:
|
||||
$ref: "#/components/schemas/TpmsMeasurementPosition"
|
||||
default:
|
||||
$ref: "#/components/responses/GenericError"
|
||||
deprecated: true
|
||||
security:
|
||||
- SessionScheme: []
|
||||
post:
|
||||
@@ -1002,6 +1071,7 @@ paths:
|
||||
$ref: "#/components/schemas/TpmsMeasurementPosition"
|
||||
default:
|
||||
$ref: "#/components/responses/GenericError"
|
||||
deprecated: true
|
||||
security:
|
||||
- SessionScheme: []
|
||||
/TpmsMeasurementPositions:
|
||||
@@ -1023,6 +1093,7 @@ paths:
|
||||
$ref: "#/components/schemas/TpmsMeasurementPosition"
|
||||
default:
|
||||
$ref: "#/components/responses/GenericError"
|
||||
deprecated: true
|
||||
security:
|
||||
- SessionScheme: []
|
||||
/TpmsMeasurementPositions/{Guid}:
|
||||
@@ -1040,6 +1111,7 @@ paths:
|
||||
$ref: "#/components/schemas/TpmsMeasurementPosition"
|
||||
default:
|
||||
$ref: "#/components/responses/GenericError"
|
||||
deprecated: true
|
||||
security:
|
||||
- SessionScheme: []
|
||||
patch:
|
||||
@@ -1063,6 +1135,7 @@ paths:
|
||||
$ref: "#/components/schemas/TpmsMeasurementPosition"
|
||||
default:
|
||||
$ref: "#/components/responses/GenericError"
|
||||
deprecated: true
|
||||
security:
|
||||
- SessionScheme: []
|
||||
/TpmsMeasurementPositions/{Guid}/DmsFiles:
|
||||
@@ -1090,6 +1163,7 @@ paths:
|
||||
$ref: "#/components/schemas/DmsFile"
|
||||
default:
|
||||
$ref: "#/components/responses/GenericError"
|
||||
deprecated: true
|
||||
security:
|
||||
- SessionScheme: []
|
||||
post:
|
||||
@@ -1112,6 +1186,7 @@ paths:
|
||||
$ref: "#/components/schemas/DmsFile"
|
||||
default:
|
||||
$ref: "#/components/responses/GenericError"
|
||||
deprecated: true
|
||||
security:
|
||||
- SessionScheme: []
|
||||
/VehicleTypes:
|
||||
@@ -1139,6 +1214,7 @@ paths:
|
||||
$ref: "#/components/schemas/VehicleType"
|
||||
default:
|
||||
$ref: "#/components/responses/GenericError"
|
||||
deprecated: true
|
||||
security:
|
||||
- SessionScheme: []
|
||||
/VehicleTypes/{Guid}:
|
||||
@@ -1156,6 +1232,7 @@ paths:
|
||||
$ref: "#/components/schemas/VehicleType"
|
||||
default:
|
||||
$ref: "#/components/responses/GenericError"
|
||||
deprecated: true
|
||||
security:
|
||||
- SessionScheme: []
|
||||
components:
|
||||
@@ -1233,10 +1310,13 @@ components:
|
||||
type: "object"
|
||||
required:
|
||||
- "Guid"
|
||||
- "Score"
|
||||
- "Number"
|
||||
properties:
|
||||
Guid:
|
||||
type: "string"
|
||||
Score:
|
||||
type: "number"
|
||||
Number:
|
||||
type: "integer"
|
||||
Name1:
|
||||
@@ -1255,11 +1335,14 @@ components:
|
||||
type: "object"
|
||||
required:
|
||||
- "Guid"
|
||||
- "Score"
|
||||
- "GuidCustomer"
|
||||
- "CustomerNumber"
|
||||
properties:
|
||||
Guid:
|
||||
type: "string"
|
||||
Score:
|
||||
type: "number"
|
||||
LicenceTagNumber:
|
||||
type: "string"
|
||||
GuidCustomer:
|
||||
@@ -1274,14 +1357,24 @@ components:
|
||||
type: "object"
|
||||
required:
|
||||
- "Guid"
|
||||
- "Score"
|
||||
- "Number"
|
||||
- "ContractStartDate"
|
||||
- "IsActive"
|
||||
- "GuidCustomer"
|
||||
- "CustomerNumber"
|
||||
properties:
|
||||
Guid:
|
||||
type: "string"
|
||||
Score:
|
||||
type: "number"
|
||||
Number:
|
||||
type: "integer"
|
||||
ContractStartDate:
|
||||
type: "string"
|
||||
format: "date"
|
||||
IsActive:
|
||||
type: "boolean"
|
||||
DimensionFrontLeft:
|
||||
type: "string"
|
||||
LicenceTagNumber:
|
||||
@@ -1294,12 +1387,19 @@ components:
|
||||
type: "integer"
|
||||
CustomerName1:
|
||||
type: "string"
|
||||
StorageDesignation:
|
||||
type: "string"
|
||||
StoragePlaceDesignation:
|
||||
type: "string"
|
||||
RemoteStorageReference:
|
||||
type: "string"
|
||||
Documents:
|
||||
type: "array"
|
||||
items:
|
||||
type: "object"
|
||||
required:
|
||||
- "Guid"
|
||||
- "Score"
|
||||
- "DocumentTypeDesignation"
|
||||
- "Date"
|
||||
- "Number"
|
||||
@@ -1310,6 +1410,8 @@ components:
|
||||
properties:
|
||||
Guid:
|
||||
type: "string"
|
||||
Score:
|
||||
type: "number"
|
||||
DocumentTypeDesignation:
|
||||
type: "string"
|
||||
Date:
|
||||
@@ -1339,12 +1441,15 @@ components:
|
||||
type: "object"
|
||||
required:
|
||||
- "Guid"
|
||||
- "Score"
|
||||
- "StartMoment"
|
||||
- "Designation"
|
||||
- "WasCreatedByOnlineScheduler"
|
||||
properties:
|
||||
Guid:
|
||||
type: "string"
|
||||
Score:
|
||||
type: "number"
|
||||
StartMoment:
|
||||
type: "string"
|
||||
format: "date-time"
|
||||
@@ -1393,6 +1498,8 @@ components:
|
||||
type: "string"
|
||||
GuidStorageLocation:
|
||||
type: "string"
|
||||
RemoteStorageReference:
|
||||
type: "string"
|
||||
CommentExternal:
|
||||
type: "string"
|
||||
CommentInternal:
|
||||
@@ -1405,6 +1512,7 @@ components:
|
||||
- "Guid"
|
||||
- "GuidCustomerStorage"
|
||||
- "PositionDescription"
|
||||
- "PositionDescriptionDesignation"
|
||||
properties:
|
||||
Guid:
|
||||
type: "string"
|
||||
@@ -1414,6 +1522,10 @@ components:
|
||||
readOnly: true
|
||||
PositionDescription:
|
||||
type: "string"
|
||||
PositionDescriptionDesignation:
|
||||
type: "string"
|
||||
GuidArticleTyre:
|
||||
type: "string"
|
||||
TyreDimension:
|
||||
type: "string"
|
||||
TyreManufacturer:
|
||||
@@ -1430,6 +1542,8 @@ components:
|
||||
type: "integer"
|
||||
TyreDotWeek:
|
||||
type: "integer"
|
||||
GuidArticleRim:
|
||||
type: "string"
|
||||
RimDimension:
|
||||
type: "string"
|
||||
RimManufacturer:
|
||||
@@ -1445,6 +1559,8 @@ components:
|
||||
- "SteelRim"
|
||||
- "WithoutRim"
|
||||
- "Unknown"
|
||||
GuidArticleTpms:
|
||||
type: "string"
|
||||
TpmsSensorId:
|
||||
type: "string"
|
||||
TpmsSensorBatteryInPercent:
|
||||
@@ -1476,10 +1592,13 @@ components:
|
||||
type: "object"
|
||||
readOnly: true
|
||||
required:
|
||||
- "Guid"
|
||||
- "Type"
|
||||
- "Designation"
|
||||
- "Axles"
|
||||
properties:
|
||||
Guid:
|
||||
type: "string"
|
||||
Type:
|
||||
type: "string"
|
||||
enum:
|
||||
@@ -1503,6 +1622,7 @@ components:
|
||||
- "IsDrivingAxle"
|
||||
- "IsReserveAxle"
|
||||
- "IsSteeringAxle"
|
||||
- "Designation"
|
||||
- "Positions"
|
||||
properties:
|
||||
BlockNumberFrontToBack:
|
||||
@@ -1513,6 +1633,8 @@ components:
|
||||
type: "boolean"
|
||||
IsSteeringAxle:
|
||||
type: "boolean"
|
||||
Designation:
|
||||
type: "string"
|
||||
Positions:
|
||||
type: "array"
|
||||
items:
|
||||
@@ -1520,11 +1642,14 @@ components:
|
||||
required:
|
||||
- "BlockNumberLeftToRight"
|
||||
- "PositionDescription"
|
||||
- "Designation"
|
||||
properties:
|
||||
BlockNumberLeftToRight:
|
||||
type: "integer"
|
||||
PositionDescription:
|
||||
type: "string"
|
||||
Designation:
|
||||
type: "string"
|
||||
ChassisNumber:
|
||||
type: "string"
|
||||
EgTypeApprovalNumber:
|
||||
@@ -1569,6 +1694,7 @@ components:
|
||||
type: "object"
|
||||
required:
|
||||
- "Guid"
|
||||
- "ProgramIdentifier"
|
||||
- "ProgramIdentifierDesignation"
|
||||
- "Type"
|
||||
- "Designation"
|
||||
@@ -1580,6 +1706,9 @@ components:
|
||||
ProgramIdentifierDesignation:
|
||||
type: "string"
|
||||
readOnly: true
|
||||
ProgramIdentifier:
|
||||
type: "string"
|
||||
readOnly: true
|
||||
Type:
|
||||
type: "string"
|
||||
enum:
|
||||
|
||||
Reference in New Issue
Block a user