I’m looking for recommendation on generating IDs while prototyping an API design.
There is number of options to choose from.
It seems, common choices are:
- ‘name’-kind (ubiquitous in almost every RESTful API/RAML tutorial I’ve seen e.g. book title, author full name, username)
- Base-62 (e.g. Spotify API)
- IDs generated by data store (RDBMS or NoSQL databases (e.g. ObjectId in MongoDB))
Since design and prototyping phase should be quick, this aspect, to me, seems like a challenge, especially if I want to avoid too much of implementation details while working with RAML document(s).
How do you create IDs used in request/response examples in RAML way?