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.
-
Clone the repository:
git clone https://github.com/mrnazu/reformed-api cd reformed-api
-
Install dependencies:
npm install
-
Start the server:
npm start
The server will run on
http://localhost:3000
.
-
Get All Creeds
- URL:
/api/creeds
- Method:
GET
- Success Response:
- Code: 200
- Content: List of all creeds with metadata.
- URL:
-
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.
- URL:
-
Get All Metadata
- URL:
/api/metadata
- Method:
GET
- Success Response:
- Code: 200
- Content: List of metadata for all creeds.
- URL:
-
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.
- URL:
- 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.
- URL:
Errors are handled with a generic message and a 500 status code. Custom error handling can be added if needed.
This project is licensed under the MIT License - see the LICENSE file for details.