Skip to content

Commit

Permalink
Bring the api tests up-to-date with the actual API
Browse files Browse the repository at this point in the history
  • Loading branch information
egli committed Jun 10, 2024
1 parent 99d84df commit 23f9458
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions test/rest-api.http
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ GET http://localhost:3000/api/documents/105/versions?latest=false
GET http://localhost:3000/api/documents/105/versions?search=hallo

# Get a specific version
GET http://localhost:3000/api/documents/105/versions/8212
GET http://localhost:3000/api/documents/105/versions/8651

# Get a specific non-existing version
GET http://localhost:3000/api/documents/105/versions/0
Expand All @@ -133,7 +133,7 @@ GET http://localhost:3000/api/documents/105/versions/0
GET http://localhost:3000/api/documents/105/versions?latest=true

# Get xml for a version
GET http://localhost:3000/api/documents/105/versions/8532/xml
GET http://localhost:3000/archive/105/versions/01HSBCFKZBE40ZPNRP993BQ4R8.xml

# Add a version
:version := (with-temp-buffer (insert-file-contents "~/tmp/6304.xml") (buffer-string))
Expand Down Expand Up @@ -161,10 +161,6 @@ Authorization: :auth-token
DELETE http://localhost:3000/api/documents/105/versions/8449
Authorization: :auth-token

# Delete old versions
DELETE http://localhost:3000/api/documents/105/versions
Authorization: :auth-token

##########
# Images #
##########
Expand All @@ -173,7 +169,7 @@ Authorization: :auth-token
GET http://localhost:3000/api/documents/644/images

# Get a specific image
GET http://localhost:3000/api/documents/644/images/6419
GET http://localhost:3000/api/documents/644/images/10651

# Get a specific non-existing image
GET http://localhost:3000/api/documents/644/images/0
Expand Down

0 comments on commit 23f9458

Please sign in to comment.