{"id":25830904,"url":"https://github.com/lab5e/swift-simple","last_synced_at":"2026-06-15T09:32:16.252Z","repository":{"id":216014844,"uuid":"739365280","full_name":"lab5e/swift-simple","owner":"lab5e","description":"Simple API client sample in Swift that retrieves a list of collections","archived":false,"fork":false,"pushed_at":"2024-01-08T01:11:59.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-28T22:38:59.334Z","etag":null,"topics":["iot","lang-swift","sample","span","swift"],"latest_commit_sha":null,"homepage":"https://www.lab5e.com/","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lab5e.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":"2024-01-05T11:45:24.000Z","updated_at":"2024-01-07T23:56:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"824c200b-3543-468e-b528-c5298f5d6cc7","html_url":"https://github.com/lab5e/swift-simple","commit_stats":null,"previous_names":["lab5e/swift-simple"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lab5e/swift-simple","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lab5e%2Fswift-simple","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lab5e%2Fswift-simple/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lab5e%2Fswift-simple/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lab5e%2Fswift-simple/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lab5e","download_url":"https://codeload.github.com/lab5e/swift-simple/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lab5e%2Fswift-simple/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34357281,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["iot","lang-swift","sample","span","swift"],"created_at":"2025-02-28T19:34:42.199Z","updated_at":"2026-06-15T09:32:16.243Z","avatar_url":"https://github.com/lab5e.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A Span API client sample in Swift\n\nBuild the sample with `swift build`.\n\nTo run it, create a new API token in the [Span dashboard](https://span.lab5e.com) and \nrun \n\n```shell\nswift run span-sample --api-token=[API token]\n```\n\n## Generating the client\n\nRather than using a prebuilt client the OpenAPI generator is a plugin in the \nproject as described in [this tutorial from Apple](https://swiftpackageindex.com/apple/swift-openapi-generator/1.1.0/tutorials/swift-openapi-generator/clientswiftpm). \n\nYou'll have to add the openapi.yaml file from the service but it's relatively \neasy to update the yaml file as part of your build process.\n\nThe two YAML files in the Sources is used by the OpenAPI generator plugin to\nbuild the client. The `Packages.swift` file contains the required dependencies.\n\n## Getting the OpenAPI spec\n\nThe OpenAPI spec is available in several other repositories; you can download it with `wget` before building. This\nwill download the latest version of the specification:\n\n```shell \ncd Sources\nrm -f openapi.yaml\nwget https://raw.githubusercontent.com/lab5e/go-spanapi/main/api/openapi.yaml\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flab5e%2Fswift-simple","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flab5e%2Fswift-simple","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flab5e%2Fswift-simple/lists"}