metadata-schema API calls don't work #678
Replies: 7 comments 4 replies
-
For one of our tools, the path |
Beta Was this translation helpful? Give feedback.
-
Hmmmm.... ok, a few questions.
Thanks! |
Beta Was this translation helpful? Give feedback.
-
This is normal. The client and API are separate applications. When you browse the client path |
Beta Was this translation helpful? Give feedback.
-
@markwilkinson To see what's going on, we can use the browser network console to inspect what the client application does. For example, here's a POST from client v1.16.3 Request headers (as sent by the browser):
Request body (JSON generated by the client based on content I copied from the default catalog schema):
|
Beta Was this translation helpful? Give feedback.
-
Solved, thanks! I've been doing it the hard way for literally years!! My life has just turned towards the sun :-) |
Beta Was this translation helpful? Give feedback.
-
(though I notice that you don't return a Location header after the creation of the new resource, which is an unexpected departure from common REST behaviours ;-) ) |
Beta Was this translation helpful? Give feedback.
-
Sorry... re-opening just to keep the conversation in one place. I am able to create a new schema by POST, as you suggest above (with the caveat that there is no Location header in the response, and the HTTP code is 200, not 201 Created, which I would have expected). The new schema appears in the WebUI (though labelled as "draft"?) It does NOT appear when I do a GET on /metadata-schemas/ My suspicion is that it needs to get out of draft state, but when I do the usual thing (PUT "Published" to metadata-schemas/{UUID}/meta/state) it also tells me that /metadata-schemas/{UUID} doesn't exist. So... I'm stuck again :-( Getting closer, though! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What components are related to the issue?
Metadata Schemas
Which FDP are you using?
My local instance
Version
What happened?
A bunch of problems.
the port is stripped from the request (I am mapping 9000:80, and all requests are going to the domain without any port)
I changed to run the FDP on port 80. The SWAGGER GUI says that the path is "metadata-schema", but the path seems to be "schema" in the Web UI
the following curl fails:
and so does
with log saying
The Swagger GUI also fails, but it seems to be calling a URL that doesn't exist (metadata-schema, versus schema)
Beta Was this translation helpful? Give feedback.
All reactions