Replace hardcoded OpenAPI definition placeholder with actual API definition in DevPortal publish flow
@DakshithaS is already working on this.
Since Nov 11, 2025.
- Dominant language
- Go
- Stars
- 71
- Forks
- 111
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 110
Description
Problem
In the DevPortal publishing flow, the code currently uses a hardcoded OpenAPI JSON template with only basic metadata (title, version, description) instead of the actual API definition.
File: platform-api/src/internal/service/devportal_service.go
Lines: 537-545
Method: publishAPIToDevPortalInternal
The current implementation creates a minimal OpenAPI spec placeholder:
apiDefinitionBytes := []byte(fmt.Sprintf(`{
"openapi": "3.0.0",
"info": {
"title": "%s",
"version": "%s",
"description": "%s"
},
"paths": {}
}`, api.Name, api.Version, api.Description))
This doesn't reflect the actual API specification and should be replaced with the real API definition.
Expected Behavior
The code should retrieve and use the actual OpenAPI definition from the API object or repository.
Related
- PR: #136
- Comment: https://github.com/wso2/api-platform/pull/136#discussion_r2514972951
- Requested by: @DakshithaS
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.