yao/openapi
Max d54572a7d1 Refactor OAuth response handling and improve content type management
- Updated response methods to standardize Content-Type header to "application/json" across OAuth endpoints, enhancing compliance with JSON standards.
- Refactored error and success response methods to streamline response generation without unnecessary wrappers, improving clarity and maintainability.
- Enhanced security by ensuring all responses include appropriate OAuth security headers, aligning with best practices for sensitive endpoints.
- Simplified test assertions for Content-Type in OAuth tests, ensuring consistency in response validation.
2025-07-22 15:36:41 +08:00
..
agent Update dependencies in go.mod and go.sum to latest versions for improved stability and performance 2025-07-13 09:15:54 +08:00
audit Update dependencies in go.mod and go.sum to latest versions for improved stability and performance 2025-07-13 09:15:54 +08:00
docs Add OpenAPI support and enhance configuration handling 2025-07-20 18:52:30 +08:00
job Update dependencies in go.mod and go.sum to latest versions for improved stability and performance 2025-07-13 09:15:54 +08:00
kb Update dependencies in go.mod and go.sum to latest versions for improved stability and performance 2025-07-13 09:15:54 +08:00
oauth Refactor OAuth response handling and improve content type management 2025-07-22 15:36:41 +08:00
config.go Add OpenAPI support and enhance configuration handling 2025-07-20 18:52:30 +08:00
config_test.go Implement JSON marshaling and unmarshaling for configuration with duration parsing 2025-07-20 17:49:01 +08:00
hello.go Refactor hello world endpoints and add OAuth protection 2025-07-21 18:49:20 +08:00
hello_test.go Refactor hello world endpoints and add OAuth protection 2025-07-21 18:49:20 +08:00
oauth.go Refactor OAuth response handling and improve content type management 2025-07-22 15:36:41 +08:00
oauth_test.go Refactor OAuth response handling and improve content type management 2025-07-22 15:36:41 +08:00
oauth_token_test.go Refactor OAuth response handling and improve content type management 2025-07-22 15:36:41 +08:00
openapi.go Refactor OAuth endpoint structure and add well-known handlers 2025-07-20 19:11:16 +08:00
openapi_test.go Enhance OAuth token management with PKCE support and refactor tests 2025-07-22 12:55:44 +08:00
README.md Update dependencies in go.mod and go.sum to latest versions for improved stability and performance 2025-07-13 09:15:54 +08:00
response.go Refactor OAuth response handling and improve content type management 2025-07-22 15:36:41 +08:00
types.go Implement JSON marshaling and unmarshaling for configuration with duration parsing 2025-07-20 17:49:01 +08:00
well-known.go Refactor OAuth endpoint structure and add well-known handlers 2025-07-20 19:11:16 +08:00

Yao OpenAPI

OAuth

Agent

Knowledge Base

Audit Log