{"id":20000869,"url":"https://github.com/thevxn/swis-nexus","last_synced_at":"2025-10-07T11:30:06.319Z","repository":{"id":192280144,"uuid":"686338044","full_name":"thevxn/swis-nexus","owner":"thevxn","description":"minimal swis-api client/connector in Go","archived":false,"fork":false,"pushed_at":"2024-10-19T04:15:14.000Z","size":768,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-30T20:06:46.430Z","etag":null,"topics":["catware","client","connector","driver","golang"],"latest_commit_sha":null,"homepage":"","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/thevxn.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-02T13:04:05.000Z","updated_at":"2025-02-26T19:23:34.000Z","dependencies_parsed_at":"2024-07-24T00:15:07.090Z","dependency_job_id":"02718fce-f904-42e4-aaf7-691c5e59358d","html_url":"https://github.com/thevxn/swis-nexus","commit_stats":null,"previous_names":["savla-dev/swis-nexus","thevxn/swis-nexus"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/thevxn/swis-nexus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thevxn%2Fswis-nexus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thevxn%2Fswis-nexus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thevxn%2Fswis-nexus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thevxn%2Fswis-nexus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thevxn","download_url":"https://codeload.github.com/thevxn/swis-nexus/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thevxn%2Fswis-nexus/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262842922,"owners_count":23373167,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["catware","client","connector","driver","golang"],"created_at":"2024-11-13T05:16:02.969Z","updated_at":"2025-10-07T11:30:06.242Z","avatar_url":"https://github.com/thevxn.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# swis-nexus\n\n[![Go Reference](https://pkg.go.dev/badge/go.vxn.dev/swis-nexus.svg)](https://pkg.go.dev/go.vxn.dev/swis-nexus)\n[![Go Report Card](https://goreportcard.com/badge/go.vxn.dev/swis-nexus)](https://goreportcard.com/report/go.vxn.dev/swis-nexus)\n\nA simple client/connector for [swis-api](https://github.com/thevxn/swis-api) RESTful JSON API. \n\nA complete example implementation can be find in [cmd/swis-nexus/main.go](/cmd/swis-nexus/main.go) file.\n\n### import a usage\n\n```shell\ngo get go.vxn.dev/swis-nexus/pkg/nexus\n```\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n\n    \"go.vxn.dev/swis-nexus/pkg/nexus\"\n)\n\nvar (\n    client *nexus.Client\n\n    baseURL = \"https://swapi.example.com\"\n    token   = \"xxx\"\n    verbose = true\n)\n\nfunc main() {\n    // Fetch a new nexus.Client instance.\n    client = nexus.NewClient(baseURL, token)\n\n    // Enable the verbose mode.\n    client.Verbose = true\n\n    // Compose a DTO-in object.\n    input := \u0026nexus.Input{\n        Path: \"/users\",\n        Data: nil,\n    }\n\n    // Prepare a DTO-out object.\n    output := \u0026nexus.Output{}\n\n    // Execute the API call.\n    if err := client.Get(input, output); err != nil {\n        fmt.Println(err)\n    }\n\n    // Print the response code and response message.\n    fmt.Printf(\"%4d: %s\", output.Code, output.Message)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthevxn%2Fswis-nexus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthevxn%2Fswis-nexus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthevxn%2Fswis-nexus/lists"}