-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
switch to uuid for user instead of string (#45)
- Loading branch information
Showing
13 changed files
with
76 additions
and
51 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
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
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
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,35 @@ | ||
# create a new media item | ||
POST http://127.0.0.1:7777/media | ||
Authorization: FakeToken | ||
|
||
[MultipartFormData] | ||
name: DSC_1234 | ||
date_taken: 1985-04-12T23:20:50.52Z | ||
|
||
HTTP 201 | ||
|
||
[Asserts] | ||
jsonpath "$.id" != null | ||
|
||
[Captures] | ||
media_id: jsonpath "$.id" | ||
|
||
|
||
# upload reference to media item | ||
POST http://127.0.0.1:7777/media/{{media_id}} | ||
Authorization: FakeToken | ||
|
||
[MultipartFormData] | ||
name: DSC_1234.NEF | ||
file: file,DSC_1234.NEF; | ||
|
||
HTTP 201 | ||
|
||
|
||
# check media item | ||
GET http://127.0.0.1:7777/media/{{media_id}} | ||
Authorization: FakeToken | ||
|
||
HTTP 200 | ||
[Asserts] | ||
jsonpath "$.{{media_id}}.references" count == 1 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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