Make this toolkit/adapter more versatile and available for ASP.NET/web tools.
@Tom-Kingstone is already working on this.
Since Sep 8, 2026.
Assessment
This issue has not been assessed yet.
Description
Description:
From my own experience developing web applications, it would be great if I didn't have to write a custom API client with its own BHoM serialiser/deserialiser every time I need to send BHoM objects to and from an API. For this purpose, the HTTP_Toolkit has potential to be useful, but it just isn't developed enough and doesn't allow enough direct customisation to be useful in many cases.
At least having both POST and GET (as push and pull) fully implemented would be a great start, and DELETE should be simple enough. It would also be necessary to have a constructor for the adapter that accepts an HTTP client that the adapter would use to make requests (as opposed to the current where new HTTP clients are created with each request) as some frameworks use HTTP client factories that set up clients in a specific way which isn't possible to use with this toolkit as it is.
Suggest possibly having custom config to allow choosing what form the response comes in (for instance I have in the past written POST endpoints which return a usable BHoM object response so at least that would need to be implemented as an option, or even as default if json response is detected).
- Dominant language
- C#
- Stars
- 2
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from BHoM/HTTP_Toolkit
-
type:compliance
BHoM/HTTP_Toolkit#123 · 1 assignee ·
-
type:bug
BHoM/HTTP_Toolkit#72 · 1 assignee ·
-
type:feature
BHoM/HTTP_Toolkit#52 · 1 comment · 2 assignees ·
-
severity:low type:compliance type:question
Difficulty 5/5 Over a week Newbie friendliness 20/100
BHoM/HTTP_Toolkit#20 · 5 comments · 1 reaction ·
-
The number of responses resulting in the Pull is not of the expected length when using BatchRequest Opentype:bug
BHoM/HTTP_Toolkit#13 · 2 comments · 1 assignee ·
All issues in BHoM/HTTP_Toolkit
Similar issues
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
Type: enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
apache/arrow-adbc#4809 ·
-
type/automation type/tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
microsoft/vscode-azurefunctions#5197 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
microsoft/microsoft-ui-reactor#1274 ·