feathersjs-ecosystem / feathers-swagger

Add documentation to your FeatherJS services and feed them to Swagger UI.
MIT License
225 stars 63 forks source link

Added support for array `service.id` #196

Closed dekelev closed 4 years ago

dekelev commented 4 years ago

Added support for array service.id to support the composite PK feature in feathers-objection & feathers-cassandra.

service.docs.idType option can now be also set to an array of types for the parameters in service.id.

service.options.idSeparator (default: ,) is being used to separate the ID fields in the path, e.g. /users/{firstId},{secondId}.

See issue https://github.com/feathersjs-ecosystem/feathers-swagger/issues/194 for more details.