Contents
Which of the principles should be adhered when designing APIs?
6 Design Principles for your HTTP APIs
- Consistency. Consistency means that similar endpoints should behave in similar ways, including in edge scenarios.
- Performance. Performance in HTTP APIs is a tricky matter.
- Documentation.
- Usability.
- Simplicity.
- Evolution.
- Over to You!
How would you go about designing an API?
RESTful API Design — Step By Step Guide
- Jeff Bezos’ (Key to Success) Mandate. Some of you might have been already aware of Jeff Bezos’ mandate to the developers in Amazon.
- Keep it simple. Souce — Internet.
- Use nouns and NOT the verbs.
- Use of right HTTP methods.
- Use Plurals.
- Use parameters.
- Use proper HTTP codes.
- Versioning.
What are principles of an API test design?
Fundamental principles While creating the documentation according to the results of test design development, we can use the following sequence of tests: Format control; Fundamental testing of a successful import; Multiple imports (infinite number of entities);
What are some of the best practices for REST API design?
Best practices for REST API design
- Accept and respond with JSON.
- Use nouns instead of verbs in endpoint paths.
- Name collections with plural nouns.
- Nesting resources for hierarchical objects.
- Handle errors gracefully and return standard error codes.
- Allow filtering, sorting, and pagination.
- Maintain Good Security Practices.
Which is the best naming convention for Apigee?
Apigee recommends that you establish a consistent naming convention for your policies. For example, use short prefixes followed by a sequence of descriptive words separated by dashes. For example, AM-xxx for AssignMessage policies.
Can you put multiple actions into a rule?
Your design also makes it really hard to put multiple actions into rule with actions having different return types. You can always return object, but type erasure is never a good thing when exposed to the calling code. For the most part rule Preconditions is validation.
Which is business rule exposes a modifiable collection?
Exposing modifiable collections : Your business rule class exposes a ICollection, which is modifiable. This means, that after concrete rule is created, the collection can be added into.