-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: more robust characters model (#66)
* chore: flush database * refactor: move characters out of account model * feat: new characters endpoints * chore: migrations * chore: update bruno api collection * feat: endpoints * chore: bruno * feat: added last_updated field for conflict conciliation
- Loading branch information
Showing
33 changed files
with
411 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ post { | |
|
||
body:json { | ||
{ | ||
"account_identifier": "' 'DROP TABLE USERS;", | ||
"unique_identifiers": "' 'DROP TABLE USERS;", | ||
"username": "My Name", | ||
"password": "qweasd123", | ||
"email": "[email protected]" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ post { | |
|
||
body:json { | ||
{ | ||
"account_identifier": "myname", | ||
"unique_identifier": "myname", | ||
"username": "My Name", | ||
"password": "qweasd123", | ||
"email": "[email protected]" | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
meta { | ||
name: Create | ||
type: http | ||
seq: 1 | ||
} | ||
|
||
post { | ||
url: {{baseUrl}}/persistence/characters/create | ||
body: json | ||
auth: none | ||
} | ||
|
||
headers { | ||
Authorization: Token 4963885504960842e61c6cadb4a9df05647e2c7bf1cfe08ea8cff57ab37058ac | ||
} | ||
|
||
body:json { | ||
{ | ||
"character_sheet_version": "1.0.0", | ||
"fork_compatibility": "Not compatible", | ||
"data": { | ||
"name": "My Name", | ||
"age": 31 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
meta { | ||
name: Delete | ||
type: http | ||
seq: 5 | ||
} | ||
|
||
delete { | ||
url: {{baseUrl}}/persistence/characters/7/delete | ||
body: none | ||
auth: none | ||
} | ||
|
||
headers { | ||
Authorization: Token 4963885504960842e61c6cadb4a9df05647e2c7bf1cfe08ea8cff57ab37058ac | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
meta { | ||
name: GetAll | ||
type: http | ||
seq: 3 | ||
} | ||
|
||
get { | ||
url: {{baseUrl}}/persistence/characters | ||
body: none | ||
auth: none | ||
} | ||
|
||
headers { | ||
Authorization: Token 4963885504960842e61c6cadb4a9df05647e2c7bf1cfe08ea8cff57ab37058ac | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
meta { | ||
name: GetCharacter | ||
type: http | ||
seq: 2 | ||
} | ||
|
||
get { | ||
url: {{baseUrl}}/persistence/characters/8 | ||
body: none | ||
auth: none | ||
} | ||
|
||
headers { | ||
Authorization: Token 4963885504960842e61c6cadb4a9df05647e2c7bf1cfe08ea8cff57ab37058ac | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
meta { | ||
name: GetCompatible | ||
type: http | ||
seq: 3 | ||
} | ||
|
||
get { | ||
url: {{baseUrl}}/persistence/characters/compatible?fork_compatibility=Unitystation&character_sheet_version=1.0.0 | ||
body: none | ||
auth: none | ||
} | ||
|
||
query { | ||
fork_compatibility: Unitystation | ||
character_sheet_version: 1.0.0 | ||
} | ||
|
||
headers { | ||
Authorization: Token 4963885504960842e61c6cadb4a9df05647e2c7bf1cfe08ea8cff57ab37058ac | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
meta { | ||
name: Update | ||
type: http | ||
seq: 6 | ||
} | ||
|
||
patch { | ||
url: {{baseUrl}}/persistence/characters/8/update | ||
body: json | ||
auth: none | ||
} | ||
|
||
headers { | ||
Authorization: Token 4963885504960842e61c6cadb4a9df05647e2c7bf1cfe08ea8cff57ab37058ac | ||
} | ||
|
||
body:json { | ||
{ | ||
"id": 20, | ||
"account": "AnotherAccount", | ||
"fork_compatibility": "Not compatible", | ||
"data": { | ||
"age": 31, | ||
"name": "Another name" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
src/accounts/migrations/0002_alter_account_verification_token.py
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
src/accounts/migrations/0003_alter_account_verification_token.py
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
src/accounts/migrations/0004_alter_account_verification_token.py
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.