11 ms·
https://api.github.com/users/1 https://api.github.com/users/1 This isn't hard to do. All they did was iterate the user ids from 1-n. It is the Rails way to ass
by specialp 10y ago
https://api.github.com/users/1 https://api.github.com/users/1 This isn't hard to do. All they did was iterate the user ids from 1-n. It is the Rails way to assign ids incrementally.
- orf 10y ago> It is the Rails way to assign ids incrementally. Well... their databases way. It's not 'the rails way'.
- kristianp 10y agoIt's also the Rails way unless things have changed since I last used Rails.
- diziet 10y agoThat's incorrect, you're looking at user "1" which is here: https://github.com/1 https://github.com/1 The "created_at": "2012-06-07T06:10:07Z" also gives it away. i.e., my profile is here: https://api.github.com/users/diziet https://api.github.com/users/diziet Also, numerical profile ids in URLs are more of a SQL thing rather than rails.
- coltonv 10y agoThis isn't correct. The users/1 doesn't take you to the user with id=1, it takes you to the user with username=1, which is very different. For example you can see my github profile on this api by doing https://api.github.com/users/cvoege https://api.github.com/users/cvoege The link you gave there is to the person with the username 1. Second of all you can't see my email since it's not publicly available on github, and most people's aren't as far as I know. Third of all incremental integer ids isn't the "rails way", this would be decided by the database and has nothing to do really with rails or whatever framework you use.
- cyphar 10y agoI just found out that GitHub actually publicly publishes everything I've done on their site. That's a bit creepy. https://api.github.com/users/cyphar/events https://api.github.com/users/cyphar/events