Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
api
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cubicweb
cubes
api
Commits
1e0b23c52573
Commit
1e0b23c52573
authored
9 months ago
by
Frank Bessou
Browse files
Options
Downloads
Patches
Plain Diff
fix: update tests and openapi_template.yaml
parent
5bf18d46cc3a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!71
Topic/default/objects rsets
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cubicweb_api/openapi/openapi_template.yaml
+22
-12
22 additions, 12 deletions
cubicweb_api/openapi/openapi_template.yaml
test/test_api_binary.py
+2
-2
2 additions, 2 deletions
test/test_api_binary.py
with
24 additions
and
14 deletions
cubicweb_api/openapi/openapi_template.yaml
+
22
−
12
View file @
1e0b23c5
...
...
@@ -80,9 +80,12 @@
content
:
application/json
:
schema
:
type
:
array
items
:
$ref
:
'
#/components/schemas/ResultSet'
type
:
object
properties
:
result_sets
:
type
:
array
items
:
$ref
:
'
#/components/schemas/ResultSet'
'
400'
:
description
:
The given RQL was badly formatted
content
:
...
...
@@ -271,15 +274,22 @@
-
title
-
error
ResultSet
:
type
:
array
items
:
type
:
array
items
:
oneOf
:
-
type
:
'
string'
nullable
:
true
-
type
:
'
number'
-
type
:
'
boolean'
type
:
object
properties
:
column_names
:
type
:
array
items
:
type
:
string
rows
:
type
:
array
items
:
type
:
array
items
:
oneOf
:
-
type
:
'
string'
nullable
:
true
-
type
:
'
number'
-
type
:
'
boolean'
CurrentUser
:
type
:
object
nullable
:
true
...
...
This diff is collapsed.
Click to expand it.
test/test_api_binary.py
+
2
−
2
View file @
1e0b23c5
...
...
@@ -39,7 +39,7 @@
content_type
=
"
multipart/form-data
"
,
headers
=
self
.
custom_headers
,
)
return
response
.
json
[
0
][
0
][
0
]
return
response
.
json
[
"
result_sets
"
][
0
][
"
rows
"
][
0
][
0
]
def
test_download_binary
(
self
):
eid
=
self
.
upload_file
()
...
...
@@ -102,7 +102,7 @@
content_type
=
"
application/json
"
,
headers
=
self
.
custom_headers
,
)
eid
=
response
.
json
[
0
][
0
][
0
]
eid
=
response
.
json
[
"
result_sets
"
][
0
][
"
rows
"
][
0
][
0
]
response
=
self
.
webapp
.
get
(
self
.
get_api_path
(
"
binary
"
),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment