Create First Metadata
This section assumes:
- your lightblue deployment hostname is
BASE_URL
- you have a copy of country.json on your local filesystem in the
/tmp
directory
Create via Command Line
You can create metadata with curl
if the metadata is in a file on the filesystem. The following command creates version 1.0.0
of the country
entity.
curl -H Content-Type:application/json -X PUT ${BASE_URL}/rest/metadata/country/1.0.0 -d @/tmp/country.json
Create via Metadata Management Application
There is also a management application provided with lightblue for maintaining metadata.
- Go to
http://BASE_URL/app/metadata
in your browser - Select "Create Entity" from the "Action" drop down
- Click the "Submit" button
- Click the "View/edit JSON" link (to enable pasting raw JSON into the tool)
- Paste the contents of
/tmp/country.json
into the text area - Click the "Save" button