{"id":19584747,"url":"https://github.com/oracle-samples/content-management-swift","last_synced_at":"2025-04-27T11:32:27.150Z","repository":{"id":190383159,"uuid":"624074306","full_name":"oracle-samples/content-management-swift","owner":"oracle-samples","description":"Swift package to make it easier to use content (digital assets, structured content) from Oracle Content Management","archived":false,"fork":false,"pushed_at":"2023-08-24T10:16:45.000Z","size":422,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2023-08-24T12:01:44.285Z","etag":null,"topics":["cms","headless-cms","oracle-cloud","oracle-content-management","sdk","sdk-swift","swift"],"latest_commit_sha":null,"homepage":"https://docs.oracle.com/en/cloud/paas/content-cloud/headless-cms.html","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"upl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oracle-samples.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null}},"created_at":"2023-04-05T17:33:03.000Z","updated_at":"2023-08-24T12:01:51.400Z","dependencies_parsed_at":"2023-08-24T12:12:00.322Z","dependency_job_id":null,"html_url":"https://github.com/oracle-samples/content-management-swift","commit_stats":null,"previous_names":["oracle-samples/content-management-swift"],"tags_count":1,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-samples%2Fcontent-management-swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-samples%2Fcontent-management-swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-samples%2Fcontent-management-swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-samples%2Fcontent-management-swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oracle-samples","download_url":"https://codeload.github.com/oracle-samples/content-management-swift/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224069554,"owners_count":17250454,"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":["cms","headless-cms","oracle-cloud","oracle-content-management","sdk","sdk-swift","swift"],"created_at":"2024-11-11T07:49:33.356Z","updated_at":"2024-11-11T07:49:34.586Z","avatar_url":"https://github.com/oracle-samples.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# About Oracle Content Management - Content SDK (Swift)\n\nThe Content SDK for Oracle Content Management is a swift package that interacts with the Content REST APIs. This read-only SDK retrieves structured content, digital assets and taxonomies that are managed in Oracle Content Management.\n\n## Installation\nYou can add the Content SDK to an Xcode project by adding it as a package dependency.\n\n1. From the **File** menu, select **Add Packages...**\n2. Enter \"https://github.com/oracle-samples/content-management-swift\" into the package repository URL text field\n3. Depending on how your project is structured:\n      - If you have a single application target that needs access to the library, then add \n        **OracleContentCore** and **OracleContentDelivery** directly to your application.\n      - If you want to use this library from multiple Xcode targets, or mix Xcode targets and SPM \n        targets, you must create a shared framework that depends on **OracleContentCore** and \n        **OracleContentManagement** and then depend on that framework in all of your targets.\n      - Do not include **OracleContentTest** in your application targets. Only include\n      **OracleContentTest** in testing targets.\n        \n## Documentation\n\n- [Developing for Oracle Content Management](https://docs.oracle.com/en/cloud/paas/content-cloud/developer/content-sdk.html)\n- [Swift package](https://docs.oracle.com/en/cloud/paas/content-cloud/content-sdk-swift/delivery/)\n\n## Examples\n\nIn addition to these examples please see this package's [Examples](./Examples) directory.\n\n### Generating a list of assets:\n\nFirst create the service, specifying a URL that points to your Oracle Content Management server and providing a channel token to which assets have been published.\n\n```swift\nlet service = DeliveryAPI.listAssets()\n                         .overrideURL(url, headers: [])  \n                         .channelToken(channelToken) \n```\n                         \nYou may then submit the request using one of the available invocation verbs.\n\nFor an async/await operation, you may submit the request as follows. Note that \"result\" will be of type `Assets` (plural): \n\n```swift \nlet result: Assets = try await service.fetchNextAsync()\n```\n\n### Reading information about a specific asset:\n\nCreate the service: \n\n```swift \nlet service = DeliveryAPI.readAsset()\n                         .overrideURL(url, headers: [])\n                         .channelToken(channelToken)\n```\n\nSubmit the request using one of the available invocation verbs.\n\nFor an async/await operation, you may submit the request as follows. Note that \"result\" will be of type `Asset` (singular):\n\n```swift\nlet result: Asset = try await service.fetchAsync()\n```\n\nMore detailed examples illustrating the use of Onboarding are available in the Oracle Content Delivery documentation distributed with this package. Additionally, many different examples are available in the unit tests associated with each library.\n\n## Contributing\n\nThis project welcomes contributions from the community. Before submitting a pull\nrequest, please [review our contribution guide](./CONTRIBUTING.md).\n\n## Security\n\nPlease consult the [security guide](./SECURITY.md) for our responsible security\nvulnerability disclosure process.\n\n## License\n\nCopyright (c) 2023, Oracle and/or its affiliates.\n\nReleased under the Universal Permissive License v1.0 as shown at\n\u003chttps://oss.oracle.com/licenses/upl/\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foracle-samples%2Fcontent-management-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foracle-samples%2Fcontent-management-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foracle-samples%2Fcontent-management-swift/lists"}