class GdsApi::PublishingApi
def get_schema(schema_name)
- See: https://github.com/alphagov/publishing-api/blob/main/docs/api.md#get-v2schemasschema_name -
Raises:
-
(HTTPNotFound)
- when the schema is not found
Returns:
-
(GdsApi::Response)
- A response mapping schema name with JSON schema.
Parameters:
-
schema_name
(String
) --
def get_schema(schema_name) get_json("#{endpoint}/v2/schemas/#{schema_name}").to_hash end