Open norinoringo opened 1 year ago
curl -i 'https://api.github.com/search/repositories?q=swift&per_page=1&page=1'
$ curl -i 'https://api.github.com/search/repositories?q=swift&per_page=1&page=1'
HTTP/2 200
server: GitHub.com
date: Mon, 20 Nov 2023 23:13:07 GMT
content-type: application/json; charset=utf-8
cache-control: no-cache
vary: Accept, Accept-Encoding, Accept, X-Requested-With
x-github-media-type: github.v3; format=json
link: <https://api.github.com/search/repositories?q=swift&per_page=1&page=2>; rel="next", <https://api.github.com/search/repositories?q=swift&per_page=1&page=1000>; rel="last"
x-github-api-version-selected: 2022-11-28
access-control-expose-headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset
access-control-allow-origin: *
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: origin-when-cross-origin, strict-origin-when-cross-origin
content-security-policy: default-src 'none'
x-ratelimit-limit: 10
x-ratelimit-remaining: 9
x-ratelimit-reset: 1700522047
x-ratelimit-resource: search
x-ratelimit-used: 1
accept-ranges: bytes
x-github-request-id: F539:1722F:207F6A:231EC1:655BE803
{
"total_count": 294501,
"incomplete_results": false,
"items": [
{
"id": 44838949,
"node_id": "MDEwOlJlcG9zaXRvcnk0NDgzODk0OQ==",
"name": "swift",
"full_name": "apple/swift",
"private": false,
"owner": {
"login": "apple",
"id": 10639145,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjEwNjM5MTQ1",
"avatar_url": "https://avatars.githubusercontent.com/u/10639145?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/apple",
"html_url": "https://github.com/apple",
"followers_url": "https://api.github.com/users/apple/followers",
"following_url": "https://api.github.com/users/apple/following{/other_user}",
"gists_url": "https://api.github.com/users/apple/gists{/gist_id}",
"starred_url": "https://api.github.com/users/apple/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/apple/subscriptions",
"organizations_url": "https://api.github.com/users/apple/orgs",
"repos_url": "https://api.github.com/users/apple/repos",
"events_url": "https://api.github.com/users/apple/events{/privacy}",
"received_events_url": "https://api.github.com/users/apple/received_events",
"type": "Organization",
"site_admin": false
},
"html_url": "https://github.com/apple/swift",
"description": "The Swift Programming Language",
"fork": false,
"url": "https://api.github.com/repos/apple/swift",
"forks_url": "https://api.github.com/repos/apple/swift/forks",
"keys_url": "https://api.github.com/repos/apple/swift/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/apple/swift/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/apple/swift/teams",
"hooks_url": "https://api.github.com/repos/apple/swift/hooks",
"issue_events_url": "https://api.github.com/repos/apple/swift/issues/events{/number}",
"events_url": "https://api.github.com/repos/apple/swift/events",
"assignees_url": "https://api.github.com/repos/apple/swift/assignees{/user}",
"branches_url": "https://api.github.com/repos/apple/swift/branches{/branch}",
"tags_url": "https://api.github.com/repos/apple/swift/tags",
"blobs_url": "https://api.github.com/repos/apple/swift/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/apple/swift/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/apple/swift/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/apple/swift/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/apple/swift/statuses/{sha}",
"languages_url": "https://api.github.com/repos/apple/swift/languages",
"stargazers_url": "https://api.github.com/repos/apple/swift/stargazers",
"contributors_url": "https://api.github.com/repos/apple/swift/contributors",
"subscribers_url": "https://api.github.com/repos/apple/swift/subscribers",
"subscription_url": "https://api.github.com/repos/apple/swift/subscription",
"commits_url": "https://api.github.com/repos/apple/swift/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/apple/swift/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/apple/swift/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/apple/swift/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/apple/swift/contents/{+path}",
"compare_url": "https://api.github.com/repos/apple/swift/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/apple/swift/merges",
"archive_url": "https://api.github.com/repos/apple/swift/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/apple/swift/downloads",
"issues_url": "https://api.github.com/repos/apple/swift/issues{/number}",
"pulls_url": "https://api.github.com/repos/apple/swift/pulls{/number}",
"milestones_url": "https://api.github.com/repos/apple/swift/milestones{/number}",
"notifications_url": "https://api.github.com/repos/apple/swift/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/apple/swift/labels{/name}",
"releases_url": "https://api.github.com/repos/apple/swift/releases{/id}",
"deployments_url": "https://api.github.com/repos/apple/swift/deployments",
"created_at": "2015-10-23T21:15:07Z",
"updated_at": "2023-11-20T22:23:03Z",
"pushed_at": "2023-11-20T20:15:58Z",
"git_url": "git://github.com/apple/swift.git",
"ssh_url": "git@github.com:apple/swift.git",
"clone_url": "https://github.com/apple/swift.git",
"svn_url": "https://github.com/apple/swift",
"homepage": "https://swift.org",
"size": 1067169,
"stargazers_count": 64543,
"watchers_count": 64543,
"language": "C++",
"has_issues": true,
"has_projects": false,
"has_downloads": true,
"has_wiki": false,
"has_pages": false,
"has_discussions": false,
"forks_count": 10354,
"mirror_url": null,
"archived": false,
"disabled": false,
"open_issues_count": 6917,
"license": {
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdx_id": "Apache-2.0",
"url": "https://api.github.com/licenses/apache-2.0",
"node_id": "MDc6TGljZW5zZTI="
},
"allow_forking": true,
"is_template": false,
"web_commit_signoff_required": false,
"topics": [
],
"visibility": "public",
"forks": 10354,
"open_issues": 6917,
"watchers": 64543,
"default_branch": "main",
"score": 1.0
}
]
}
必要なitemsレスポンス
$ curl -i 'https://api.github.com/search/repositories'
HTTP/2 422
server: GitHub.com
date: Mon, 25 Dec 2023 06:25:34 GMT
content-type: application/json; charset=utf-8
content-length: 200
cache-control: no-cache
vary: Accept, Accept-Encoding, Accept, X-Requested-With
x-github-media-type: github.v3; format=json
x-github-api-version-selected: 2022-11-28
access-control-expose-headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset
access-control-allow-origin: *
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: origin-when-cross-origin, strict-origin-when-cross-origin
content-security-policy: default-src 'none'
x-ratelimit-limit: 10
x-ratelimit-remaining: 8
x-ratelimit-reset: 1703485539
x-ratelimit-resource: search
x-ratelimit-used: 2
x-github-request-id: 8D34:362E69:2B9D9A1:2E2CFCB:6589205E
{
"message": "Validation Failed",
"errors": [
{
"resource": "Search",
"field": "q",
"code": "missing"
}
],
"documentation_url": "https://docs.github.com/v3/search"
}
$ curl -i 'https://api.github.com/search/repositorie'
HTTP/2 404
server: GitHub.com
date: Mon, 25 Dec 2023 06:29:46 GMT
content-type: application/json; charset=utf-8
x-github-media-type: github.v3; format=json
x-github-api-version-selected: 2022-11-28
access-control-expose-headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset
access-control-allow-origin: *
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: origin-when-cross-origin, strict-origin-when-cross-origin
content-security-policy: default-src 'none'
vary: Accept-Encoding, Accept, X-Requested-With
x-ratelimit-limit: 60
x-ratelimit-remaining: 58
x-ratelimit-reset: 1703489299
x-ratelimit-resource: core
x-ratelimit-used: 2
content-length: 84
x-github-request-id: 9572:1DD26A:DA553:E2FA2:6589215A
{
"message": "Not Found",
"documentation_url": "https://docs.github.com/rest"
}
概要
仕様
Figma
タスク
UseCase
Repository
Model
備考