{"id":18930667,"url":"https://github.com/tecladocode/interacting-with-apis-javascript","last_synced_at":"2026-03-06T07:02:01.593Z","repository":{"id":52156888,"uuid":"210852381","full_name":"tecladocode/interacting-with-apis-javascript","owner":"tecladocode","description":"A small repository to accompany our \"How to interact with REST APIs from JavaScript\" blog post","archived":false,"fork":false,"pushed_at":"2021-05-06T19:47:09.000Z","size":13,"stargazers_count":3,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-08-03T05:43:15.766Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/tecladocode.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}},"created_at":"2019-09-25T13:29:26.000Z","updated_at":"2023-08-03T05:43:15.769Z","dependencies_parsed_at":"2022-08-28T15:00:21.784Z","dependency_job_id":null,"html_url":"https://github.com/tecladocode/interacting-with-apis-javascript","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tecladocode%2Finteracting-with-apis-javascript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tecladocode%2Finteracting-with-apis-javascript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tecladocode%2Finteracting-with-apis-javascript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tecladocode%2Finteracting-with-apis-javascript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tecladocode","download_url":"https://codeload.github.com/tecladocode/interacting-with-apis-javascript/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223679188,"owners_count":17184810,"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":[],"created_at":"2024-11-08T11:38:28.749Z","updated_at":"2026-03-06T07:02:01.577Z","avatar_url":"https://github.com/tecladocode.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# How to interact with REST APIs from JavaScript\n\nThis repository accompanies our blog post \"How to interact with REST APIs from JavaScript\".\n\n## How to run the Flask app\n\nWe've provided you with a sample REST API in the form of a Flask app.\n\nTo run it, you'll need Python 3 and Pipenv installed. Then, do:\n\n```\ncd backend\npipenv install\npipenv run flask run\n```\n\n## What does the app do?\n\nThe app stores movies. It has two endpoints, `POST /` and `GET /movies`.\n\n### Adding movies\n\nTo add a new movie, send either form or JSON data containing `title` and `year` to the `POST /` endpoint.\n\nSee the examples `vanilla-post-form.html`, `vanilla-post-json.html`, and `fetch-post.html`.\n\n### Retrieving movies\n\nTo get the movies currently stored, send a request to `GET /movies`.\n\nSee the examples `vanilla-get.html` and `fetch-get.html`.\n\n## How to run the examples\n\nOnce the Flask app is running, just open the appropriate example file in your browser.\n\nFor example, on Windows, navigate to `file:///C:/Users/bob/vanilla-get.html` (or whatever path your file is in).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftecladocode%2Finteracting-with-apis-javascript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftecladocode%2Finteracting-with-apis-javascript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftecladocode%2Finteracting-with-apis-javascript/lists"}