Skip to content

Legacy Unique ID #51

@rhettl

Description

@rhettl

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions