๐ŸŒ AIๆœ็ดข & ไปฃ็† ไธป้กต
Skip to content

dimitrietataru/csharp-api-request

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

40 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

C# API Request

Install

PM> Install-Package Microsoft.AspNet.WebApi.Client -Version 5.2.7
PM> Install-Package Microsoft.Extensions.DependencyInjection.Abstractions -Version 5.0.0
PM> Install-Package Microsoft.Extensions.Http -Version 5.0.0

APIs

API HTTPS port HTTP port
Foo API 42000 42001
Bar API 43000 43001

Test endpoints

Route HttpVerb Requires Body Has Response Status Code
api/v1/bar/get-with-response GET โœ“ 200 (OK)
api/v1/bar/get-without-response GET 204 (No Content)
api/v1/bar/post-with-body-and-with-response POST โœ“ โœ“ 200 (OK)
api/v1/bar/post-with-body-and-without-response POST โœ“ 204 (No Content)
api/v1/bar/post-without-body-and-with-response POST โœ“ 200 (OK)
api/v1/bar/post-without-body-and-without-response POST 204 (No Content)
api/v1/bar/put-with-body-and-with-response PUT โœ“ โœ“ 200 (OK)
api/v1/bar/put-with-body-and-without-response PUT โœ“ 204 (No Content)
api/v1/bar/put-without-body-and-with-response PUT โœ“ 200 (OK)
api/v1/bar/put-without-body-and-without-response PUT 204 (No Content)
api/v1/bar/patch-with-body-and-with-response PATCH โœ“ โœ“ 200 (OK)
api/v1/bar/patch-with-body-and-without-response PATCH โœ“ 204 (No Content)
api/v1/bar/patch-without-body-and-with-response PATCH โœ“ 200 (OK)
api/v1/bar/patch-without-body-and-without-response PATCH 204 (No Content)
api/v1/bar/delete-with-response DELETE โœ“ 200 (OK)
api/v1/bar/delete-without-response DELETE 204 (No Content)
api/v1/foo/get-with-response GET โœ“ 200 (OK)
api/v1/foo/get-without-response GET 204 (No Content)
api/v1/foo/post-with-body-and-with-response POST โœ“ โœ“ 200 (OK)
api/v1/foo/post-with-body-and-without-response POST โœ“ 204 (No Content)
api/v1/foo/post-without-body-and-with-response POST โœ“ 200 (OK)
api/v1/foo/post-without-body-and-without-response POST 204 (No Content)
api/v1/foo/put-with-body-and-with-response PUT โœ“ โœ“ 200 (OK)
api/v1/foo/put-with-body-and-without-response PUT โœ“ 204 (No Content)
api/v1/foo/put-without-body-and-with-response PUT โœ“ 200 (OK)
api/v1/foo/put-without-body-and-without-response PUT 204 (No Content)
api/v1/foo/patch-with-body-and-with-response PATCH โœ“ โœ“ 200 (OK)
api/v1/foo/patch-with-body-and-without-response PATCH โœ“ 204 (No Content)
api/v1/foo/patch-without-body-and-with-response PATCH โœ“ 200 (OK)
api/v1/foo/patch-without-body-and-without-response PATCH 204 (No Content)
api/v1/foo/delete-with-response DELETE โœ“ 200 (OK)
api/v1/foo/delete-without-response DELETE 204 (No Content)