https://github.com/mrnazu/reformed-api
Reformed creeds and catechisms.
https://github.com/mrnazu/reformed-api
nodejs reformed wlc
Last synced: 6 months ago
JSON representation
Reformed creeds and catechisms.
- Host: GitHub
- URL: https://github.com/mrnazu/reformed-api
- Owner: mrnazu
- License: mit
- Created: 2024-07-25T00:27:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-10T15:48:08.000Z (about 1 year ago)
- Last Synced: 2024-08-10T16:59:02.930Z (about 1 year ago)
- Topics: nodejs, reformed, wlc
- Language: JavaScript
- Homepage: https://reformed-api.vercel.app
- Size: 285 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# reformed-api
This API provides access to various Reformed creeds and confessions, including details and metadata. You can retrieve all creeds, search for specific creeds, and get detailed metadata.
## Installation
1. **Clone the repository:**
```bash
git clone https://github.com/mrnazu/reformed-api
cd reformed-api
```
2. **Install dependencies:**
```bash
npm install
```
3. **Start the server:**
```bash
npm start
```
The server will run on `http://localhost:3000`.
## API Endpoints
### 1. Creeds
- **Get All Creeds**
- **URL:** `/api/creeds`
- **Method:** `GET`
- **Success Response:**
- **Code:** 200
- **Content:** List of all creeds with metadata.
- **Get Creed by ID**
- **URL:** `/api/creeds/:id`
- **Method:** `GET`
- **URL Params:**
- `id` (string): The ID of the creed.
- **Success Response:**
- **Code:** 200
- **Content:** Detailed information about the creed.
### 2. Metadata
- **Get All Metadata**
- **URL:** `/api/metadata`
- **Method:** `GET`
- **Success Response:**
- **Code:** 200
- **Content:** List of metadata for all creeds.
- **Get Metadata by ID**
- **URL:** `/api/metadata/:id`
- **Method:** `GET`
- **URL Params:**
- `id` (string): The ID of the creed.
- **Success Response:**
- **Code:** 200
- **Content:** Metadata for the specified creed.
### 3. Search
- **Search Creeds**
- **URL:** `/api/search`
- **Method:** `GET`
- **Query Parameters:**
- `query` (string): The search term.
- **Success Response:**
- **Code:** 200
- **Content:** List of creeds matching the search term.
## Error Handling
Errors are handled with a generic message and a 500 status code. Custom error handling can be added if needed.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.