mirror of
https://github.com/LukasKanka/api_test.git
synced 2026-11-11 14:34:36 +01:00
cicd
This commit is contained in:
1 parent
207c50f51d
commit
e5c6276bab
55 files changed
+28732
No files matched your search
@@ -0,0 +1,41 @@
|
||||
# PotterAPI
|
||||
|
||||
### Prerequisites
|
||||
1. Installed [NodeJS](https://nodejs.org/en/)
|
||||
|
||||
### Installation
|
||||
|
||||
1. Open terminal and run following commands
|
||||
```
|
||||
git clone https://github.com/skarbala/PotterAPI.git
|
||||
cd PotterAPI
|
||||
npm install
|
||||
```
|
||||
|
||||
2. Run the API using
|
||||
```
|
||||
npm start
|
||||
```
|
||||
|
||||
#### ✅ You should see following message
|
||||
> Harry Potter App listening on port 3000!
|
||||
|
||||
## Documentation
|
||||
|
||||
#### Base url
|
||||
All routes needs to be send to base url `http://localhost:3000`
|
||||
|
||||
#### Response type
|
||||
Default response format is `application/json`
|
||||
|
||||
### Spells service
|
||||
#### Authentication
|
||||
No authentication needed
|
||||
#### Available endpoints
|
||||
``` GET /spells ``` returns list spells
|
||||
|
||||
``` GET /spells/{id} ``` returns specific spell.
|
||||
|
||||
``` DELETE /spells/{id} ``` deletes spell
|
||||
|
||||
```POST /spells``` adds new spell
|
||||
Reference in new issue
Block a user