Release: Version 0.1. Code coverage for golang. #1

Manually merged
hamza merged 1 commits from develop into master 2019-08-13 11:40:19 +07:00

Endpoints:

"/upload/go"

Content Type: multipart/form-data

Required params:
file: Golang coverage file to parse (.out file)
project-name: Name of the project (e.g. Coverage)
tag: Commit tag name (e.g. branch_master)
id: Commit id (e.g. ca20688)

output: {"success: true", "percentage": [coverage]"}
output (failure): {"success": false, "message": "Request parameter file not found"}

"/badge/commit/{commit_hash}"

Content Type: image/svg+xml

commit_hash: Commit id (e.g ca20688)

output: request svg with percentage (or unknown value svg)

"/badge/{project_name}/{project_tag}"

Content Type: image/svg+xml

project_name: (e.g. ASUBot)
tag: (e.g. branch_master)

output: request svg with percentage (or unknown value svg)
Endpoints: **"/upload/go"** ```properties Content Type: multipart/form-data Required params: file: Golang coverage file to parse (.out file) project-name: Name of the project (e.g. Coverage) tag: Commit tag name (e.g. branch_master) id: Commit id (e.g. ca20688) output: {"success: true", "percentage": [coverage]"} output (failure): {"success": false, "message": "Request parameter file not found"} ``` **"/badge/commit/{commit_hash}"** ```properties Content Type: image/svg+xml commit_hash: Commit id (e.g ca20688) output: request svg with percentage (or unknown value svg) ``` **"/badge/{project_name}/{project_tag}"** ```properties Content Type: image/svg+xml project_name: (e.g. ASUBot) tag: (e.g. branch_master) output: request svg with percentage (or unknown value svg) ```
hamza closed this pull request 2019-08-13 11:40:19 +07:00

Pull request successfully merged and closed

Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Team-Ortix/coverage#1
There is no content yet.