{"id":13778906,"url":"https://github.com/wizardofzos/aoc2021","last_synced_at":"2026-01-05T06:05:42.749Z","repository":{"id":136153694,"uuid":"430225235","full_name":"wizardofzos/aoc2021","owner":"wizardofzos","description":"Advent of Code 2021 - z/OS Flask REST Solutions (runnning python and REXX lol)","archived":false,"fork":false,"pushed_at":"2021-12-16T23:13:06.000Z","size":96,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-17T14:41:03.457Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"REXX","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/wizardofzos.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}},"created_at":"2021-11-20T22:46:55.000Z","updated_at":"2021-12-16T23:13:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"25cd1d00-6c68-4d22-8c1c-754382ba7e29","html_url":"https://github.com/wizardofzos/aoc2021","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wizardofzos%2Faoc2021","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wizardofzos%2Faoc2021/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wizardofzos%2Faoc2021/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wizardofzos%2Faoc2021/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wizardofzos","download_url":"https://codeload.github.com/wizardofzos/aoc2021/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253566965,"owners_count":21928758,"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-08-03T18:00:58.827Z","updated_at":"2026-01-05T06:05:42.739Z","avatar_url":"https://github.com/wizardofzos.png","language":"REXX","funding_links":[],"categories":["Project Templates"],"sub_categories":[],"readme":"# AOC 2021 on z/OS\n\n\nBased on  https://github.com/wizardofzos/flask-rest-zos/\n\n## What's this?\n\nRepo for my solutions to AOC2021. More info: https://adventofcode.com/2021\nWanted to have some extra practice on flask-rest and also do some REXX. \n\nSo I've made this REST API that either runs python code, or REXX and shows the result...\n\n\n## Requirements\n\n- Conda installed\n- Python available\n- Network connectivity to the outside world    \n\n## Preparing for first run\n\n    conda activate \u003cenv-that-has-python3-in-it\u003e\n    git clone git@github.com:wizardofzos/flask-rest-zos.git\n    cd flask-rest-zos\n    python -m venv .\n    . bin/activate  \n    python3 -m pip install -r requirements.txt\n\n## Running it\n    conda activate \u003cenv-that-has-python3-in-it\u003e      \n    cd ../../flask-rest-zos\n    . bin/activate\n    # Optional if you want another port than 12345\n    export PORT=\u003cport-you-want\u003e\n    python3 aoc2021.py\n\nThen point your browser to http://\u003cip_or_dns_of_your_mainframe\u003e:12345/swagger-ui and...\n\n![AOC2021](https://github.com/wizardofzos/aoc2021/blob/main/aoc2021-startup.png?raw=true)\n       \n    \n## Adding endpoints to the REST-API\n\nEvery endpoint has it's own file in /endpoints. Make sure to add your new endpoints to /endpoints/__init__.py with a line like so:\n\n    from .\u003cname-of-your-resource-endpoint.py\u003e import \u003cResourceName\u003e\n\nThen in test-app.py add these lines:\n\n    from endpoints import \u003cResourceName\u003e\n    api.add_resource(\u003cResourceName\u003e, '/\u003cpath-to-your-new-endpoint')\n    docs.register(\u003cResourceName\u003e)\n\nAnd off you go :)\n\n# TODO\nWrite how to add new solutions :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwizardofzos%2Faoc2021","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwizardofzos%2Faoc2021","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwizardofzos%2Faoc2021/lists"}