{"id":22515160,"url":"https://github.com/rggh/api-3","last_synced_at":"2025-07-06T08:04:15.039Z","repository":{"id":121735572,"uuid":"438244447","full_name":"RGGH/API-3","owner":"RGGH","description":"html, javascript, FastAPI, REST API, Python","archived":false,"fork":false,"pushed_at":"2023-03-26T17:10:30.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T01:55:43.185Z","etag":null,"topics":["fastapi","js","ml","oneliners","python","rest-api","sklearn"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RGGH.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-12-14T12:28:10.000Z","updated_at":"2022-03-27T23:58:08.000Z","dependencies_parsed_at":"2023-05-07T03:05:11.697Z","dependency_job_id":null,"html_url":"https://github.com/RGGH/API-3","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RGGH/API-3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RGGH%2FAPI-3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RGGH%2FAPI-3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RGGH%2FAPI-3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RGGH%2FAPI-3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RGGH","download_url":"https://codeload.github.com/RGGH/API-3/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RGGH%2FAPI-3/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263868203,"owners_count":23522315,"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":["fastapi","js","ml","oneliners","python","rest-api","sklearn"],"created_at":"2024-12-07T03:28:34.913Z","updated_at":"2025-07-06T08:04:15.022Z","avatar_url":"https://github.com/RGGH.png","language":"HTML","readme":"# API-3\n### html, javascript, FastAPI\n\n    #remember to add code in fastapi to allow CORS\n\n    import uvicorn\n    from fastapi import FastAPI\n    from fastapi.middleware.cors import CORSMiddleware\n    from pydantic import BaseModel\n    from sklearn.neural_network import MLPRegressor\n    import numpy as np\n\n    app = FastAPI()\n\n    output = {}\n\n    origins = [\n        \"http://redandgreen.co.uk\"\n    ]\n\n    app.add_middleware(\n        CORSMiddleware,\n        allow_origins=origins,\n        allow_credentials=True,\n        allow_methods=[\"*\"],\n        allow_headers=[\"*\"],\n    )\n    \n    ---\n    \n    https://www.stackhawk.com/blog/configuring-cors-in-fastapi/\n\n---\n\nTry the code here : http://redandgreen.co.uk/indexx.html\n\n---\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frggh%2Fapi-3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frggh%2Fapi-3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frggh%2Fapi-3/lists"}