{"id":22352758,"url":"https://github.com/alinpahontu2912/rest-api-web-client","last_synced_at":"2025-10-10T10:35:08.331Z","repository":{"id":207572131,"uuid":"387445698","full_name":"alinpahontu2912/REST-API-web-client","owner":"alinpahontu2912","description":"Third homework for Communication Protocols course","archived":false,"fork":false,"pushed_at":"2021-07-19T11:50:18.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-28T04:35:19.836Z","etag":null,"topics":["https","rest-api"],"latest_commit_sha":null,"homepage":"","language":"C","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/alinpahontu2912.png","metadata":{"files":{"readme":"README","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}},"created_at":"2021-07-19T11:49:14.000Z","updated_at":"2021-07-28T19:46:09.000Z","dependencies_parsed_at":"2023-11-16T14:45:26.990Z","dependency_job_id":null,"html_url":"https://github.com/alinpahontu2912/REST-API-web-client","commit_stats":null,"previous_names":["alinpahontu2912/rest-api-web-client"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alinpahontu2912/REST-API-web-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alinpahontu2912%2FREST-API-web-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alinpahontu2912%2FREST-API-web-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alinpahontu2912%2FREST-API-web-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alinpahontu2912%2FREST-API-web-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alinpahontu2912","download_url":"https://codeload.github.com/alinpahontu2912/REST-API-web-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alinpahontu2912%2FREST-API-web-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279003544,"owners_count":26083595,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["https","rest-api"],"created_at":"2024-12-04T12:27:05.778Z","updated_at":"2025-10-10T10:35:08.308Z","avatar_url":"https://github.com/alinpahontu2912.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"HHTP Protocol \n\n- tried to simulate a user-server application, in which the user can add, delete, or get information \non books from a virtual library.\n- new users can be registered, if the username is not taken\n- a user will succesfully login if the password used corresponds to his username and the \nusername exists\n- the user can perform library tasks only if he has the \n- in case f error, a specific messsage will be shown\n- when trying to enter library without being logged in, \"Log in first\" message\nwill be shown\n- when trying to perform a library task, without the JWTtoken, \"Enter library\nfirst\" message will be displayed\n- when getting all books, if there are no books in the library, then\nno book will be shown\n- when getting a single book, if the book id does not exist, \"Did not acces\nbook\" message will be shown\n- when trying to delete a book with an id nonexistent in the library, \"Could \nnot delete books\" message will be shown\n- when trying to logout without being logged in, \"You are not even logged in\"\nmessage will appear\n\nBased on stdin input, the following operations will take place:\n\t- \"exit\" -\u003e closes the application\n\t- \"register\" -\u003e allows the user to write a a username and password(a new account\nis created if the usernaame is not already taken)\n\t- \"login\" -\u003e  the user must write his credetntials to login to the virtual library\n\t- \"enter_library\" -\u003e generates a JWT token for the client so that he will be able\nto make changes to the library. \n\t- \"get_books\" -\u003e shows basic information on every book added by the user\n\t- \"get_book\" -\u003e shows more in depth information about a book, based on its id(inputed \nby the user)\n\t- \"add_book\" -\u003e allows the user to register a new bok to his library. (The request will\nbe sent only if the data is correct. e.g. the page_count must be a number)\n\t- \"delete_book\" -\u003e based on inputted id, the user can delete a book from his library.\n\t- \"logout \" -\u003e the user gets logged out from the server and the JWT token and Log in\ncookie is deleted.\n\nUsed Parson.c library to format strings into json format, since it was \nrecommended and the readme was easy to follow, so it was easy to understand\nhow to use the already implemented functions. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falinpahontu2912%2Frest-api-web-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falinpahontu2912%2Frest-api-web-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falinpahontu2912%2Frest-api-web-client/lists"}