{"id":17888266,"url":"https://github.com/squat/drae","last_synced_at":"2025-03-22T19:33:55.327Z","repository":{"id":35226841,"uuid":"39486106","full_name":"squat/drae","owner":"squat","description":"A RESTful API for el Diccionario de la Real Academia Española","archived":false,"fork":false,"pushed_at":"2019-04-02T16:39:35.000Z","size":1729,"stargazers_count":58,"open_issues_count":2,"forks_count":18,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-06-18T23:15:24.517Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/squat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-22T04:48:30.000Z","updated_at":"2024-06-14T04:39:26.000Z","dependencies_parsed_at":"2022-07-12T16:11:43.355Z","dependency_job_id":null,"html_url":"https://github.com/squat/drae","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squat%2Fdrae","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squat%2Fdrae/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squat%2Fdrae/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squat%2Fdrae/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/squat","download_url":"https://codeload.github.com/squat/drae/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221832797,"owners_count":16888318,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-28T13:36:57.286Z","updated_at":"2024-10-28T13:36:57.778Z","avatar_url":"https://github.com/squat.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Drae\nA RESTful API for el Diccionario de la Real Academia Española\n\n[![Build Status](https://travis-ci.org/squat/drae.svg?branch=master)](https://travis-ci.org/squat/drae) [![Go Report Card](https://goreportcard.com/badge/github.com/squat/drae)](https://goreportcard.com/report/github.com/squat/drae) [![](https://images.microbadger.com/badges/image/squat/drae.svg)](https://microbadger.com/images/squat/drae)\n\n## Running\nThe easiest way to use drae is with the prebuilt container:\n\n```sh\n$ docker run -p 4000:4000 squat/drae\n```\n\nor if you wish to install drae locally:\n\n```sh\n$ go get -u github.com/squat/drae/cmd/drae\n```\n\n## Usage\n### Define\nThe `define` command does exactly what you would think: it accepts a string argument and returns a JSON object with the definition for that word.\n\n```sh\n$ drae define gato\n```\n\n### API\nYou can run a drae API server from your machine using the `api` command. By default, this server runs on port *4000*, though this can be configured with the `--port` flag.\n\n```sh\n$ drae api --port=6969\n```\n\nYou can now open a browser and query the API at `http://localhost:6969/api/`.\n\n### Endpoints\n#### `/api/\u003cword\u003e`\n The API has only one endpoint: `/api/\u003cword\u003e`. For example, I could search for the definition of `gato` at `http://localhost:4000/api/gato`.\n \n#### `/healthz`\n The `/healthz` endpoint returns a 200 if the API is running.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquat%2Fdrae","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsquat%2Fdrae","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquat%2Fdrae/lists"}