Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thinogueiras/api-tests-mocha-chaihttp
Testing the GO REST API using Mocha, Chai and ChaiHttp.
https://github.com/thinogueiras/api-tests-mocha-chaihttp
api-rest apitesting chai chai-http javascript mocha mocha-tests nodejs rest-api supertest test-automation
Last synced: about 3 hours ago
JSON representation
Testing the GO REST API using Mocha, Chai and ChaiHttp.
- Host: GitHub
- URL: https://github.com/thinogueiras/api-tests-mocha-chaihttp
- Owner: thinogueiras
- License: mit
- Created: 2022-06-11T03:22:05.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-06-17T05:25:22.000Z (over 2 years ago)
- Last Synced: 2024-04-28T03:45:13.768Z (7 months ago)
- Topics: api-rest, apitesting, chai, chai-http, javascript, mocha, mocha-tests, nodejs, rest-api, supertest, test-automation
- Language: JavaScript
- Homepage:
- Size: 68.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Testing the GO REST API using Mocha, Chai and ChaiHttp
REST API Http Response Codes:
200: OK. Everything worked as expected.
201: A resource was successfully created in response to a POST request. The Location header contains the URL pointing to the newly created resource.
204: The request was handled successfully and the response contains no body content (like a DELETE request).
304: The resource was not modified. You can use the cached version.
400: Bad request. This could be caused by various actions by the user, such as providing invalid JSON data in the request body etc.
401: Authentication failed.
403: The authenticated user is not allowed to access the specified API endpoint.
404: The requested resource does not exist.
405: Method not allowed. Please check the Allow header for the allowed HTTP methods.
415: Unsupported media type. The requested content type or version number is invalid.
422: Data validation failed (in response to a POST request, for example). Please check the response body for detailed error messages.
429: Too many requests. The request was rejected due to rate limiting.
500: Internal server error. This could be caused by internal program errors.