{"id":21589333,"url":"https://github.com/baselrabia/book-api","last_synced_at":"2025-03-18T09:43:16.563Z","repository":{"id":200243456,"uuid":"705102304","full_name":"baselrabia/book-api","owner":"baselrabia","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-17T23:39:32.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-24T16:13:45.676Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/baselrabia.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":"2023-10-15T02:54:47.000Z","updated_at":"2023-10-15T02:55:06.000Z","dependencies_parsed_at":"2024-06-21T00:39:04.226Z","dependency_job_id":"5b363f22-904b-436a-98da-9439f3015400","html_url":"https://github.com/baselrabia/book-api","commit_stats":null,"previous_names":["baselrabia/book-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baselrabia%2Fbook-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baselrabia%2Fbook-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baselrabia%2Fbook-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baselrabia%2Fbook-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baselrabia","download_url":"https://codeload.github.com/baselrabia/book-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244198129,"owners_count":20414439,"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-24T16:14:08.800Z","updated_at":"2025-03-18T09:43:16.534Z","avatar_url":"https://github.com/baselrabia.png","language":"Go","readme":"# Golang assignment 💻\n\nThis assignment will form the basis for the job interview. You will show-case your implementation and talk about the choices you made and obstacles if you encountered any.\n\n## Prequisites ✔️\n\n1. Git\n2. Golang\n3. Docker (optional)\n\n## Assignment 📝\n\nFork this repository and commit your code to your own repository.\n\n1. Create a simple Golang application that will serve a RESTful API with a resource of your choice (pets, books, memes, etc). The endpoints should support Create, Read, Update and Delete operations.\n2. The data should be persisted in a database like SQLite, MySQL, PostgreSQL, etc.\n\nIf you are stuck or want some inspiration see the tips below.\n\n### Optionals\n\n1. Add tests for you REST API.\n2. Create a dockerfile for your application.\n\n## Tips 🧞\n\n### Application example\n\n_Endpoints:_\n\n```sh\n# Get all pets\nGET /pets\n\n# Get a specific pet\nGET /pets/:id\n\n# Create a pet\nPOST /pets\n\n# Update a pet\nPUT /pets/:id\n\n# Delete a pet\nDELETE /pets/:id\n```\n\n_Model:_\n\n```json\n{\n    \"id\": 1,\n    \"name\": \"Fluffy\",\n    \"age\": 3,\n    \"breed\": \"cat\"\n}\n```\n\n### Database\n\nThis package can be used to connect to a local SQLite database:\n\n-   https://github.com/mattn/go-sqlite3\n\nIf you want an ORM (Object Relational Mapping) library, you can use GORM:\n\n-   https://gorm.io/docs/connecting_to_the_database.html#SQLite\n\n### REST API\n\nFor creating a HTTP server, you can use echo:\n\n-   https://github.com/labstack/echo\n\n### REST API testing\n\nDocumentation for testing echo endpoints:\n\n-   https://echo.labstack.com/guide/testing/","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaselrabia%2Fbook-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaselrabia%2Fbook-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaselrabia%2Fbook-api/lists"}