-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(java): Add accept header if endpoint has errors #5848
Changes from 4 commits
4f82a63
68731bb
ae80235
6271d1d
fcab3fa
1b453e7
1081703
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
{ | ||
"version": "1.0.0", | ||
"types": {}, | ||
"headers": [], | ||
"endpoints": { | ||
"endpoint_service.endpoint": { | ||
"auth": { | ||
"type": "bearer", | ||
"token": { | ||
"originalName": "token", | ||
"camelCase": { | ||
"unsafeName": "token", | ||
"safeName": "token" | ||
}, | ||
"snakeCase": { | ||
"unsafeName": "token", | ||
"safeName": "token" | ||
}, | ||
"screamingSnakeCase": { | ||
"unsafeName": "TOKEN", | ||
"safeName": "TOKEN" | ||
}, | ||
"pascalCase": { | ||
"unsafeName": "Token", | ||
"safeName": "Token" | ||
} | ||
} | ||
}, | ||
"declaration": { | ||
"name": { | ||
"originalName": "endpoint", | ||
"camelCase": { | ||
"unsafeName": "endpoint", | ||
"safeName": "endpoint" | ||
}, | ||
"snakeCase": { | ||
"unsafeName": "endpoint", | ||
"safeName": "endpoint" | ||
}, | ||
"screamingSnakeCase": { | ||
"unsafeName": "ENDPOINT", | ||
"safeName": "ENDPOINT" | ||
}, | ||
"pascalCase": { | ||
"unsafeName": "Endpoint", | ||
"safeName": "Endpoint" | ||
} | ||
}, | ||
"fernFilepath": { | ||
"allParts": [ | ||
{ | ||
"originalName": "service", | ||
"camelCase": { | ||
"unsafeName": "service", | ||
"safeName": "service" | ||
}, | ||
"snakeCase": { | ||
"unsafeName": "service", | ||
"safeName": "service" | ||
}, | ||
"screamingSnakeCase": { | ||
"unsafeName": "SERVICE", | ||
"safeName": "SERVICE" | ||
}, | ||
"pascalCase": { | ||
"unsafeName": "Service", | ||
"safeName": "Service" | ||
} | ||
} | ||
], | ||
"packagePath": [], | ||
"file": { | ||
"originalName": "service", | ||
"camelCase": { | ||
"unsafeName": "service", | ||
"safeName": "service" | ||
}, | ||
"snakeCase": { | ||
"unsafeName": "service", | ||
"safeName": "service" | ||
}, | ||
"screamingSnakeCase": { | ||
"unsafeName": "SERVICE", | ||
"safeName": "SERVICE" | ||
}, | ||
"pascalCase": { | ||
"unsafeName": "Service", | ||
"safeName": "Service" | ||
} | ||
} | ||
} | ||
}, | ||
"location": { | ||
"method": "DELETE", | ||
"path": "/container/" | ||
}, | ||
"request": { | ||
"type": "body", | ||
"pathParameters": [], | ||
"body": null | ||
}, | ||
"response": { | ||
"type": "json" | ||
} | ||
} | ||
}, | ||
"environments": null | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
{ | ||
"types": {}, | ||
"subpackages": { | ||
"subpackage_service": { | ||
"subpackageId": "subpackage_service", | ||
"name": "service", | ||
"endpoints": [ | ||
{ | ||
"auth": true, | ||
"method": "DELETE", | ||
"id": "endpoint", | ||
"originalEndpointId": "endpoint_service.endpoint", | ||
"name": "Endpoint", | ||
"path": { | ||
"pathParameters": [], | ||
"parts": [ | ||
{ | ||
"type": "literal", | ||
"value": "/container" | ||
}, | ||
{ | ||
"type": "literal", | ||
"value": "/" | ||
} | ||
] | ||
}, | ||
"queryParameters": [], | ||
"headers": [], | ||
"errorsV2": [ | ||
{ | ||
"type": { | ||
"type": "alias", | ||
"value": { | ||
"type": "unknown" | ||
} | ||
}, | ||
"statusCode": 404, | ||
"description": "Admin not found", | ||
"name": "NotFoundError", | ||
"examples": [] | ||
} | ||
], | ||
"examples": [ | ||
{ | ||
"path": "/container/", | ||
"pathParameters": {}, | ||
"queryParameters": {}, | ||
"headers": {}, | ||
"responseStatusCode": 204, | ||
"codeSamples": [] | ||
} | ||
] | ||
} | ||
], | ||
"webhooks": [], | ||
"websockets": [], | ||
"types": [], | ||
"subpackages": [] | ||
} | ||
}, | ||
"rootPackage": { | ||
"endpoints": [], | ||
"webhooks": [], | ||
"websockets": [], | ||
"types": [], | ||
"subpackages": [ | ||
"subpackage_service" | ||
] | ||
}, | ||
"auth": { | ||
"type": "bearerAuth", | ||
"tokenName": "token" | ||
}, | ||
"snippetsConfiguration": {}, | ||
"globalHeaders": [] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussed offline - we can actually model this in a way where the
httpEndpoint
has anaccept
property that represents the set ofAccept
header values that should be sent in the request. Same idea that you're capturing here, just slightly different implementation.