Skip to content

Use RestSharp for CSharp API client #700

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 21, 2015

Conversation

wing328
Copy link
Contributor

@wing328 wing328 commented Apr 29, 2015

Use RestSharp to make HTTP calls. Tested with the following:

  • GetPetById
  • UpdatePetWithForm (confirmed by inspecting the HTTP request using tcpdump)
  • AddPet

Add DataContract to CSharp models (similar to @JsonProperty in Java) to properly map attributes with special characters. Deserialisation of responses from server works fine (tested with Pet, a model with sub-models)

@wing328
Copy link
Contributor Author

wing328 commented Apr 29, 2015

Based on suggestion #673

fehguy added a commit that referenced this pull request May 21, 2015
Use RestSharp for CSharp API client
@fehguy fehguy merged commit b059910 into swagger-api:develop_2.0 May 21, 2015
@wing328 wing328 deleted the csharp_restcsharp branch January 22, 2016 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants