[C++] [Restbed] Improvement ideas
- [x] Fix class names for resources
- [ ] Parsing to/from json for maps
- [ ] Check for Parsing to/from for lists
- [ ] Add to/fromXml functions for models
Just some ideas I have for the restbed generator. Will try to look into those very soon.
I have started work on the first point on the list the class names.
In the current version it takes the operation id of the first method for a specific path and transforms it to {{operationId}}Resource for the class name of a resource identifying calls to a specific path.
In the new version I am currently working on, it will take the path itself, for example pet/{petid} and create a vendor extension called x-codegen-resource-name, or a similar name, which will contain the path sanitized. In this example it would be petPetId, which would result in petPetIdResource as the class name, which makes it easier to understand what the purpose of the class is.
#6017 is the pr for the first item on the list of improvements