Skip to content

Commit dff8eb1

Browse files
committed
update to reflect auto-primary key determination and user-defined HTTP methods
1 parent 7b3b910 commit dff8eb1

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,12 @@ from sandman.model import register, Model
2222

2323
class Artist(Model):
2424
__tablename__ = 'Artist'
25-
endpoint = 'artists'
26-
primary_key = 'ArtistId'
2725

2826
class Album(Model):
2927
__tablename__ = 'Album'
30-
endpoint = 'albums'
31-
primary_key = 'AlbumId'
3228

3329
class Playlist(Model):
3430
__tablename__ = 'Playlist'
35-
endpoint = 'playlists'
36-
primary_key = 'PlaylistId'
3731

3832
register((Artist, Album, Playlist))
3933

@@ -140,7 +134,5 @@ The models file is identical to the code pasted above.
140134

141135
### Coming Soon
142136

143-
* Less boilerplate! (Requirement to document name of primary key field will be removed)
144-
* Ability to specify accepted HTTP methods on a per-class level
145137
* Class specific validation
146138
* More `links` automatically generated (i.e. `links` to related objects)

0 commit comments

Comments
 (0)