{"id":18771521,"url":"https://github.com/anicetkeric/wcfservice","last_synced_at":"2025-12-12T11:30:37.713Z","repository":{"id":114565692,"uuid":"90775811","full_name":"anicetkeric/WcfService","owner":"anicetkeric","description":"REST API Using WCF Service","archived":false,"fork":false,"pushed_at":"2017-05-18T22:40:55.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-29T08:11:46.102Z","etag":null,"topics":["rest-api","wcf-service"],"latest_commit_sha":null,"homepage":null,"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/anicetkeric.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":"2017-05-09T17:54:19.000Z","updated_at":"2017-06-07T09:03:46.000Z","dependencies_parsed_at":"2023-03-23T02:01:15.343Z","dependency_job_id":null,"html_url":"https://github.com/anicetkeric/WcfService","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/anicetkeric%2FWcfService","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anicetkeric%2FWcfService/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anicetkeric%2FWcfService/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anicetkeric%2FWcfService/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anicetkeric","download_url":"https://codeload.github.com/anicetkeric/WcfService/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239679390,"owners_count":19679468,"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":["rest-api","wcf-service"],"created_at":"2024-11-07T19:25:11.923Z","updated_at":"2025-12-12T11:30:32.362Z","avatar_url":"https://github.com/anicetkeric.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WcfService\nCréation d’un service RESTful aven utilisant WCF \n\nWindows Communication Foundation (WCF) est un SDK pour le développement et le déploiement de services sur Windows. WCF fournit un environnement d'exécution pour vos services, vous permettant d'exposer les types CLR en tant que services et de consommer d'autres services en tant que types CLR. \n\n## Prérequis\n*\tMicrosoft Visual Studio 2013 ou supérieur \n* Postman pour tester notre API: https://www.getpostman.com/apps\n\n## Création du projet WCF\n\n1. Démarrer Visual Studio.\n2. Fichier \u003e Nouveau \u003e Projet\n3. Visual C# et sélectionnez WCF, puis **Application de service WCF**\n\n## Configuration du fichier web.config\n\nAjouter le code ci-dessous dans la section \u003csystem.serviceModel\u003e\n```xml\n      \u003cservices\u003e\n      \u003cservice name=\"WcfService.BookService\"  behaviorConfiguration=\"ServiceBehavior\"\u003e\n\n        \u003cendpoint binding=\"webHttpBinding\" contract=\"WcfService.IBookService\" behaviorConfiguration=\"web\"\u003e\n        \u003c/endpoint\u003e\n        \n      \u003c/service\u003e\n    \u003c/services\u003e\n```\n\nWebHttpBinding est la liaison spécifiquement proposée pour les services RESTful dans Windows Communication Foundation version 3.5.\n\nEndpointBehavior est \"webHttp\" pour le service RESTful.\n\n\n## Test avec postman\n\nDemarrer l'application puis tester vos methodes. \t\n\n| Action        | HTTP method   |URI|\n| ------------- |:-------------:| -----|\n| Ajouter un livre    | POST |api/book/AddBook/{book} |\n| Liste des livres     | GET      |api/book/GetAllBooks/ |\n| Selectionner un livre | GET     |api/book/GetBook/{id} |\n| Supprimer un livre |DELETE      |api/book/DeleteBook/{idBook} |\n| Modifier un livre | PUT     |api/book/UpdateBook/{book}|\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanicetkeric%2Fwcfservice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanicetkeric%2Fwcfservice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanicetkeric%2Fwcfservice/lists"}