{"id":41395794,"url":"https://github.com/scottdware/go-rested","last_synced_at":"2026-01-23T12:53:23.758Z","repository":{"id":57496130,"uuid":"47277856","full_name":"scottdware/go-rested","owner":"scottdware","description":"A Go package that makes calling RESTful API's easy","archived":false,"fork":false,"pushed_at":"2016-03-13T14:36:49.000Z","size":19,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-21T14:15:16.367Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scottdware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-02T17:46:01.000Z","updated_at":"2024-06-21T14:15:16.368Z","dependencies_parsed_at":"2022-09-02T20:22:40.629Z","dependency_job_id":null,"html_url":"https://github.com/scottdware/go-rested","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/scottdware/go-rested","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottdware%2Fgo-rested","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottdware%2Fgo-rested/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottdware%2Fgo-rested/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottdware%2Fgo-rested/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scottdware","download_url":"https://codeload.github.com/scottdware/go-rested/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottdware%2Fgo-rested/sbom","scorecard":{"id":805639,"data":{"date":"2025-08-11","repo":{"name":"github.com/scottdware/go-rested","commit":"93e152ef32a6d21b8ccbfd40012db8a916c5c3cc"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-23T11:41:11.917Z","repository_id":57496130,"created_at":"2025-08-23T11:41:11.917Z","updated_at":"2025-08-23T11:41:11.917Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28692247,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T11:01:27.039Z","status":"ssl_error","status_checked_at":"2026-01-23T11:00:26.909Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-23T12:53:23.064Z","updated_at":"2026-01-23T12:53:23.730Z","avatar_url":"https://github.com/scottdware.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## go-rested\n[![GoDoc](https://godoc.org/github.com/scottdware/go-rested?status.svg)](https://godoc.org/github.com/scottdware/go-rested) [![Travis-CI](https://travis-ci.org/scottdware/go-rested.svg?branch=master)](https://travis-ci.org/scottdware/go-rested)\n[![license](http://img.shields.io/badge/license-MIT-red.svg?style=flat)](https://raw.githubusercontent.com/scottdware/go-rested/master/LICENSE)\n\nA Go package that makes calling RESTful API's easy.\n\n### Usage \u0026 Examples\n\nInitiate the request, and set authentication (if applicable):\n\n```Go\nr := rested.NewRequest()\nr.BasicAuth(\"user\", \"secret\")\n```\n\nIf you need to specify any headers or query parameters, then use a `map[string]string` type to define them:\n\n```Go\nheaders := map[string]string{\n\t\"Content-Type\": \"application/json\",\n\t\"Accept\": \"application/json\",\n}\n\nquery := map[string]string{\n\t\"search_string\": \"dog\",\n\t\"results\": \"10\",\n}\n```\n\nThen, call the `Send()` function to issue the request. This function takes the following parameters:\n\n|Parameter|Description|\n|-----|-----------|\n|method|The HTTP method (i.e. GET, POST, DELETE, etc.)|\n|uri|The URI/URL that you will be calling.|\n|body|The contents of your request. This must be a byte slice (`[]byte`).|\n|headers|Any additional headers you want to send. Must be a `map[string]string` type.|\n|query|Any additional query parameters you want to send. Must be a `map[string]string` type.|\n\n```Go\ndata := r.Send(\"get\", \"https://someurl/api/v1.0/stuff?default_param=something\", nil, headers, query)\n```\n\nIf you need to send/post a form, just place your form values in a `map[string]string` type and use the `SendForm()` function. The parameters are\nthe same as the `Send()` function, except in place of the `body` parameter, you have your form values.\n\n\u003e Note: headers and query parameters are the same as above.\n\n```Go\nformValues := map[string]string{\n\t\"name\": \"Scott Ware\",\n\t\"age\": \"unknown\",\n\t\"sport\": \"Hockey\",\n}\n\ndata := r.SendForm(\"post\", \"https://someplace/to/upload\", formValues, nil, nil)\n```\n\n\u003e If there was any type of error in your request, it will be defined in the `Error` field of the returned struct. You can check for errors similar to how you normally do in Go:\n```Go\nif data.Error != nil {\n\tfmt.Println(data.Error)\n}\n```\n\nThe returned data is a struct with the following fields:\n\n```Go\ntype Response struct {\n\tStatus  string\n\tCode    int\n\tHeaders http.Header\n\tBody    []byte\n\tError   error\n}\n```\n\nYou can see the payload by converting the `Body` field to a string:\n\n```Go\nfmt.Println(string(data.Body))\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscottdware%2Fgo-rested","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscottdware%2Fgo-rested","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscottdware%2Fgo-rested/lists"}