Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aliasses get service returns wrong status code #1862

Open
Faakhir30 opened this issue Jan 19, 2025 · 1 comment
Open

Aliasses get service returns wrong status code #1862

Faakhir30 opened this issue Jan 19, 2025 · 1 comment

Comments

@Faakhir30
Copy link
Contributor

Aliases service get status code should'nt be 201 created. Tests and (maybe)volto might also need update.

f@f:~$ curl -i -X GET http://localhost:8080/Plone/++api++/@aliases -H "Accept: application/json" --user admin:admin
HTTP/1.1 201 Created
Content-Length: 88
Content-Type: application/json
Date: Sun, 19 Jan 2025 15:18:05 GMT
Server: waitress
Via: waitress
X-Frame-Options: SAMEORIGIN
X-Powered-By: Zope (www.zope.dev), Python (www.python.org)

{
  "@id": "http://localhost:8080/Plone/@aliases", 
  "items": [], 
  "items_total": 0
}f@f:~$
@davisagli
Copy link
Member

Agreed, this looks like a bug.

dhruvak001 added a commit to dhruvak001/plone.restapi that referenced this issue Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants