Skip to content

Improve the HTTP Client implementation

Past due by over 1 year 100% complete

This milestone will contain the PR's or issues related to the HTTP Client improvements on the library. Right now, the implementation works as expected, but it can be improved removing duplicated code and centralize the business logic in less methods and create internal methods.

Each module (jira, confluence, agile, sm, etc) uses the following interface to…

This milestone will contain the PR's or issues related to the HTTP Client improvements on the library. Right now, the implementation works as expected, but it can be improved removing duplicated code and centralize the business logic in less methods and create internal methods.

Each module (jira, confluence, agile, sm, etc) uses the following interface to interacts with the Atlassian services

type Client interface {
	NewRequest(ctx context.Context, method, apiEndpoint string, payload io.Reader) (*http.Request, error)
	NewFormRequest(ctx context.Context, method, apiEndpoint, contentType string, payload io.Reader) (*http.Request, error)
	Call(request *http.Request, structure interface{}) (*models.ResponseScheme, error)
	TransformTheHTTPResponse(response *http.Response, structure interface{}) (*models.ResponseScheme, error)
	TransformStructToReader(structure interface{}) (io.Reader, error)
}

Please work to create an standard on the library, creates a new implementation of the service communication interfaces and shares the new implementation on the library modules.

There are no open issues in this milestone.

Add issues to milestones to help organize your work for a particular release or project.

Create new issue

Or find and add issues with no milestone in this repo.