Hello,
I'll be referencing the model described in the OP of #50.
My legacy Mongoose model uses class_number as the primary key. So in my past REST server the url was /classes/:class_number
Since I am using MongoDB, the id and _id are both consumed by the DB, how should I handle the fact that the true UID for this resource isn't either of them? Should I try to change the server to handle the resource or change the resource to handle the server?
Thank you for any help you may provide :)
Hello,
I'll be referencing the model described in the OP of #50.
My legacy Mongoose model uses
class_numberas the primary key. So in my past REST server the url was/classes/:class_numberSince I am using MongoDB, the
idand_idare both consumed by the DB, how should I handle the fact that the true UID for this resource isn't either of them? Should I try to change the server to handle the resource or change the resource to handle the server?Thank you for any help you may provide :)