{"id":22323403,"url":"https://github.com/agussuwerdo/nodejs-crud-api","last_synced_at":"2025-03-26T05:22:21.713Z","repository":{"id":251858661,"uuid":"838653720","full_name":"agussuwerdo/nodejs-crud-api","owner":"agussuwerdo","description":"Crud with nodejs and mongodb","archived":false,"fork":false,"pushed_at":"2024-08-31T14:21:25.000Z","size":8031,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-31T07:12:08.044Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://node-crud.werdev.my.id/","language":"TypeScript","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/agussuwerdo.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":"2024-08-06T05:00:36.000Z","updated_at":"2024-10-31T08:39:20.000Z","dependencies_parsed_at":"2024-08-06T07:29:56.862Z","dependency_job_id":null,"html_url":"https://github.com/agussuwerdo/nodejs-crud-api","commit_stats":null,"previous_names":["agussuwerdo/nodejs-crud-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agussuwerdo%2Fnodejs-crud-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agussuwerdo%2Fnodejs-crud-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agussuwerdo%2Fnodejs-crud-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agussuwerdo%2Fnodejs-crud-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agussuwerdo","download_url":"https://codeload.github.com/agussuwerdo/nodejs-crud-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245592792,"owners_count":20640896,"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-12-04T01:10:22.058Z","updated_at":"2025-03-26T05:22:21.669Z","avatar_url":"https://github.com/agussuwerdo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nodejs-crud-api\n\n## API Specification\n\n```yaml\ndefinitions:\n  handler.Item:\n    properties:\n      id:\n        type: string\n      name:\n        type: string\n      price:\n        type: integer\n    type: object\n  handler.PaginatedItemsResponse:\n    description: Represents a paginated response for items\n    properties:\n      items:\n        items:\n          $ref: '#/definitions/handler.Item'\n        type: array\n      limit:\n        type: integer\n      page:\n        type: integer\n      totalCount:\n        description: Add this field\n        type: integer\n      totalPages:\n        description: Add this field\n        type: integer\n    type: object\n  handler.Response:\n    description: Represents a standard response for errors or success messages\n    properties:\n      id:\n        type: string\n      message:\n        type: string\n    type: object\ninfo:\n  contact: {}\n  description: Represents a paginated response for items\npaths:\n  /items:\n    get:\n      consumes:\n      - application/json\n      description: Get all items from the database with pagination\n      parameters:\n      - description: Page number\n        in: query\n        name: page\n        type: integer\n      - description: Number of items per page\n        in: query\n        name: limit\n        type: integer\n      produces:\n      - application/json\n      responses:\n        \"200\":\n          description: OK\n          schema:\n            $ref: '#/definitions/handler.PaginatedItemsResponse'\n        \"400\":\n          description: Bad Request\n          schema:\n            $ref: '#/definitions/handler.Response'\n        \"500\":\n          description: Internal Server Error\n          schema:\n            $ref: '#/definitions/handler.Response'\n      summary: Get items\n      tags:\n      - Items\n    post:\n      consumes:\n      - application/json\n      description: Add a new item to the database\n      parameters:\n      - description: Item to add\n        in: body\n        name: item\n        required: true\n        schema:\n          $ref: '#/definitions/handler.Item'\n      produces:\n      - application/json\n      responses:\n        \"201\":\n          description: Created\n          schema:\n            $ref: '#/definitions/handler.Item'\n        \"400\":\n          description: Bad Request\n          schema:\n            $ref: '#/definitions/handler.Response'\n        \"500\":\n          description: Internal Server Error\n          schema:\n            $ref: '#/definitions/handler.Response'\n      summary: Create item\n      tags:\n      - Items\n  /items/{id}:\n    delete:\n      description: Delete an item from the database by ID\n      parameters:\n      - description: Item ID\n        in: path\n        name: id\n        required: true\n        type: string\n      responses:\n        \"200\":\n          description: OK\n          schema:\n            $ref: '#/definitions/handler.Response'\n        \"400\":\n          description: Bad Request\n          schema:\n            $ref: '#/definitions/handler.Response'\n        \"404\":\n          description: Not Found\n          schema:\n            $ref: '#/definitions/handler.Response'\n        \"500\":\n          description: Internal Server Error\n          schema:\n            $ref: '#/definitions/handler.Response'\n      summary: Delete item\n      tags:\n      - Items\n    put:\n      consumes:\n      - application/json\n      description: Update an existing item in the database by ID\n      parameters:\n      - description: Item ID\n        in: path\n        name: id\n        required: true\n        type: string\n      - description: Updated item data\n        in: body\n        name: item\n        required: true\n        schema:\n          $ref: '#/definitions/handler.Item'\n      produces:\n      - application/json\n      responses:\n        \"200\":\n          description: OK\n          schema:\n            $ref: '#/definitions/handler.Response'\n        \"400\":\n          description: Bad Request\n          schema:\n            $ref: '#/definitions/handler.Response'\n        \"404\":\n          description: Not Found\n          schema:\n            $ref: '#/definitions/handler.Response'\n        \"500\":\n          description: Internal Server Error\n          schema:\n            $ref: '#/definitions/handler.Response'\n      summary: Update item\n      tags:\n      - Items\nswagger: \"2.0\"\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagussuwerdo%2Fnodejs-crud-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagussuwerdo%2Fnodejs-crud-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagussuwerdo%2Fnodejs-crud-api/lists"}